Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

protocol_externs.js 396KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734
  1. Protocol.Accessibility = {};
  2. /**
  3. * @constructor
  4. */
  5. Protocol.AccessibilityAgent = function(){};
  6. /**
  7. * @return {!Promise<undefined>}
  8. */
  9. Protocol.AccessibilityAgent.prototype.disable = function() {};
  10. /** @typedef {Object|undefined} */
  11. Protocol.AccessibilityAgent.DisableRequest;
  12. /** @typedef {Object|undefined} */
  13. Protocol.AccessibilityAgent.DisableResponse;
  14. /**
  15. * @param {!Protocol.AccessibilityAgent.DisableRequest} obj
  16. * @return {!Promise<!Protocol.AccessibilityAgent.DisableResponse>} */
  17. Protocol.AccessibilityAgent.prototype.invoke_disable = function(obj) {};
  18. /**
  19. * @return {!Promise<undefined>}
  20. */
  21. Protocol.AccessibilityAgent.prototype.enable = function() {};
  22. /** @typedef {Object|undefined} */
  23. Protocol.AccessibilityAgent.EnableRequest;
  24. /** @typedef {Object|undefined} */
  25. Protocol.AccessibilityAgent.EnableResponse;
  26. /**
  27. * @param {!Protocol.AccessibilityAgent.EnableRequest} obj
  28. * @return {!Promise<!Protocol.AccessibilityAgent.EnableResponse>} */
  29. Protocol.AccessibilityAgent.prototype.invoke_enable = function(obj) {};
  30. /**
  31. * @param {Protocol.DOM.NodeId=} opt_nodeId
  32. * @param {Protocol.DOM.BackendNodeId=} opt_backendNodeId
  33. * @param {Protocol.Runtime.RemoteObjectId=} opt_objectId
  34. * @param {boolean=} opt_fetchRelatives
  35. * @return {!Promise<?Array<Protocol.Accessibility.AXNode>>}
  36. */
  37. Protocol.AccessibilityAgent.prototype.getPartialAXTree = function(opt_nodeId, opt_backendNodeId, opt_objectId, opt_fetchRelatives) {};
  38. /** @typedef {!{objectId: (Protocol.Runtime.RemoteObjectId|undefined), nodeId: (Protocol.DOM.NodeId|undefined), backendNodeId: (Protocol.DOM.BackendNodeId|undefined), fetchRelatives: (boolean|undefined)}} */
  39. Protocol.AccessibilityAgent.GetPartialAXTreeRequest;
  40. /** @typedef {!{nodes: !Array<Protocol.Accessibility.AXNode>}} */
  41. Protocol.AccessibilityAgent.GetPartialAXTreeResponse;
  42. /**
  43. * @param {!Protocol.AccessibilityAgent.GetPartialAXTreeRequest} obj
  44. * @return {!Promise<!Protocol.AccessibilityAgent.GetPartialAXTreeResponse>} */
  45. Protocol.AccessibilityAgent.prototype.invoke_getPartialAXTree = function(obj) {};
  46. /**
  47. * @return {!Promise<?Array<Protocol.Accessibility.AXNode>>}
  48. */
  49. Protocol.AccessibilityAgent.prototype.getFullAXTree = function() {};
  50. /** @typedef {Object|undefined} */
  51. Protocol.AccessibilityAgent.GetFullAXTreeRequest;
  52. /** @typedef {!{nodes: !Array<Protocol.Accessibility.AXNode>}} */
  53. Protocol.AccessibilityAgent.GetFullAXTreeResponse;
  54. /**
  55. * @param {!Protocol.AccessibilityAgent.GetFullAXTreeRequest} obj
  56. * @return {!Promise<!Protocol.AccessibilityAgent.GetFullAXTreeResponse>} */
  57. Protocol.AccessibilityAgent.prototype.invoke_getFullAXTree = function(obj) {};
  58. /** @typedef {string} */
  59. Protocol.Accessibility.AXNodeId;
  60. /** @enum {string} */
  61. Protocol.Accessibility.AXValueType = {
  62. Boolean: "boolean",
  63. Tristate: "tristate",
  64. BooleanOrUndefined: "booleanOrUndefined",
  65. Idref: "idref",
  66. IdrefList: "idrefList",
  67. Integer: "integer",
  68. Node: "node",
  69. NodeList: "nodeList",
  70. Number: "number",
  71. String: "string",
  72. ComputedString: "computedString",
  73. Token: "token",
  74. TokenList: "tokenList",
  75. DomRelation: "domRelation",
  76. Role: "role",
  77. InternalRole: "internalRole",
  78. ValueUndefined: "valueUndefined"
  79. };
  80. /** @enum {string} */
  81. Protocol.Accessibility.AXValueSourceType = {
  82. Attribute: "attribute",
  83. Implicit: "implicit",
  84. Style: "style",
  85. Contents: "contents",
  86. Placeholder: "placeholder",
  87. RelatedElement: "relatedElement"
  88. };
  89. /** @enum {string} */
  90. Protocol.Accessibility.AXValueNativeSourceType = {
  91. Figcaption: "figcaption",
  92. Label: "label",
  93. Labelfor: "labelfor",
  94. Labelwrapped: "labelwrapped",
  95. Legend: "legend",
  96. Tablecaption: "tablecaption",
  97. Title: "title",
  98. Other: "other"
  99. };
  100. /** @typedef {!{type:(Protocol.Accessibility.AXValueSourceType), value:(Protocol.Accessibility.AXValue|undefined), attribute:(string|undefined), attributeValue:(Protocol.Accessibility.AXValue|undefined), superseded:(boolean|undefined), nativeSource:(Protocol.Accessibility.AXValueNativeSourceType|undefined), nativeSourceValue:(Protocol.Accessibility.AXValue|undefined), invalid:(boolean|undefined), invalidReason:(string|undefined)}} */
  101. Protocol.Accessibility.AXValueSource;
  102. /** @typedef {!{backendDOMNodeId:(Protocol.DOM.BackendNodeId), idref:(string|undefined), text:(string|undefined)}} */
  103. Protocol.Accessibility.AXRelatedNode;
  104. /** @typedef {!{name:(Protocol.Accessibility.AXPropertyName), value:(Protocol.Accessibility.AXValue)}} */
  105. Protocol.Accessibility.AXProperty;
  106. /** @typedef {!{type:(Protocol.Accessibility.AXValueType), value:(*|undefined), relatedNodes:(!Array<Protocol.Accessibility.AXRelatedNode>|undefined), sources:(!Array<Protocol.Accessibility.AXValueSource>|undefined)}} */
  107. Protocol.Accessibility.AXValue;
  108. /** @enum {string} */
  109. Protocol.Accessibility.AXPropertyName = {
  110. Busy: "busy",
  111. Disabled: "disabled",
  112. Editable: "editable",
  113. Focusable: "focusable",
  114. Focused: "focused",
  115. Hidden: "hidden",
  116. HiddenRoot: "hiddenRoot",
  117. Invalid: "invalid",
  118. Keyshortcuts: "keyshortcuts",
  119. Settable: "settable",
  120. Roledescription: "roledescription",
  121. Live: "live",
  122. Atomic: "atomic",
  123. Relevant: "relevant",
  124. Root: "root",
  125. Autocomplete: "autocomplete",
  126. HasPopup: "hasPopup",
  127. Level: "level",
  128. Multiselectable: "multiselectable",
  129. Orientation: "orientation",
  130. Multiline: "multiline",
  131. Readonly: "readonly",
  132. Required: "required",
  133. Valuemin: "valuemin",
  134. Valuemax: "valuemax",
  135. Valuetext: "valuetext",
  136. Checked: "checked",
  137. Expanded: "expanded",
  138. Modal: "modal",
  139. Pressed: "pressed",
  140. Selected: "selected",
  141. Activedescendant: "activedescendant",
  142. Controls: "controls",
  143. Describedby: "describedby",
  144. Details: "details",
  145. Errormessage: "errormessage",
  146. Flowto: "flowto",
  147. Labelledby: "labelledby",
  148. Owns: "owns"
  149. };
  150. /** @typedef {!{nodeId:(Protocol.Accessibility.AXNodeId), ignored:(boolean), ignoredReasons:(!Array<Protocol.Accessibility.AXProperty>|undefined), role:(Protocol.Accessibility.AXValue|undefined), name:(Protocol.Accessibility.AXValue|undefined), description:(Protocol.Accessibility.AXValue|undefined), value:(Protocol.Accessibility.AXValue|undefined), properties:(!Array<Protocol.Accessibility.AXProperty>|undefined), childIds:(!Array<Protocol.Accessibility.AXNodeId>|undefined), backendDOMNodeId:(Protocol.DOM.BackendNodeId|undefined)}} */
  151. Protocol.Accessibility.AXNode;
  152. /** @interface */
  153. Protocol.AccessibilityDispatcher = function() {};
  154. Protocol.Animation = {};
  155. /**
  156. * @constructor
  157. */
  158. Protocol.AnimationAgent = function(){};
  159. /**
  160. * @return {!Promise<undefined>}
  161. */
  162. Protocol.AnimationAgent.prototype.disable = function() {};
  163. /** @typedef {Object|undefined} */
  164. Protocol.AnimationAgent.DisableRequest;
  165. /** @typedef {Object|undefined} */
  166. Protocol.AnimationAgent.DisableResponse;
  167. /**
  168. * @param {!Protocol.AnimationAgent.DisableRequest} obj
  169. * @return {!Promise<!Protocol.AnimationAgent.DisableResponse>} */
  170. Protocol.AnimationAgent.prototype.invoke_disable = function(obj) {};
  171. /**
  172. * @return {!Promise<undefined>}
  173. */
  174. Protocol.AnimationAgent.prototype.enable = function() {};
  175. /** @typedef {Object|undefined} */
  176. Protocol.AnimationAgent.EnableRequest;
  177. /** @typedef {Object|undefined} */
  178. Protocol.AnimationAgent.EnableResponse;
  179. /**
  180. * @param {!Protocol.AnimationAgent.EnableRequest} obj
  181. * @return {!Promise<!Protocol.AnimationAgent.EnableResponse>} */
  182. Protocol.AnimationAgent.prototype.invoke_enable = function(obj) {};
  183. /**
  184. * @param {string} id
  185. * @return {!Promise<?number>}
  186. */
  187. Protocol.AnimationAgent.prototype.getCurrentTime = function(id) {};
  188. /** @typedef {!{id: string}} */
  189. Protocol.AnimationAgent.GetCurrentTimeRequest;
  190. /** @typedef {!{currentTime: number}} */
  191. Protocol.AnimationAgent.GetCurrentTimeResponse;
  192. /**
  193. * @param {!Protocol.AnimationAgent.GetCurrentTimeRequest} obj
  194. * @return {!Promise<!Protocol.AnimationAgent.GetCurrentTimeResponse>} */
  195. Protocol.AnimationAgent.prototype.invoke_getCurrentTime = function(obj) {};
  196. /**
  197. * @return {!Promise<?number>}
  198. */
  199. Protocol.AnimationAgent.prototype.getPlaybackRate = function() {};
  200. /** @typedef {Object|undefined} */
  201. Protocol.AnimationAgent.GetPlaybackRateRequest;
  202. /** @typedef {!{playbackRate: number}} */
  203. Protocol.AnimationAgent.GetPlaybackRateResponse;
  204. /**
  205. * @param {!Protocol.AnimationAgent.GetPlaybackRateRequest} obj
  206. * @return {!Promise<!Protocol.AnimationAgent.GetPlaybackRateResponse>} */
  207. Protocol.AnimationAgent.prototype.invoke_getPlaybackRate = function(obj) {};
  208. /**
  209. * @param {!Array<string>} animations
  210. * @return {!Promise<undefined>}
  211. */
  212. Protocol.AnimationAgent.prototype.releaseAnimations = function(animations) {};
  213. /** @typedef {!{animations: !Array<string>}} */
  214. Protocol.AnimationAgent.ReleaseAnimationsRequest;
  215. /** @typedef {Object|undefined} */
  216. Protocol.AnimationAgent.ReleaseAnimationsResponse;
  217. /**
  218. * @param {!Protocol.AnimationAgent.ReleaseAnimationsRequest} obj
  219. * @return {!Promise<!Protocol.AnimationAgent.ReleaseAnimationsResponse>} */
  220. Protocol.AnimationAgent.prototype.invoke_releaseAnimations = function(obj) {};
  221. /**
  222. * @param {string} animationId
  223. * @return {!Promise<?Protocol.Runtime.RemoteObject>}
  224. */
  225. Protocol.AnimationAgent.prototype.resolveAnimation = function(animationId) {};
  226. /** @typedef {!{animationId: string}} */
  227. Protocol.AnimationAgent.ResolveAnimationRequest;
  228. /** @typedef {!{remoteObject: Protocol.Runtime.RemoteObject}} */
  229. Protocol.AnimationAgent.ResolveAnimationResponse;
  230. /**
  231. * @param {!Protocol.AnimationAgent.ResolveAnimationRequest} obj
  232. * @return {!Promise<!Protocol.AnimationAgent.ResolveAnimationResponse>} */
  233. Protocol.AnimationAgent.prototype.invoke_resolveAnimation = function(obj) {};
  234. /**
  235. * @param {!Array<string>} animations
  236. * @param {number} currentTime
  237. * @return {!Promise<undefined>}
  238. */
  239. Protocol.AnimationAgent.prototype.seekAnimations = function(animations, currentTime) {};
  240. /** @typedef {!{currentTime: number, animations: !Array<string>}} */
  241. Protocol.AnimationAgent.SeekAnimationsRequest;
  242. /** @typedef {Object|undefined} */
  243. Protocol.AnimationAgent.SeekAnimationsResponse;
  244. /**
  245. * @param {!Protocol.AnimationAgent.SeekAnimationsRequest} obj
  246. * @return {!Promise<!Protocol.AnimationAgent.SeekAnimationsResponse>} */
  247. Protocol.AnimationAgent.prototype.invoke_seekAnimations = function(obj) {};
  248. /**
  249. * @param {!Array<string>} animations
  250. * @param {boolean} paused
  251. * @return {!Promise<undefined>}
  252. */
  253. Protocol.AnimationAgent.prototype.setPaused = function(animations, paused) {};
  254. /** @typedef {!{paused: boolean, animations: !Array<string>}} */
  255. Protocol.AnimationAgent.SetPausedRequest;
  256. /** @typedef {Object|undefined} */
  257. Protocol.AnimationAgent.SetPausedResponse;
  258. /**
  259. * @param {!Protocol.AnimationAgent.SetPausedRequest} obj
  260. * @return {!Promise<!Protocol.AnimationAgent.SetPausedResponse>} */
  261. Protocol.AnimationAgent.prototype.invoke_setPaused = function(obj) {};
  262. /**
  263. * @param {number} playbackRate
  264. * @return {!Promise<undefined>}
  265. */
  266. Protocol.AnimationAgent.prototype.setPlaybackRate = function(playbackRate) {};
  267. /** @typedef {!{playbackRate: number}} */
  268. Protocol.AnimationAgent.SetPlaybackRateRequest;
  269. /** @typedef {Object|undefined} */
  270. Protocol.AnimationAgent.SetPlaybackRateResponse;
  271. /**
  272. * @param {!Protocol.AnimationAgent.SetPlaybackRateRequest} obj
  273. * @return {!Promise<!Protocol.AnimationAgent.SetPlaybackRateResponse>} */
  274. Protocol.AnimationAgent.prototype.invoke_setPlaybackRate = function(obj) {};
  275. /**
  276. * @param {string} animationId
  277. * @param {number} duration
  278. * @param {number} delay
  279. * @return {!Promise<undefined>}
  280. */
  281. Protocol.AnimationAgent.prototype.setTiming = function(animationId, duration, delay) {};
  282. /** @typedef {!{duration: number, delay: number, animationId: string}} */
  283. Protocol.AnimationAgent.SetTimingRequest;
  284. /** @typedef {Object|undefined} */
  285. Protocol.AnimationAgent.SetTimingResponse;
  286. /**
  287. * @param {!Protocol.AnimationAgent.SetTimingRequest} obj
  288. * @return {!Promise<!Protocol.AnimationAgent.SetTimingResponse>} */
  289. Protocol.AnimationAgent.prototype.invoke_setTiming = function(obj) {};
  290. /** @enum {string} */
  291. Protocol.Animation.AnimationType = {
  292. CSSTransition: "CSSTransition",
  293. CSSAnimation: "CSSAnimation",
  294. WebAnimation: "WebAnimation"
  295. };
  296. /** @typedef {!{id:(string), name:(string), pausedState:(boolean), playState:(string), playbackRate:(number), startTime:(number), currentTime:(number), type:(Protocol.Animation.AnimationType), source:(Protocol.Animation.AnimationEffect|undefined), cssId:(string|undefined)}} */
  297. Protocol.Animation.Animation;
  298. /** @typedef {!{delay:(number), endDelay:(number), iterationStart:(number), iterations:(number), duration:(number), direction:(string), fill:(string), backendNodeId:(Protocol.DOM.BackendNodeId|undefined), keyframesRule:(Protocol.Animation.KeyframesRule|undefined), easing:(string)}} */
  299. Protocol.Animation.AnimationEffect;
  300. /** @typedef {!{name:(string|undefined), keyframes:(!Array<Protocol.Animation.KeyframeStyle>)}} */
  301. Protocol.Animation.KeyframesRule;
  302. /** @typedef {!{offset:(string), easing:(string)}} */
  303. Protocol.Animation.KeyframeStyle;
  304. /** @interface */
  305. Protocol.AnimationDispatcher = function() {};
  306. /**
  307. * @param {string} id
  308. */
  309. Protocol.AnimationDispatcher.prototype.animationCanceled = function(id) {};
  310. /**
  311. * @param {string} id
  312. */
  313. Protocol.AnimationDispatcher.prototype.animationCreated = function(id) {};
  314. /**
  315. * @param {Protocol.Animation.Animation} animation
  316. */
  317. Protocol.AnimationDispatcher.prototype.animationStarted = function(animation) {};
  318. Protocol.ApplicationCache = {};
  319. /**
  320. * @constructor
  321. */
  322. Protocol.ApplicationCacheAgent = function(){};
  323. /**
  324. * @return {!Promise<undefined>}
  325. */
  326. Protocol.ApplicationCacheAgent.prototype.enable = function() {};
  327. /** @typedef {Object|undefined} */
  328. Protocol.ApplicationCacheAgent.EnableRequest;
  329. /** @typedef {Object|undefined} */
  330. Protocol.ApplicationCacheAgent.EnableResponse;
  331. /**
  332. * @param {!Protocol.ApplicationCacheAgent.EnableRequest} obj
  333. * @return {!Promise<!Protocol.ApplicationCacheAgent.EnableResponse>} */
  334. Protocol.ApplicationCacheAgent.prototype.invoke_enable = function(obj) {};
  335. /**
  336. * @param {Protocol.Page.FrameId} frameId
  337. * @return {!Promise<?Protocol.ApplicationCache.ApplicationCache>}
  338. */
  339. Protocol.ApplicationCacheAgent.prototype.getApplicationCacheForFrame = function(frameId) {};
  340. /** @typedef {!{frameId: Protocol.Page.FrameId}} */
  341. Protocol.ApplicationCacheAgent.GetApplicationCacheForFrameRequest;
  342. /** @typedef {!{applicationCache: Protocol.ApplicationCache.ApplicationCache}} */
  343. Protocol.ApplicationCacheAgent.GetApplicationCacheForFrameResponse;
  344. /**
  345. * @param {!Protocol.ApplicationCacheAgent.GetApplicationCacheForFrameRequest} obj
  346. * @return {!Promise<!Protocol.ApplicationCacheAgent.GetApplicationCacheForFrameResponse>} */
  347. Protocol.ApplicationCacheAgent.prototype.invoke_getApplicationCacheForFrame = function(obj) {};
  348. /**
  349. * @return {!Promise<?Array<Protocol.ApplicationCache.FrameWithManifest>>}
  350. */
  351. Protocol.ApplicationCacheAgent.prototype.getFramesWithManifests = function() {};
  352. /** @typedef {Object|undefined} */
  353. Protocol.ApplicationCacheAgent.GetFramesWithManifestsRequest;
  354. /** @typedef {!{frameIds: !Array<Protocol.ApplicationCache.FrameWithManifest>}} */
  355. Protocol.ApplicationCacheAgent.GetFramesWithManifestsResponse;
  356. /**
  357. * @param {!Protocol.ApplicationCacheAgent.GetFramesWithManifestsRequest} obj
  358. * @return {!Promise<!Protocol.ApplicationCacheAgent.GetFramesWithManifestsResponse>} */
  359. Protocol.ApplicationCacheAgent.prototype.invoke_getFramesWithManifests = function(obj) {};
  360. /**
  361. * @param {Protocol.Page.FrameId} frameId
  362. * @return {!Promise<?string>}
  363. */
  364. Protocol.ApplicationCacheAgent.prototype.getManifestForFrame = function(frameId) {};
  365. /** @typedef {!{frameId: Protocol.Page.FrameId}} */
  366. Protocol.ApplicationCacheAgent.GetManifestForFrameRequest;
  367. /** @typedef {!{manifestURL: string}} */
  368. Protocol.ApplicationCacheAgent.GetManifestForFrameResponse;
  369. /**
  370. * @param {!Protocol.ApplicationCacheAgent.GetManifestForFrameRequest} obj
  371. * @return {!Promise<!Protocol.ApplicationCacheAgent.GetManifestForFrameResponse>} */
  372. Protocol.ApplicationCacheAgent.prototype.invoke_getManifestForFrame = function(obj) {};
  373. /** @typedef {!{url:(string), size:(number), type:(string)}} */
  374. Protocol.ApplicationCache.ApplicationCacheResource;
  375. /** @typedef {!{manifestURL:(string), size:(number), creationTime:(number), updateTime:(number), resources:(!Array<Protocol.ApplicationCache.ApplicationCacheResource>)}} */
  376. Protocol.ApplicationCache.ApplicationCache;
  377. /** @typedef {!{frameId:(Protocol.Page.FrameId), manifestURL:(string), status:(number)}} */
  378. Protocol.ApplicationCache.FrameWithManifest;
  379. /** @interface */
  380. Protocol.ApplicationCacheDispatcher = function() {};
  381. /**
  382. * @param {Protocol.Page.FrameId} frameId
  383. * @param {string} manifestURL
  384. * @param {number} status
  385. */
  386. Protocol.ApplicationCacheDispatcher.prototype.applicationCacheStatusUpdated = function(frameId, manifestURL, status) {};
  387. /**
  388. * @param {boolean} isNowOnline
  389. */
  390. Protocol.ApplicationCacheDispatcher.prototype.networkStateUpdated = function(isNowOnline) {};
  391. Protocol.Audits = {};
  392. /**
  393. * @constructor
  394. */
  395. Protocol.AuditsAgent = function(){};
  396. /**
  397. * @param {Protocol.Network.RequestId} requestId
  398. * @param {string} encoding
  399. * @param {number=} opt_quality
  400. * @param {boolean=} opt_sizeOnly
  401. * @return {!Promise<?string>}
  402. */
  403. Protocol.AuditsAgent.prototype.getEncodedResponse = function(requestId, encoding, opt_quality, opt_sizeOnly) {};
  404. /** @typedef {!{sizeOnly: (boolean|undefined), quality: (number|undefined), requestId: Protocol.Network.RequestId, encoding: string}} */
  405. Protocol.AuditsAgent.GetEncodedResponseRequest;
  406. /** @typedef {!{body: string, encodedSize: number, originalSize: number}} */
  407. Protocol.AuditsAgent.GetEncodedResponseResponse;
  408. /**
  409. * @param {!Protocol.AuditsAgent.GetEncodedResponseRequest} obj
  410. * @return {!Promise<!Protocol.AuditsAgent.GetEncodedResponseResponse>} */
  411. Protocol.AuditsAgent.prototype.invoke_getEncodedResponse = function(obj) {};
  412. /** @interface */
  413. Protocol.AuditsDispatcher = function() {};
  414. Protocol.BackgroundService = {};
  415. /**
  416. * @constructor
  417. */
  418. Protocol.BackgroundServiceAgent = function(){};
  419. /**
  420. * @param {Protocol.BackgroundService.ServiceName} service
  421. * @return {!Promise<undefined>}
  422. */
  423. Protocol.BackgroundServiceAgent.prototype.startObserving = function(service) {};
  424. /** @typedef {!{service: Protocol.BackgroundService.ServiceName}} */
  425. Protocol.BackgroundServiceAgent.StartObservingRequest;
  426. /** @typedef {Object|undefined} */
  427. Protocol.BackgroundServiceAgent.StartObservingResponse;
  428. /**
  429. * @param {!Protocol.BackgroundServiceAgent.StartObservingRequest} obj
  430. * @return {!Promise<!Protocol.BackgroundServiceAgent.StartObservingResponse>} */
  431. Protocol.BackgroundServiceAgent.prototype.invoke_startObserving = function(obj) {};
  432. /**
  433. * @param {Protocol.BackgroundService.ServiceName} service
  434. * @return {!Promise<undefined>}
  435. */
  436. Protocol.BackgroundServiceAgent.prototype.stopObserving = function(service) {};
  437. /** @typedef {!{service: Protocol.BackgroundService.ServiceName}} */
  438. Protocol.BackgroundServiceAgent.StopObservingRequest;
  439. /** @typedef {Object|undefined} */
  440. Protocol.BackgroundServiceAgent.StopObservingResponse;
  441. /**
  442. * @param {!Protocol.BackgroundServiceAgent.StopObservingRequest} obj
  443. * @return {!Promise<!Protocol.BackgroundServiceAgent.StopObservingResponse>} */
  444. Protocol.BackgroundServiceAgent.prototype.invoke_stopObserving = function(obj) {};
  445. /**
  446. * @param {boolean} shouldRecord
  447. * @param {Protocol.BackgroundService.ServiceName} service
  448. * @return {!Promise<undefined>}
  449. */
  450. Protocol.BackgroundServiceAgent.prototype.setRecording = function(shouldRecord, service) {};
  451. /** @typedef {!{shouldRecord: boolean, service: Protocol.BackgroundService.ServiceName}} */
  452. Protocol.BackgroundServiceAgent.SetRecordingRequest;
  453. /** @typedef {Object|undefined} */
  454. Protocol.BackgroundServiceAgent.SetRecordingResponse;
  455. /**
  456. * @param {!Protocol.BackgroundServiceAgent.SetRecordingRequest} obj
  457. * @return {!Promise<!Protocol.BackgroundServiceAgent.SetRecordingResponse>} */
  458. Protocol.BackgroundServiceAgent.prototype.invoke_setRecording = function(obj) {};
  459. /**
  460. * @param {Protocol.BackgroundService.ServiceName} service
  461. * @return {!Promise<undefined>}
  462. */
  463. Protocol.BackgroundServiceAgent.prototype.clearEvents = function(service) {};
  464. /** @typedef {!{service: Protocol.BackgroundService.ServiceName}} */
  465. Protocol.BackgroundServiceAgent.ClearEventsRequest;
  466. /** @typedef {Object|undefined} */
  467. Protocol.BackgroundServiceAgent.ClearEventsResponse;
  468. /**
  469. * @param {!Protocol.BackgroundServiceAgent.ClearEventsRequest} obj
  470. * @return {!Promise<!Protocol.BackgroundServiceAgent.ClearEventsResponse>} */
  471. Protocol.BackgroundServiceAgent.prototype.invoke_clearEvents = function(obj) {};
  472. /** @enum {string} */
  473. Protocol.BackgroundService.ServiceName = {
  474. BackgroundFetch: "backgroundFetch",
  475. BackgroundSync: "backgroundSync",
  476. PushMessaging: "pushMessaging",
  477. Notifications: "notifications",
  478. PaymentHandler: "paymentHandler",
  479. PeriodicBackgroundSync: "periodicBackgroundSync"
  480. };
  481. /** @typedef {!{key:(string), value:(string)}} */
  482. Protocol.BackgroundService.EventMetadata;
  483. /** @typedef {!{timestamp:(Protocol.Network.TimeSinceEpoch), origin:(string), serviceWorkerRegistrationId:(Protocol.ServiceWorker.RegistrationID), service:(Protocol.BackgroundService.ServiceName), eventName:(string), instanceId:(string), eventMetadata:(!Array<Protocol.BackgroundService.EventMetadata>)}} */
  484. Protocol.BackgroundService.BackgroundServiceEvent;
  485. /** @interface */
  486. Protocol.BackgroundServiceDispatcher = function() {};
  487. /**
  488. * @param {boolean} isRecording
  489. * @param {Protocol.BackgroundService.ServiceName} service
  490. */
  491. Protocol.BackgroundServiceDispatcher.prototype.recordingStateChanged = function(isRecording, service) {};
  492. /**
  493. * @param {Protocol.BackgroundService.BackgroundServiceEvent} backgroundServiceEvent
  494. */
  495. Protocol.BackgroundServiceDispatcher.prototype.backgroundServiceEventReceived = function(backgroundServiceEvent) {};
  496. Protocol.Browser = {};
  497. /**
  498. * @constructor
  499. */
  500. Protocol.BrowserAgent = function(){};
  501. /**
  502. * @param {string} origin
  503. * @param {Protocol.Browser.PermissionDescriptor} permission
  504. * @param {Protocol.Browser.PermissionSetting} setting
  505. * @param {Protocol.Target.TargetID=} opt_browserContextId
  506. * @return {!Promise<undefined>}
  507. */
  508. Protocol.BrowserAgent.prototype.setPermission = function(origin, permission, setting, opt_browserContextId) {};
  509. /** @typedef {!{origin: string, browserContextId: (Protocol.Target.TargetID|undefined), setting: Protocol.Browser.PermissionSetting, permission: Protocol.Browser.PermissionDescriptor}} */
  510. Protocol.BrowserAgent.SetPermissionRequest;
  511. /** @typedef {Object|undefined} */
  512. Protocol.BrowserAgent.SetPermissionResponse;
  513. /**
  514. * @param {!Protocol.BrowserAgent.SetPermissionRequest} obj
  515. * @return {!Promise<!Protocol.BrowserAgent.SetPermissionResponse>} */
  516. Protocol.BrowserAgent.prototype.invoke_setPermission = function(obj) {};
  517. /**
  518. * @param {string} origin
  519. * @param {!Array<Protocol.Browser.PermissionType>} permissions
  520. * @param {Protocol.Target.BrowserContextID=} opt_browserContextId
  521. * @return {!Promise<undefined>}
  522. */
  523. Protocol.BrowserAgent.prototype.grantPermissions = function(origin, permissions, opt_browserContextId) {};
  524. /** @typedef {!{origin: string, browserContextId: (Protocol.Target.BrowserContextID|undefined), permissions: !Array<Protocol.Browser.PermissionType>}} */
  525. Protocol.BrowserAgent.GrantPermissionsRequest;
  526. /** @typedef {Object|undefined} */
  527. Protocol.BrowserAgent.GrantPermissionsResponse;
  528. /**
  529. * @param {!Protocol.BrowserAgent.GrantPermissionsRequest} obj
  530. * @return {!Promise<!Protocol.BrowserAgent.GrantPermissionsResponse>} */
  531. Protocol.BrowserAgent.prototype.invoke_grantPermissions = function(obj) {};
  532. /**
  533. * @param {Protocol.Target.BrowserContextID=} opt_browserContextId
  534. * @return {!Promise<undefined>}
  535. */
  536. Protocol.BrowserAgent.prototype.resetPermissions = function(opt_browserContextId) {};
  537. /** @typedef {!{browserContextId: (Protocol.Target.BrowserContextID|undefined)}} */
  538. Protocol.BrowserAgent.ResetPermissionsRequest;
  539. /** @typedef {Object|undefined} */
  540. Protocol.BrowserAgent.ResetPermissionsResponse;
  541. /**
  542. * @param {!Protocol.BrowserAgent.ResetPermissionsRequest} obj
  543. * @return {!Promise<!Protocol.BrowserAgent.ResetPermissionsResponse>} */
  544. Protocol.BrowserAgent.prototype.invoke_resetPermissions = function(obj) {};
  545. /**
  546. * @return {!Promise<undefined>}
  547. */
  548. Protocol.BrowserAgent.prototype.close = function() {};
  549. /** @typedef {Object|undefined} */
  550. Protocol.BrowserAgent.CloseRequest;
  551. /** @typedef {Object|undefined} */
  552. Protocol.BrowserAgent.CloseResponse;
  553. /**
  554. * @param {!Protocol.BrowserAgent.CloseRequest} obj
  555. * @return {!Promise<!Protocol.BrowserAgent.CloseResponse>} */
  556. Protocol.BrowserAgent.prototype.invoke_close = function(obj) {};
  557. /**
  558. * @return {!Promise<undefined>}
  559. */
  560. Protocol.BrowserAgent.prototype.crash = function() {};
  561. /** @typedef {Object|undefined} */
  562. Protocol.BrowserAgent.CrashRequest;
  563. /** @typedef {Object|undefined} */
  564. Protocol.BrowserAgent.CrashResponse;
  565. /**
  566. * @param {!Protocol.BrowserAgent.CrashRequest} obj
  567. * @return {!Promise<!Protocol.BrowserAgent.CrashResponse>} */
  568. Protocol.BrowserAgent.prototype.invoke_crash = function(obj) {};
  569. /**
  570. * @return {!Promise<undefined>}
  571. */
  572. Protocol.BrowserAgent.prototype.crashGpuProcess = function() {};
  573. /** @typedef {Object|undefined} */
  574. Protocol.BrowserAgent.CrashGpuProcessRequest;
  575. /** @typedef {Object|undefined} */
  576. Protocol.BrowserAgent.CrashGpuProcessResponse;
  577. /**
  578. * @param {!Protocol.BrowserAgent.CrashGpuProcessRequest} obj
  579. * @return {!Promise<!Protocol.BrowserAgent.CrashGpuProcessResponse>} */
  580. Protocol.BrowserAgent.prototype.invoke_crashGpuProcess = function(obj) {};
  581. /**
  582. * @return {!Promise<?string>}
  583. */
  584. Protocol.BrowserAgent.prototype.getVersion = function() {};
  585. /** @typedef {Object|undefined} */
  586. Protocol.BrowserAgent.GetVersionRequest;
  587. /** @typedef {!{userAgent: string, product: string, revision: string, jsVersion: string, protocolVersion: string}} */
  588. Protocol.BrowserAgent.GetVersionResponse;
  589. /**
  590. * @param {!Protocol.BrowserAgent.GetVersionRequest} obj
  591. * @return {!Promise<!Protocol.BrowserAgent.GetVersionResponse>} */
  592. Protocol.BrowserAgent.prototype.invoke_getVersion = function(obj) {};
  593. /**
  594. * @return {!Promise<?Array<string>>}
  595. */
  596. Protocol.BrowserAgent.prototype.getBrowserCommandLine = function() {};
  597. /** @typedef {Object|undefined} */
  598. Protocol.BrowserAgent.GetBrowserCommandLineRequest;
  599. /** @typedef {!{arguments: !Array<string>}} */
  600. Protocol.BrowserAgent.GetBrowserCommandLineResponse;
  601. /**
  602. * @param {!Protocol.BrowserAgent.GetBrowserCommandLineRequest} obj
  603. * @return {!Promise<!Protocol.BrowserAgent.GetBrowserCommandLineResponse>} */
  604. Protocol.BrowserAgent.prototype.invoke_getBrowserCommandLine = function(obj) {};
  605. /**
  606. * @param {string=} opt_query
  607. * @param {boolean=} opt_delta
  608. * @return {!Promise<?Array<Protocol.Browser.Histogram>>}
  609. */
  610. Protocol.BrowserAgent.prototype.getHistograms = function(opt_query, opt_delta) {};
  611. /** @typedef {!{query: (string|undefined), delta: (boolean|undefined)}} */
  612. Protocol.BrowserAgent.GetHistogramsRequest;
  613. /** @typedef {!{histograms: !Array<Protocol.Browser.Histogram>}} */
  614. Protocol.BrowserAgent.GetHistogramsResponse;
  615. /**
  616. * @param {!Protocol.BrowserAgent.GetHistogramsRequest} obj
  617. * @return {!Promise<!Protocol.BrowserAgent.GetHistogramsResponse>} */
  618. Protocol.BrowserAgent.prototype.invoke_getHistograms = function(obj) {};
  619. /**
  620. * @param {string} name
  621. * @param {boolean=} opt_delta
  622. * @return {!Promise<?Protocol.Browser.Histogram>}
  623. */
  624. Protocol.BrowserAgent.prototype.getHistogram = function(name, opt_delta) {};
  625. /** @typedef {!{name: string, delta: (boolean|undefined)}} */
  626. Protocol.BrowserAgent.GetHistogramRequest;
  627. /** @typedef {!{histogram: Protocol.Browser.Histogram}} */
  628. Protocol.BrowserAgent.GetHistogramResponse;
  629. /**
  630. * @param {!Protocol.BrowserAgent.GetHistogramRequest} obj
  631. * @return {!Promise<!Protocol.BrowserAgent.GetHistogramResponse>} */
  632. Protocol.BrowserAgent.prototype.invoke_getHistogram = function(obj) {};
  633. /**
  634. * @param {Protocol.Browser.WindowID} windowId
  635. * @return {!Promise<?Protocol.Browser.Bounds>}
  636. */
  637. Protocol.BrowserAgent.prototype.getWindowBounds = function(windowId) {};
  638. /** @typedef {!{windowId: Protocol.Browser.WindowID}} */
  639. Protocol.BrowserAgent.GetWindowBoundsRequest;
  640. /** @typedef {!{bounds: Protocol.Browser.Bounds}} */
  641. Protocol.BrowserAgent.GetWindowBoundsResponse;
  642. /**
  643. * @param {!Protocol.BrowserAgent.GetWindowBoundsRequest} obj
  644. * @return {!Promise<!Protocol.BrowserAgent.GetWindowBoundsResponse>} */
  645. Protocol.BrowserAgent.prototype.invoke_getWindowBounds = function(obj) {};
  646. /**
  647. * @param {Protocol.Target.TargetID=} opt_targetId
  648. * @return {!Promise<?Protocol.Browser.WindowID>}
  649. */
  650. Protocol.BrowserAgent.prototype.getWindowForTarget = function(opt_targetId) {};
  651. /** @typedef {!{targetId: (Protocol.Target.TargetID|undefined)}} */
  652. Protocol.BrowserAgent.GetWindowForTargetRequest;
  653. /** @typedef {!{windowId: Protocol.Browser.WindowID, bounds: Protocol.Browser.Bounds}} */
  654. Protocol.BrowserAgent.GetWindowForTargetResponse;
  655. /**
  656. * @param {!Protocol.BrowserAgent.GetWindowForTargetRequest} obj
  657. * @return {!Promise<!Protocol.BrowserAgent.GetWindowForTargetResponse>} */
  658. Protocol.BrowserAgent.prototype.invoke_getWindowForTarget = function(obj) {};
  659. /**
  660. * @param {Protocol.Browser.WindowID} windowId
  661. * @param {Protocol.Browser.Bounds} bounds
  662. * @return {!Promise<undefined>}
  663. */
  664. Protocol.BrowserAgent.prototype.setWindowBounds = function(windowId, bounds) {};
  665. /** @typedef {!{windowId: Protocol.Browser.WindowID, bounds: Protocol.Browser.Bounds}} */
  666. Protocol.BrowserAgent.SetWindowBoundsRequest;
  667. /** @typedef {Object|undefined} */
  668. Protocol.BrowserAgent.SetWindowBoundsResponse;
  669. /**
  670. * @param {!Protocol.BrowserAgent.SetWindowBoundsRequest} obj
  671. * @return {!Promise<!Protocol.BrowserAgent.SetWindowBoundsResponse>} */
  672. Protocol.BrowserAgent.prototype.invoke_setWindowBounds = function(obj) {};
  673. /**
  674. * @param {string=} opt_badgeLabel
  675. * @param {string=} opt_image
  676. * @return {!Promise<undefined>}
  677. */
  678. Protocol.BrowserAgent.prototype.setDockTile = function(opt_badgeLabel, opt_image) {};
  679. /** @typedef {!{image: (string|undefined), badgeLabel: (string|undefined)}} */
  680. Protocol.BrowserAgent.SetDockTileRequest;
  681. /** @typedef {Object|undefined} */
  682. Protocol.BrowserAgent.SetDockTileResponse;
  683. /**
  684. * @param {!Protocol.BrowserAgent.SetDockTileRequest} obj
  685. * @return {!Promise<!Protocol.BrowserAgent.SetDockTileResponse>} */
  686. Protocol.BrowserAgent.prototype.invoke_setDockTile = function(obj) {};
  687. /** @typedef {number} */
  688. Protocol.Browser.WindowID;
  689. /** @enum {string} */
  690. Protocol.Browser.WindowState = {
  691. Normal: "normal",
  692. Minimized: "minimized",
  693. Maximized: "maximized",
  694. Fullscreen: "fullscreen"
  695. };
  696. /** @typedef {!{left:(number|undefined), top:(number|undefined), width:(number|undefined), height:(number|undefined), windowState:(Protocol.Browser.WindowState|undefined)}} */
  697. Protocol.Browser.Bounds;
  698. /** @enum {string} */
  699. Protocol.Browser.PermissionType = {
  700. AccessibilityEvents: "accessibilityEvents",
  701. AudioCapture: "audioCapture",
  702. BackgroundSync: "backgroundSync",
  703. BackgroundFetch: "backgroundFetch",
  704. ClipboardRead: "clipboardRead",
  705. ClipboardWrite: "clipboardWrite",
  706. DurableStorage: "durableStorage",
  707. Flash: "flash",
  708. Geolocation: "geolocation",
  709. Midi: "midi",
  710. MidiSysex: "midiSysex",
  711. Notifications: "notifications",
  712. PaymentHandler: "paymentHandler",
  713. PeriodicBackgroundSync: "periodicBackgroundSync",
  714. ProtectedMediaIdentifier: "protectedMediaIdentifier",
  715. Sensors: "sensors",
  716. VideoCapture: "videoCapture",
  717. IdleDetection: "idleDetection",
  718. WakeLockScreen: "wakeLockScreen",
  719. WakeLockSystem: "wakeLockSystem"
  720. };
  721. /** @enum {string} */
  722. Protocol.Browser.PermissionSetting = {
  723. Granted: "granted",
  724. Denied: "denied",
  725. Prompt: "prompt"
  726. };
  727. /** @typedef {!{name:(string), sysex:(boolean|undefined), userVisibleOnly:(boolean|undefined), type:(string|undefined)}} */
  728. Protocol.Browser.PermissionDescriptor;
  729. /** @typedef {!{low:(number), high:(number), count:(number)}} */
  730. Protocol.Browser.Bucket;
  731. /** @typedef {!{name:(string), sum:(number), count:(number), buckets:(!Array<Protocol.Browser.Bucket>)}} */
  732. Protocol.Browser.Histogram;
  733. /** @interface */
  734. Protocol.BrowserDispatcher = function() {};
  735. Protocol.CSS = {};
  736. /**
  737. * @constructor
  738. */
  739. Protocol.CSSAgent = function(){};
  740. /**
  741. * @param {Protocol.CSS.StyleSheetId} styleSheetId
  742. * @param {string} ruleText
  743. * @param {Protocol.CSS.SourceRange} location
  744. * @return {!Promise<?Protocol.CSS.CSSRule>}
  745. */
  746. Protocol.CSSAgent.prototype.addRule = function(styleSheetId, ruleText, location) {};
  747. /** @typedef {!{styleSheetId: Protocol.CSS.StyleSheetId, location: Protocol.CSS.SourceRange, ruleText: string}} */
  748. Protocol.CSSAgent.AddRuleRequest;
  749. /** @typedef {!{rule: Protocol.CSS.CSSRule}} */
  750. Protocol.CSSAgent.AddRuleResponse;
  751. /**
  752. * @param {!Protocol.CSSAgent.AddRuleRequest} obj
  753. * @return {!Promise<!Protocol.CSSAgent.AddRuleResponse>} */
  754. Protocol.CSSAgent.prototype.invoke_addRule = function(obj) {};
  755. /**
  756. * @param {Protocol.CSS.StyleSheetId} styleSheetId
  757. * @return {!Promise<?Array<string>>}
  758. */
  759. Protocol.CSSAgent.prototype.collectClassNames = function(styleSheetId) {};
  760. /** @typedef {!{styleSheetId: Protocol.CSS.StyleSheetId}} */
  761. Protocol.CSSAgent.CollectClassNamesRequest;
  762. /** @typedef {!{classNames: !Array<string>}} */
  763. Protocol.CSSAgent.CollectClassNamesResponse;
  764. /**
  765. * @param {!Protocol.CSSAgent.CollectClassNamesRequest} obj
  766. * @return {!Promise<!Protocol.CSSAgent.CollectClassNamesResponse>} */
  767. Protocol.CSSAgent.prototype.invoke_collectClassNames = function(obj) {};
  768. /**
  769. * @param {Protocol.Page.FrameId} frameId
  770. * @return {!Promise<?Protocol.CSS.StyleSheetId>}
  771. */
  772. Protocol.CSSAgent.prototype.createStyleSheet = function(frameId) {};
  773. /** @typedef {!{frameId: Protocol.Page.FrameId}} */
  774. Protocol.CSSAgent.CreateStyleSheetRequest;
  775. /** @typedef {!{styleSheetId: Protocol.CSS.StyleSheetId}} */
  776. Protocol.CSSAgent.CreateStyleSheetResponse;
  777. /**
  778. * @param {!Protocol.CSSAgent.CreateStyleSheetRequest} obj
  779. * @return {!Promise<!Protocol.CSSAgent.CreateStyleSheetResponse>} */
  780. Protocol.CSSAgent.prototype.invoke_createStyleSheet = function(obj) {};
  781. /**
  782. * @return {!Promise<undefined>}
  783. */
  784. Protocol.CSSAgent.prototype.disable = function() {};
  785. /** @typedef {Object|undefined} */
  786. Protocol.CSSAgent.DisableRequest;
  787. /** @typedef {Object|undefined} */
  788. Protocol.CSSAgent.DisableResponse;
  789. /**
  790. * @param {!Protocol.CSSAgent.DisableRequest} obj
  791. * @return {!Promise<!Protocol.CSSAgent.DisableResponse>} */
  792. Protocol.CSSAgent.prototype.invoke_disable = function(obj) {};
  793. /**
  794. * @return {!Promise<undefined>}
  795. */
  796. Protocol.CSSAgent.prototype.enable = function() {};
  797. /** @typedef {Object|undefined} */
  798. Protocol.CSSAgent.EnableRequest;
  799. /** @typedef {Object|undefined} */
  800. Protocol.CSSAgent.EnableResponse;
  801. /**
  802. * @param {!Protocol.CSSAgent.EnableRequest} obj
  803. * @return {!Promise<!Protocol.CSSAgent.EnableResponse>} */
  804. Protocol.CSSAgent.prototype.invoke_enable = function(obj) {};
  805. /**
  806. * @param {Protocol.DOM.NodeId} nodeId
  807. * @param {!Array<string>} forcedPseudoClasses
  808. * @return {!Promise<undefined>}
  809. */
  810. Protocol.CSSAgent.prototype.forcePseudoState = function(nodeId, forcedPseudoClasses) {};
  811. /** @typedef {!{forcedPseudoClasses: !Array<string>, nodeId: Protocol.DOM.NodeId}} */
  812. Protocol.CSSAgent.ForcePseudoStateRequest;
  813. /** @typedef {Object|undefined} */
  814. Protocol.CSSAgent.ForcePseudoStateResponse;
  815. /**
  816. * @param {!Protocol.CSSAgent.ForcePseudoStateRequest} obj
  817. * @return {!Promise<!Protocol.CSSAgent.ForcePseudoStateResponse>} */
  818. Protocol.CSSAgent.prototype.invoke_forcePseudoState = function(obj) {};
  819. /**
  820. * @param {Protocol.DOM.NodeId} nodeId
  821. * @return {!Promise<?Array<string>>}
  822. */
  823. Protocol.CSSAgent.prototype.getBackgroundColors = function(nodeId) {};
  824. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  825. Protocol.CSSAgent.GetBackgroundColorsRequest;
  826. /** @typedef {!{backgroundColors: !Array<string>, computedFontWeight: string, computedFontSize: string}} */
  827. Protocol.CSSAgent.GetBackgroundColorsResponse;
  828. /**
  829. * @param {!Protocol.CSSAgent.GetBackgroundColorsRequest} obj
  830. * @return {!Promise<!Protocol.CSSAgent.GetBackgroundColorsResponse>} */
  831. Protocol.CSSAgent.prototype.invoke_getBackgroundColors = function(obj) {};
  832. /**
  833. * @param {Protocol.DOM.NodeId} nodeId
  834. * @return {!Promise<?Array<Protocol.CSS.CSSComputedStyleProperty>>}
  835. */
  836. Protocol.CSSAgent.prototype.getComputedStyleForNode = function(nodeId) {};
  837. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  838. Protocol.CSSAgent.GetComputedStyleForNodeRequest;
  839. /** @typedef {!{computedStyle: !Array<Protocol.CSS.CSSComputedStyleProperty>}} */
  840. Protocol.CSSAgent.GetComputedStyleForNodeResponse;
  841. /**
  842. * @param {!Protocol.CSSAgent.GetComputedStyleForNodeRequest} obj
  843. * @return {!Promise<!Protocol.CSSAgent.GetComputedStyleForNodeResponse>} */
  844. Protocol.CSSAgent.prototype.invoke_getComputedStyleForNode = function(obj) {};
  845. /**
  846. * @param {Protocol.DOM.NodeId} nodeId
  847. * @return {!Promise<?Protocol.CSS.CSSStyle>}
  848. */
  849. Protocol.CSSAgent.prototype.getInlineStylesForNode = function(nodeId) {};
  850. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  851. Protocol.CSSAgent.GetInlineStylesForNodeRequest;
  852. /** @typedef {!{inlineStyle: Protocol.CSS.CSSStyle, attributesStyle: Protocol.CSS.CSSStyle}} */
  853. Protocol.CSSAgent.GetInlineStylesForNodeResponse;
  854. /**
  855. * @param {!Protocol.CSSAgent.GetInlineStylesForNodeRequest} obj
  856. * @return {!Promise<!Protocol.CSSAgent.GetInlineStylesForNodeResponse>} */
  857. Protocol.CSSAgent.prototype.invoke_getInlineStylesForNode = function(obj) {};
  858. /**
  859. * @param {Protocol.DOM.NodeId} nodeId
  860. * @return {!Promise<?Protocol.CSS.CSSStyle>}
  861. */
  862. Protocol.CSSAgent.prototype.getMatchedStylesForNode = function(nodeId) {};
  863. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  864. Protocol.CSSAgent.GetMatchedStylesForNodeRequest;
  865. /** @typedef {!{inlineStyle: Protocol.CSS.CSSStyle, attributesStyle: Protocol.CSS.CSSStyle, cssKeyframesRules: !Array<Protocol.CSS.CSSKeyframesRule>, matchedCSSRules: !Array<Protocol.CSS.RuleMatch>, inherited: !Array<Protocol.CSS.InheritedStyleEntry>, pseudoElements: !Array<Protocol.CSS.PseudoElementMatches>}} */
  866. Protocol.CSSAgent.GetMatchedStylesForNodeResponse;
  867. /**
  868. * @param {!Protocol.CSSAgent.GetMatchedStylesForNodeRequest} obj
  869. * @return {!Promise<!Protocol.CSSAgent.GetMatchedStylesForNodeResponse>} */
  870. Protocol.CSSAgent.prototype.invoke_getMatchedStylesForNode = function(obj) {};
  871. /**
  872. * @return {!Promise<?Array<Protocol.CSS.CSSMedia>>}
  873. */
  874. Protocol.CSSAgent.prototype.getMediaQueries = function() {};
  875. /** @typedef {Object|undefined} */
  876. Protocol.CSSAgent.GetMediaQueriesRequest;
  877. /** @typedef {!{medias: !Array<Protocol.CSS.CSSMedia>}} */
  878. Protocol.CSSAgent.GetMediaQueriesResponse;
  879. /**
  880. * @param {!Protocol.CSSAgent.GetMediaQueriesRequest} obj
  881. * @return {!Promise<!Protocol.CSSAgent.GetMediaQueriesResponse>} */
  882. Protocol.CSSAgent.prototype.invoke_getMediaQueries = function(obj) {};
  883. /**
  884. * @param {Protocol.DOM.NodeId} nodeId
  885. * @return {!Promise<?Array<Protocol.CSS.PlatformFontUsage>>}
  886. */
  887. Protocol.CSSAgent.prototype.getPlatformFontsForNode = function(nodeId) {};
  888. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  889. Protocol.CSSAgent.GetPlatformFontsForNodeRequest;
  890. /** @typedef {!{fonts: !Array<Protocol.CSS.PlatformFontUsage>}} */
  891. Protocol.CSSAgent.GetPlatformFontsForNodeResponse;
  892. /**
  893. * @param {!Protocol.CSSAgent.GetPlatformFontsForNodeRequest} obj
  894. * @return {!Promise<!Protocol.CSSAgent.GetPlatformFontsForNodeResponse>} */
  895. Protocol.CSSAgent.prototype.invoke_getPlatformFontsForNode = function(obj) {};
  896. /**
  897. * @param {Protocol.CSS.StyleSheetId} styleSheetId
  898. * @return {!Promise<?string>}
  899. */
  900. Protocol.CSSAgent.prototype.getStyleSheetText = function(styleSheetId) {};
  901. /** @typedef {!{styleSheetId: Protocol.CSS.StyleSheetId}} */
  902. Protocol.CSSAgent.GetStyleSheetTextRequest;
  903. /** @typedef {!{text: string}} */
  904. Protocol.CSSAgent.GetStyleSheetTextResponse;
  905. /**
  906. * @param {!Protocol.CSSAgent.GetStyleSheetTextRequest} obj
  907. * @return {!Promise<!Protocol.CSSAgent.GetStyleSheetTextResponse>} */
  908. Protocol.CSSAgent.prototype.invoke_getStyleSheetText = function(obj) {};
  909. /**
  910. * @param {Protocol.DOM.NodeId} nodeId
  911. * @param {string} propertyName
  912. * @param {string} value
  913. * @return {!Promise<undefined>}
  914. */
  915. Protocol.CSSAgent.prototype.setEffectivePropertyValueForNode = function(nodeId, propertyName, value) {};
  916. /** @typedef {!{propertyName: string, nodeId: Protocol.DOM.NodeId, value: string}} */
  917. Protocol.CSSAgent.SetEffectivePropertyValueForNodeRequest;
  918. /** @typedef {Object|undefined} */
  919. Protocol.CSSAgent.SetEffectivePropertyValueForNodeResponse;
  920. /**
  921. * @param {!Protocol.CSSAgent.SetEffectivePropertyValueForNodeRequest} obj
  922. * @return {!Promise<!Protocol.CSSAgent.SetEffectivePropertyValueForNodeResponse>} */
  923. Protocol.CSSAgent.prototype.invoke_setEffectivePropertyValueForNode = function(obj) {};
  924. /**
  925. * @param {Protocol.CSS.StyleSheetId} styleSheetId
  926. * @param {Protocol.CSS.SourceRange} range
  927. * @param {string} keyText
  928. * @return {!Promise<?Protocol.CSS.Value>}
  929. */
  930. Protocol.CSSAgent.prototype.setKeyframeKey = function(styleSheetId, range, keyText) {};
  931. /** @typedef {!{range: Protocol.CSS.SourceRange, styleSheetId: Protocol.CSS.StyleSheetId, keyText: string}} */
  932. Protocol.CSSAgent.SetKeyframeKeyRequest;
  933. /** @typedef {!{keyText: Protocol.CSS.Value}} */
  934. Protocol.CSSAgent.SetKeyframeKeyResponse;
  935. /**
  936. * @param {!Protocol.CSSAgent.SetKeyframeKeyRequest} obj
  937. * @return {!Promise<!Protocol.CSSAgent.SetKeyframeKeyResponse>} */
  938. Protocol.CSSAgent.prototype.invoke_setKeyframeKey = function(obj) {};
  939. /**
  940. * @param {Protocol.CSS.StyleSheetId} styleSheetId
  941. * @param {Protocol.CSS.SourceRange} range
  942. * @param {string} text
  943. * @return {!Promise<?Protocol.CSS.CSSMedia>}
  944. */
  945. Protocol.CSSAgent.prototype.setMediaText = function(styleSheetId, range, text) {};
  946. /** @typedef {!{text: string, range: Protocol.CSS.SourceRange, styleSheetId: Protocol.CSS.StyleSheetId}} */
  947. Protocol.CSSAgent.SetMediaTextRequest;
  948. /** @typedef {!{media: Protocol.CSS.CSSMedia}} */
  949. Protocol.CSSAgent.SetMediaTextResponse;
  950. /**
  951. * @param {!Protocol.CSSAgent.SetMediaTextRequest} obj
  952. * @return {!Promise<!Protocol.CSSAgent.SetMediaTextResponse>} */
  953. Protocol.CSSAgent.prototype.invoke_setMediaText = function(obj) {};
  954. /**
  955. * @param {Protocol.CSS.StyleSheetId} styleSheetId
  956. * @param {Protocol.CSS.SourceRange} range
  957. * @param {string} selector
  958. * @return {!Promise<?Protocol.CSS.SelectorList>}
  959. */
  960. Protocol.CSSAgent.prototype.setRuleSelector = function(styleSheetId, range, selector) {};
  961. /** @typedef {!{range: Protocol.CSS.SourceRange, styleSheetId: Protocol.CSS.StyleSheetId, selector: string}} */
  962. Protocol.CSSAgent.SetRuleSelectorRequest;
  963. /** @typedef {!{selectorList: Protocol.CSS.SelectorList}} */
  964. Protocol.CSSAgent.SetRuleSelectorResponse;
  965. /**
  966. * @param {!Protocol.CSSAgent.SetRuleSelectorRequest} obj
  967. * @return {!Promise<!Protocol.CSSAgent.SetRuleSelectorResponse>} */
  968. Protocol.CSSAgent.prototype.invoke_setRuleSelector = function(obj) {};
  969. /**
  970. * @param {Protocol.CSS.StyleSheetId} styleSheetId
  971. * @param {string} text
  972. * @return {!Promise<?string>}
  973. */
  974. Protocol.CSSAgent.prototype.setStyleSheetText = function(styleSheetId, text) {};
  975. /** @typedef {!{text: string, styleSheetId: Protocol.CSS.StyleSheetId}} */
  976. Protocol.CSSAgent.SetStyleSheetTextRequest;
  977. /** @typedef {!{sourceMapURL: string}} */
  978. Protocol.CSSAgent.SetStyleSheetTextResponse;
  979. /**
  980. * @param {!Protocol.CSSAgent.SetStyleSheetTextRequest} obj
  981. * @return {!Promise<!Protocol.CSSAgent.SetStyleSheetTextResponse>} */
  982. Protocol.CSSAgent.prototype.invoke_setStyleSheetText = function(obj) {};
  983. /**
  984. * @param {!Array<Protocol.CSS.StyleDeclarationEdit>} edits
  985. * @return {!Promise<?Array<Protocol.CSS.CSSStyle>>}
  986. */
  987. Protocol.CSSAgent.prototype.setStyleTexts = function(edits) {};
  988. /** @typedef {!{edits: !Array<Protocol.CSS.StyleDeclarationEdit>}} */
  989. Protocol.CSSAgent.SetStyleTextsRequest;
  990. /** @typedef {!{styles: !Array<Protocol.CSS.CSSStyle>}} */
  991. Protocol.CSSAgent.SetStyleTextsResponse;
  992. /**
  993. * @param {!Protocol.CSSAgent.SetStyleTextsRequest} obj
  994. * @return {!Promise<!Protocol.CSSAgent.SetStyleTextsResponse>} */
  995. Protocol.CSSAgent.prototype.invoke_setStyleTexts = function(obj) {};
  996. /**
  997. * @return {!Promise<undefined>}
  998. */
  999. Protocol.CSSAgent.prototype.startRuleUsageTracking = function() {};
  1000. /** @typedef {Object|undefined} */
  1001. Protocol.CSSAgent.StartRuleUsageTrackingRequest;
  1002. /** @typedef {Object|undefined} */
  1003. Protocol.CSSAgent.StartRuleUsageTrackingResponse;
  1004. /**
  1005. * @param {!Protocol.CSSAgent.StartRuleUsageTrackingRequest} obj
  1006. * @return {!Promise<!Protocol.CSSAgent.StartRuleUsageTrackingResponse>} */
  1007. Protocol.CSSAgent.prototype.invoke_startRuleUsageTracking = function(obj) {};
  1008. /**
  1009. * @return {!Promise<?Array<Protocol.CSS.RuleUsage>>}
  1010. */
  1011. Protocol.CSSAgent.prototype.stopRuleUsageTracking = function() {};
  1012. /** @typedef {Object|undefined} */
  1013. Protocol.CSSAgent.StopRuleUsageTrackingRequest;
  1014. /** @typedef {!{ruleUsage: !Array<Protocol.CSS.RuleUsage>}} */
  1015. Protocol.CSSAgent.StopRuleUsageTrackingResponse;
  1016. /**
  1017. * @param {!Protocol.CSSAgent.StopRuleUsageTrackingRequest} obj
  1018. * @return {!Promise<!Protocol.CSSAgent.StopRuleUsageTrackingResponse>} */
  1019. Protocol.CSSAgent.prototype.invoke_stopRuleUsageTracking = function(obj) {};
  1020. /**
  1021. * @return {!Promise<?Array<Protocol.CSS.RuleUsage>>}
  1022. */
  1023. Protocol.CSSAgent.prototype.takeCoverageDelta = function() {};
  1024. /** @typedef {Object|undefined} */
  1025. Protocol.CSSAgent.TakeCoverageDeltaRequest;
  1026. /** @typedef {!{coverage: !Array<Protocol.CSS.RuleUsage>}} */
  1027. Protocol.CSSAgent.TakeCoverageDeltaResponse;
  1028. /**
  1029. * @param {!Protocol.CSSAgent.TakeCoverageDeltaRequest} obj
  1030. * @return {!Promise<!Protocol.CSSAgent.TakeCoverageDeltaResponse>} */
  1031. Protocol.CSSAgent.prototype.invoke_takeCoverageDelta = function(obj) {};
  1032. /** @typedef {string} */
  1033. Protocol.CSS.StyleSheetId;
  1034. /** @enum {string} */
  1035. Protocol.CSS.StyleSheetOrigin = {
  1036. Injected: "injected",
  1037. UserAgent: "user-agent",
  1038. Inspector: "inspector",
  1039. Regular: "regular"
  1040. };
  1041. /** @typedef {!{pseudoType:(Protocol.DOM.PseudoType), matches:(!Array<Protocol.CSS.RuleMatch>)}} */
  1042. Protocol.CSS.PseudoElementMatches;
  1043. /** @typedef {!{inlineStyle:(Protocol.CSS.CSSStyle|undefined), matchedCSSRules:(!Array<Protocol.CSS.RuleMatch>)}} */
  1044. Protocol.CSS.InheritedStyleEntry;
  1045. /** @typedef {!{rule:(Protocol.CSS.CSSRule), matchingSelectors:(!Array<number>)}} */
  1046. Protocol.CSS.RuleMatch;
  1047. /** @typedef {!{text:(string), range:(Protocol.CSS.SourceRange|undefined)}} */
  1048. Protocol.CSS.Value;
  1049. /** @typedef {!{selectors:(!Array<Protocol.CSS.Value>), text:(string)}} */
  1050. Protocol.CSS.SelectorList;
  1051. /** @typedef {!{styleSheetId:(Protocol.CSS.StyleSheetId), frameId:(Protocol.Page.FrameId), sourceURL:(string), sourceMapURL:(string|undefined), origin:(Protocol.CSS.StyleSheetOrigin), title:(string), ownerNode:(Protocol.DOM.BackendNodeId|undefined), disabled:(boolean), hasSourceURL:(boolean|undefined), isInline:(boolean), startLine:(number), startColumn:(number), length:(number), endLine:(number), endColumn:(number)}} */
  1052. Protocol.CSS.CSSStyleSheetHeader;
  1053. /** @typedef {!{styleSheetId:(Protocol.CSS.StyleSheetId|undefined), selectorList:(Protocol.CSS.SelectorList), origin:(Protocol.CSS.StyleSheetOrigin), style:(Protocol.CSS.CSSStyle), media:(!Array<Protocol.CSS.CSSMedia>|undefined)}} */
  1054. Protocol.CSS.CSSRule;
  1055. /** @typedef {!{styleSheetId:(Protocol.CSS.StyleSheetId), startOffset:(number), endOffset:(number), used:(boolean)}} */
  1056. Protocol.CSS.RuleUsage;
  1057. /** @typedef {!{startLine:(number), startColumn:(number), endLine:(number), endColumn:(number)}} */
  1058. Protocol.CSS.SourceRange;
  1059. /** @typedef {!{name:(string), value:(string), important:(boolean|undefined)}} */
  1060. Protocol.CSS.ShorthandEntry;
  1061. /** @typedef {!{name:(string), value:(string)}} */
  1062. Protocol.CSS.CSSComputedStyleProperty;
  1063. /** @typedef {!{styleSheetId:(Protocol.CSS.StyleSheetId|undefined), cssProperties:(!Array<Protocol.CSS.CSSProperty>), shorthandEntries:(!Array<Protocol.CSS.ShorthandEntry>), cssText:(string|undefined), range:(Protocol.CSS.SourceRange|undefined)}} */
  1064. Protocol.CSS.CSSStyle;
  1065. /** @typedef {!{name:(string), value:(string), important:(boolean|undefined), implicit:(boolean|undefined), text:(string|undefined), parsedOk:(boolean|undefined), disabled:(boolean|undefined), range:(Protocol.CSS.SourceRange|undefined)}} */
  1066. Protocol.CSS.CSSProperty;
  1067. /** @enum {string} */
  1068. Protocol.CSS.CSSMediaSource = {
  1069. MediaRule: "mediaRule",
  1070. ImportRule: "importRule",
  1071. LinkedSheet: "linkedSheet",
  1072. InlineSheet: "inlineSheet"
  1073. };
  1074. /** @typedef {!{text:(string), source:(Protocol.CSS.CSSMediaSource), sourceURL:(string|undefined), range:(Protocol.CSS.SourceRange|undefined), styleSheetId:(Protocol.CSS.StyleSheetId|undefined), mediaList:(!Array<Protocol.CSS.MediaQuery>|undefined)}} */
  1075. Protocol.CSS.CSSMedia;
  1076. /** @typedef {!{expressions:(!Array<Protocol.CSS.MediaQueryExpression>), active:(boolean)}} */
  1077. Protocol.CSS.MediaQuery;
  1078. /** @typedef {!{value:(number), unit:(string), feature:(string), valueRange:(Protocol.CSS.SourceRange|undefined), computedLength:(number|undefined)}} */
  1079. Protocol.CSS.MediaQueryExpression;
  1080. /** @typedef {!{familyName:(string), isCustomFont:(boolean), glyphCount:(number)}} */
  1081. Protocol.CSS.PlatformFontUsage;
  1082. /** @typedef {!{fontFamily:(string), fontStyle:(string), fontVariant:(string), fontWeight:(string), fontStretch:(string), unicodeRange:(string), src:(string), platformFontFamily:(string)}} */
  1083. Protocol.CSS.FontFace;
  1084. /** @typedef {!{animationName:(Protocol.CSS.Value), keyframes:(!Array<Protocol.CSS.CSSKeyframeRule>)}} */
  1085. Protocol.CSS.CSSKeyframesRule;
  1086. /** @typedef {!{styleSheetId:(Protocol.CSS.StyleSheetId|undefined), origin:(Protocol.CSS.StyleSheetOrigin), keyText:(Protocol.CSS.Value), style:(Protocol.CSS.CSSStyle)}} */
  1087. Protocol.CSS.CSSKeyframeRule;
  1088. /** @typedef {!{styleSheetId:(Protocol.CSS.StyleSheetId), range:(Protocol.CSS.SourceRange), text:(string)}} */
  1089. Protocol.CSS.StyleDeclarationEdit;
  1090. /** @interface */
  1091. Protocol.CSSDispatcher = function() {};
  1092. /**
  1093. * @param {Protocol.CSS.FontFace=} opt_font
  1094. */
  1095. Protocol.CSSDispatcher.prototype.fontsUpdated = function(opt_font) {};
  1096. Protocol.CSSDispatcher.prototype.mediaQueryResultChanged = function() {};
  1097. /**
  1098. * @param {Protocol.CSS.CSSStyleSheetHeader} header
  1099. */
  1100. Protocol.CSSDispatcher.prototype.styleSheetAdded = function(header) {};
  1101. /**
  1102. * @param {Protocol.CSS.StyleSheetId} styleSheetId
  1103. */
  1104. Protocol.CSSDispatcher.prototype.styleSheetChanged = function(styleSheetId) {};
  1105. /**
  1106. * @param {Protocol.CSS.StyleSheetId} styleSheetId
  1107. */
  1108. Protocol.CSSDispatcher.prototype.styleSheetRemoved = function(styleSheetId) {};
  1109. Protocol.CacheStorage = {};
  1110. /**
  1111. * @constructor
  1112. */
  1113. Protocol.CacheStorageAgent = function(){};
  1114. /**
  1115. * @param {Protocol.CacheStorage.CacheId} cacheId
  1116. * @return {!Promise<undefined>}
  1117. */
  1118. Protocol.CacheStorageAgent.prototype.deleteCache = function(cacheId) {};
  1119. /** @typedef {!{cacheId: Protocol.CacheStorage.CacheId}} */
  1120. Protocol.CacheStorageAgent.DeleteCacheRequest;
  1121. /** @typedef {Object|undefined} */
  1122. Protocol.CacheStorageAgent.DeleteCacheResponse;
  1123. /**
  1124. * @param {!Protocol.CacheStorageAgent.DeleteCacheRequest} obj
  1125. * @return {!Promise<!Protocol.CacheStorageAgent.DeleteCacheResponse>} */
  1126. Protocol.CacheStorageAgent.prototype.invoke_deleteCache = function(obj) {};
  1127. /**
  1128. * @param {Protocol.CacheStorage.CacheId} cacheId
  1129. * @param {string} request
  1130. * @return {!Promise<undefined>}
  1131. */
  1132. Protocol.CacheStorageAgent.prototype.deleteEntry = function(cacheId, request) {};
  1133. /** @typedef {!{cacheId: Protocol.CacheStorage.CacheId, request: string}} */
  1134. Protocol.CacheStorageAgent.DeleteEntryRequest;
  1135. /** @typedef {Object|undefined} */
  1136. Protocol.CacheStorageAgent.DeleteEntryResponse;
  1137. /**
  1138. * @param {!Protocol.CacheStorageAgent.DeleteEntryRequest} obj
  1139. * @return {!Promise<!Protocol.CacheStorageAgent.DeleteEntryResponse>} */
  1140. Protocol.CacheStorageAgent.prototype.invoke_deleteEntry = function(obj) {};
  1141. /**
  1142. * @param {string} securityOrigin
  1143. * @return {!Promise<?Array<Protocol.CacheStorage.Cache>>}
  1144. */
  1145. Protocol.CacheStorageAgent.prototype.requestCacheNames = function(securityOrigin) {};
  1146. /** @typedef {!{securityOrigin: string}} */
  1147. Protocol.CacheStorageAgent.RequestCacheNamesRequest;
  1148. /** @typedef {!{caches: !Array<Protocol.CacheStorage.Cache>}} */
  1149. Protocol.CacheStorageAgent.RequestCacheNamesResponse;
  1150. /**
  1151. * @param {!Protocol.CacheStorageAgent.RequestCacheNamesRequest} obj
  1152. * @return {!Promise<!Protocol.CacheStorageAgent.RequestCacheNamesResponse>} */
  1153. Protocol.CacheStorageAgent.prototype.invoke_requestCacheNames = function(obj) {};
  1154. /**
  1155. * @param {Protocol.CacheStorage.CacheId} cacheId
  1156. * @param {string} requestURL
  1157. * @param {!Array<Protocol.CacheStorage.Header>} requestHeaders
  1158. * @return {!Promise<?Protocol.CacheStorage.CachedResponse>}
  1159. */
  1160. Protocol.CacheStorageAgent.prototype.requestCachedResponse = function(cacheId, requestURL, requestHeaders) {};
  1161. /** @typedef {!{requestHeaders: !Array<Protocol.CacheStorage.Header>, cacheId: Protocol.CacheStorage.CacheId, requestURL: string}} */
  1162. Protocol.CacheStorageAgent.RequestCachedResponseRequest;
  1163. /** @typedef {!{response: Protocol.CacheStorage.CachedResponse}} */
  1164. Protocol.CacheStorageAgent.RequestCachedResponseResponse;
  1165. /**
  1166. * @param {!Protocol.CacheStorageAgent.RequestCachedResponseRequest} obj
  1167. * @return {!Promise<!Protocol.CacheStorageAgent.RequestCachedResponseResponse>} */
  1168. Protocol.CacheStorageAgent.prototype.invoke_requestCachedResponse = function(obj) {};
  1169. /**
  1170. * @param {Protocol.CacheStorage.CacheId} cacheId
  1171. * @param {number=} opt_skipCount
  1172. * @param {number=} opt_pageSize
  1173. * @param {string=} opt_pathFilter
  1174. * @return {!Promise<?Array<Protocol.CacheStorage.DataEntry>>}
  1175. */
  1176. Protocol.CacheStorageAgent.prototype.requestEntries = function(cacheId, opt_skipCount, opt_pageSize, opt_pathFilter) {};
  1177. /** @typedef {!{pathFilter: (string|undefined), cacheId: Protocol.CacheStorage.CacheId, skipCount: (number|undefined), pageSize: (number|undefined)}} */
  1178. Protocol.CacheStorageAgent.RequestEntriesRequest;
  1179. /** @typedef {!{returnCount: number, cacheDataEntries: !Array<Protocol.CacheStorage.DataEntry>}} */
  1180. Protocol.CacheStorageAgent.RequestEntriesResponse;
  1181. /**
  1182. * @param {!Protocol.CacheStorageAgent.RequestEntriesRequest} obj
  1183. * @return {!Promise<!Protocol.CacheStorageAgent.RequestEntriesResponse>} */
  1184. Protocol.CacheStorageAgent.prototype.invoke_requestEntries = function(obj) {};
  1185. /** @typedef {string} */
  1186. Protocol.CacheStorage.CacheId;
  1187. /** @enum {string} */
  1188. Protocol.CacheStorage.CachedResponseType = {
  1189. Basic: "basic",
  1190. Cors: "cors",
  1191. Default: "default",
  1192. Error: "error",
  1193. OpaqueResponse: "opaqueResponse",
  1194. OpaqueRedirect: "opaqueRedirect"
  1195. };
  1196. /** @typedef {!{requestURL:(string), requestMethod:(string), requestHeaders:(!Array<Protocol.CacheStorage.Header>), responseTime:(number), responseStatus:(number), responseStatusText:(string), responseType:(Protocol.CacheStorage.CachedResponseType), responseHeaders:(!Array<Protocol.CacheStorage.Header>)}} */
  1197. Protocol.CacheStorage.DataEntry;
  1198. /** @typedef {!{cacheId:(Protocol.CacheStorage.CacheId), securityOrigin:(string), cacheName:(string)}} */
  1199. Protocol.CacheStorage.Cache;
  1200. /** @typedef {!{name:(string), value:(string)}} */
  1201. Protocol.CacheStorage.Header;
  1202. /** @typedef {!{body:(string)}} */
  1203. Protocol.CacheStorage.CachedResponse;
  1204. /** @interface */
  1205. Protocol.CacheStorageDispatcher = function() {};
  1206. Protocol.Cast = {};
  1207. /**
  1208. * @constructor
  1209. */
  1210. Protocol.CastAgent = function(){};
  1211. /**
  1212. * @param {string=} opt_presentationUrl
  1213. * @return {!Promise<undefined>}
  1214. */
  1215. Protocol.CastAgent.prototype.enable = function(opt_presentationUrl) {};
  1216. /** @typedef {!{presentationUrl: (string|undefined)}} */
  1217. Protocol.CastAgent.EnableRequest;
  1218. /** @typedef {Object|undefined} */
  1219. Protocol.CastAgent.EnableResponse;
  1220. /**
  1221. * @param {!Protocol.CastAgent.EnableRequest} obj
  1222. * @return {!Promise<!Protocol.CastAgent.EnableResponse>} */
  1223. Protocol.CastAgent.prototype.invoke_enable = function(obj) {};
  1224. /**
  1225. * @return {!Promise<undefined>}
  1226. */
  1227. Protocol.CastAgent.prototype.disable = function() {};
  1228. /** @typedef {Object|undefined} */
  1229. Protocol.CastAgent.DisableRequest;
  1230. /** @typedef {Object|undefined} */
  1231. Protocol.CastAgent.DisableResponse;
  1232. /**
  1233. * @param {!Protocol.CastAgent.DisableRequest} obj
  1234. * @return {!Promise<!Protocol.CastAgent.DisableResponse>} */
  1235. Protocol.CastAgent.prototype.invoke_disable = function(obj) {};
  1236. /**
  1237. * @param {string} sinkName
  1238. * @return {!Promise<undefined>}
  1239. */
  1240. Protocol.CastAgent.prototype.setSinkToUse = function(sinkName) {};
  1241. /** @typedef {!{sinkName: string}} */
  1242. Protocol.CastAgent.SetSinkToUseRequest;
  1243. /** @typedef {Object|undefined} */
  1244. Protocol.CastAgent.SetSinkToUseResponse;
  1245. /**
  1246. * @param {!Protocol.CastAgent.SetSinkToUseRequest} obj
  1247. * @return {!Promise<!Protocol.CastAgent.SetSinkToUseResponse>} */
  1248. Protocol.CastAgent.prototype.invoke_setSinkToUse = function(obj) {};
  1249. /**
  1250. * @param {string} sinkName
  1251. * @return {!Promise<undefined>}
  1252. */
  1253. Protocol.CastAgent.prototype.startTabMirroring = function(sinkName) {};
  1254. /** @typedef {!{sinkName: string}} */
  1255. Protocol.CastAgent.StartTabMirroringRequest;
  1256. /** @typedef {Object|undefined} */
  1257. Protocol.CastAgent.StartTabMirroringResponse;
  1258. /**
  1259. * @param {!Protocol.CastAgent.StartTabMirroringRequest} obj
  1260. * @return {!Promise<!Protocol.CastAgent.StartTabMirroringResponse>} */
  1261. Protocol.CastAgent.prototype.invoke_startTabMirroring = function(obj) {};
  1262. /**
  1263. * @param {string} sinkName
  1264. * @return {!Promise<undefined>}
  1265. */
  1266. Protocol.CastAgent.prototype.stopCasting = function(sinkName) {};
  1267. /** @typedef {!{sinkName: string}} */
  1268. Protocol.CastAgent.StopCastingRequest;
  1269. /** @typedef {Object|undefined} */
  1270. Protocol.CastAgent.StopCastingResponse;
  1271. /**
  1272. * @param {!Protocol.CastAgent.StopCastingRequest} obj
  1273. * @return {!Promise<!Protocol.CastAgent.StopCastingResponse>} */
  1274. Protocol.CastAgent.prototype.invoke_stopCasting = function(obj) {};
  1275. /** @typedef {!{name:(string), id:(string), session:(string|undefined)}} */
  1276. Protocol.Cast.Sink;
  1277. /** @interface */
  1278. Protocol.CastDispatcher = function() {};
  1279. /**
  1280. * @param {!Array<Protocol.Cast.Sink>} sinks
  1281. */
  1282. Protocol.CastDispatcher.prototype.sinksUpdated = function(sinks) {};
  1283. /**
  1284. * @param {string} issueMessage
  1285. */
  1286. Protocol.CastDispatcher.prototype.issueUpdated = function(issueMessage) {};
  1287. Protocol.DOM = {};
  1288. /**
  1289. * @constructor
  1290. */
  1291. Protocol.DOMAgent = function(){};
  1292. /**
  1293. * @param {Protocol.DOM.NodeId} nodeId
  1294. * @return {!Promise<?Array<string>>}
  1295. */
  1296. Protocol.DOMAgent.prototype.collectClassNamesFromSubtree = function(nodeId) {};
  1297. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  1298. Protocol.DOMAgent.CollectClassNamesFromSubtreeRequest;
  1299. /** @typedef {!{classNames: !Array<string>}} */
  1300. Protocol.DOMAgent.CollectClassNamesFromSubtreeResponse;
  1301. /**
  1302. * @param {!Protocol.DOMAgent.CollectClassNamesFromSubtreeRequest} obj
  1303. * @return {!Promise<!Protocol.DOMAgent.CollectClassNamesFromSubtreeResponse>} */
  1304. Protocol.DOMAgent.prototype.invoke_collectClassNamesFromSubtree = function(obj) {};
  1305. /**
  1306. * @param {Protocol.DOM.NodeId} nodeId
  1307. * @param {Protocol.DOM.NodeId} targetNodeId
  1308. * @param {Protocol.DOM.NodeId=} opt_insertBeforeNodeId
  1309. * @return {!Promise<?Protocol.DOM.NodeId>}
  1310. */
  1311. Protocol.DOMAgent.prototype.copyTo = function(nodeId, targetNodeId, opt_insertBeforeNodeId) {};
  1312. /** @typedef {!{targetNodeId: Protocol.DOM.NodeId, nodeId: Protocol.DOM.NodeId, insertBeforeNodeId: (Protocol.DOM.NodeId|undefined)}} */
  1313. Protocol.DOMAgent.CopyToRequest;
  1314. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  1315. Protocol.DOMAgent.CopyToResponse;
  1316. /**
  1317. * @param {!Protocol.DOMAgent.CopyToRequest} obj
  1318. * @return {!Promise<!Protocol.DOMAgent.CopyToResponse>} */
  1319. Protocol.DOMAgent.prototype.invoke_copyTo = function(obj) {};
  1320. /**
  1321. * @param {Protocol.DOM.NodeId=} opt_nodeId
  1322. * @param {Protocol.DOM.BackendNodeId=} opt_backendNodeId
  1323. * @param {Protocol.Runtime.RemoteObjectId=} opt_objectId
  1324. * @param {number=} opt_depth
  1325. * @param {boolean=} opt_pierce
  1326. * @return {!Promise<?Protocol.DOM.Node>}
  1327. */
  1328. Protocol.DOMAgent.prototype.describeNode = function(opt_nodeId, opt_backendNodeId, opt_objectId, opt_depth, opt_pierce) {};
  1329. /** @typedef {!{depth: (number|undefined), objectId: (Protocol.Runtime.RemoteObjectId|undefined), nodeId: (Protocol.DOM.NodeId|undefined), backendNodeId: (Protocol.DOM.BackendNodeId|undefined), pierce: (boolean|undefined)}} */
  1330. Protocol.DOMAgent.DescribeNodeRequest;
  1331. /** @typedef {!{node: Protocol.DOM.Node}} */
  1332. Protocol.DOMAgent.DescribeNodeResponse;
  1333. /**
  1334. * @param {!Protocol.DOMAgent.DescribeNodeRequest} obj
  1335. * @return {!Promise<!Protocol.DOMAgent.DescribeNodeResponse>} */
  1336. Protocol.DOMAgent.prototype.invoke_describeNode = function(obj) {};
  1337. /**
  1338. * @return {!Promise<undefined>}
  1339. */
  1340. Protocol.DOMAgent.prototype.disable = function() {};
  1341. /** @typedef {Object|undefined} */
  1342. Protocol.DOMAgent.DisableRequest;
  1343. /** @typedef {Object|undefined} */
  1344. Protocol.DOMAgent.DisableResponse;
  1345. /**
  1346. * @param {!Protocol.DOMAgent.DisableRequest} obj
  1347. * @return {!Promise<!Protocol.DOMAgent.DisableResponse>} */
  1348. Protocol.DOMAgent.prototype.invoke_disable = function(obj) {};
  1349. /**
  1350. * @param {string} searchId
  1351. * @return {!Promise<undefined>}
  1352. */
  1353. Protocol.DOMAgent.prototype.discardSearchResults = function(searchId) {};
  1354. /** @typedef {!{searchId: string}} */
  1355. Protocol.DOMAgent.DiscardSearchResultsRequest;
  1356. /** @typedef {Object|undefined} */
  1357. Protocol.DOMAgent.DiscardSearchResultsResponse;
  1358. /**
  1359. * @param {!Protocol.DOMAgent.DiscardSearchResultsRequest} obj
  1360. * @return {!Promise<!Protocol.DOMAgent.DiscardSearchResultsResponse>} */
  1361. Protocol.DOMAgent.prototype.invoke_discardSearchResults = function(obj) {};
  1362. /**
  1363. * @return {!Promise<undefined>}
  1364. */
  1365. Protocol.DOMAgent.prototype.enable = function() {};
  1366. /** @typedef {Object|undefined} */
  1367. Protocol.DOMAgent.EnableRequest;
  1368. /** @typedef {Object|undefined} */
  1369. Protocol.DOMAgent.EnableResponse;
  1370. /**
  1371. * @param {!Protocol.DOMAgent.EnableRequest} obj
  1372. * @return {!Promise<!Protocol.DOMAgent.EnableResponse>} */
  1373. Protocol.DOMAgent.prototype.invoke_enable = function(obj) {};
  1374. /**
  1375. * @param {Protocol.DOM.NodeId=} opt_nodeId
  1376. * @param {Protocol.DOM.BackendNodeId=} opt_backendNodeId
  1377. * @param {Protocol.Runtime.RemoteObjectId=} opt_objectId
  1378. * @return {!Promise<undefined>}
  1379. */
  1380. Protocol.DOMAgent.prototype.focus = function(opt_nodeId, opt_backendNodeId, opt_objectId) {};
  1381. /** @typedef {!{objectId: (Protocol.Runtime.RemoteObjectId|undefined), nodeId: (Protocol.DOM.NodeId|undefined), backendNodeId: (Protocol.DOM.BackendNodeId|undefined)}} */
  1382. Protocol.DOMAgent.FocusRequest;
  1383. /** @typedef {Object|undefined} */
  1384. Protocol.DOMAgent.FocusResponse;
  1385. /**
  1386. * @param {!Protocol.DOMAgent.FocusRequest} obj
  1387. * @return {!Promise<!Protocol.DOMAgent.FocusResponse>} */
  1388. Protocol.DOMAgent.prototype.invoke_focus = function(obj) {};
  1389. /**
  1390. * @param {Protocol.DOM.NodeId} nodeId
  1391. * @return {!Promise<?Array<string>>}
  1392. */
  1393. Protocol.DOMAgent.prototype.getAttributes = function(nodeId) {};
  1394. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  1395. Protocol.DOMAgent.GetAttributesRequest;
  1396. /** @typedef {!{attributes: !Array<string>}} */
  1397. Protocol.DOMAgent.GetAttributesResponse;
  1398. /**
  1399. * @param {!Protocol.DOMAgent.GetAttributesRequest} obj
  1400. * @return {!Promise<!Protocol.DOMAgent.GetAttributesResponse>} */
  1401. Protocol.DOMAgent.prototype.invoke_getAttributes = function(obj) {};
  1402. /**
  1403. * @param {Protocol.DOM.NodeId=} opt_nodeId
  1404. * @param {Protocol.DOM.BackendNodeId=} opt_backendNodeId
  1405. * @param {Protocol.Runtime.RemoteObjectId=} opt_objectId
  1406. * @return {!Promise<?Protocol.DOM.BoxModel>}
  1407. */
  1408. Protocol.DOMAgent.prototype.getBoxModel = function(opt_nodeId, opt_backendNodeId, opt_objectId) {};
  1409. /** @typedef {!{objectId: (Protocol.Runtime.RemoteObjectId|undefined), nodeId: (Protocol.DOM.NodeId|undefined), backendNodeId: (Protocol.DOM.BackendNodeId|undefined)}} */
  1410. Protocol.DOMAgent.GetBoxModelRequest;
  1411. /** @typedef {!{model: Protocol.DOM.BoxModel}} */
  1412. Protocol.DOMAgent.GetBoxModelResponse;
  1413. /**
  1414. * @param {!Protocol.DOMAgent.GetBoxModelRequest} obj
  1415. * @return {!Promise<!Protocol.DOMAgent.GetBoxModelResponse>} */
  1416. Protocol.DOMAgent.prototype.invoke_getBoxModel = function(obj) {};
  1417. /**
  1418. * @param {Protocol.DOM.NodeId=} opt_nodeId
  1419. * @param {Protocol.DOM.BackendNodeId=} opt_backendNodeId
  1420. * @param {Protocol.Runtime.RemoteObjectId=} opt_objectId
  1421. * @return {!Promise<?Array<Protocol.DOM.Quad>>}
  1422. */
  1423. Protocol.DOMAgent.prototype.getContentQuads = function(opt_nodeId, opt_backendNodeId, opt_objectId) {};
  1424. /** @typedef {!{objectId: (Protocol.Runtime.RemoteObjectId|undefined), nodeId: (Protocol.DOM.NodeId|undefined), backendNodeId: (Protocol.DOM.BackendNodeId|undefined)}} */
  1425. Protocol.DOMAgent.GetContentQuadsRequest;
  1426. /** @typedef {!{quads: !Array<Protocol.DOM.Quad>}} */
  1427. Protocol.DOMAgent.GetContentQuadsResponse;
  1428. /**
  1429. * @param {!Protocol.DOMAgent.GetContentQuadsRequest} obj
  1430. * @return {!Promise<!Protocol.DOMAgent.GetContentQuadsResponse>} */
  1431. Protocol.DOMAgent.prototype.invoke_getContentQuads = function(obj) {};
  1432. /**
  1433. * @param {number=} opt_depth
  1434. * @param {boolean=} opt_pierce
  1435. * @return {!Promise<?Protocol.DOM.Node>}
  1436. */
  1437. Protocol.DOMAgent.prototype.getDocument = function(opt_depth, opt_pierce) {};
  1438. /** @typedef {!{depth: (number|undefined), pierce: (boolean|undefined)}} */
  1439. Protocol.DOMAgent.GetDocumentRequest;
  1440. /** @typedef {!{root: Protocol.DOM.Node}} */
  1441. Protocol.DOMAgent.GetDocumentResponse;
  1442. /**
  1443. * @param {!Protocol.DOMAgent.GetDocumentRequest} obj
  1444. * @return {!Promise<!Protocol.DOMAgent.GetDocumentResponse>} */
  1445. Protocol.DOMAgent.prototype.invoke_getDocument = function(obj) {};
  1446. /**
  1447. * @param {number=} opt_depth
  1448. * @param {boolean=} opt_pierce
  1449. * @return {!Promise<?Array<Protocol.DOM.Node>>}
  1450. */
  1451. Protocol.DOMAgent.prototype.getFlattenedDocument = function(opt_depth, opt_pierce) {};
  1452. /** @typedef {!{depth: (number|undefined), pierce: (boolean|undefined)}} */
  1453. Protocol.DOMAgent.GetFlattenedDocumentRequest;
  1454. /** @typedef {!{nodes: !Array<Protocol.DOM.Node>}} */
  1455. Protocol.DOMAgent.GetFlattenedDocumentResponse;
  1456. /**
  1457. * @param {!Protocol.DOMAgent.GetFlattenedDocumentRequest} obj
  1458. * @return {!Promise<!Protocol.DOMAgent.GetFlattenedDocumentResponse>} */
  1459. Protocol.DOMAgent.prototype.invoke_getFlattenedDocument = function(obj) {};
  1460. /**
  1461. * @param {number} x
  1462. * @param {number} y
  1463. * @param {boolean=} opt_includeUserAgentShadowDOM
  1464. * @param {boolean=} opt_ignorePointerEventsNone
  1465. * @return {!Promise<?Protocol.DOM.BackendNodeId>}
  1466. */
  1467. Protocol.DOMAgent.prototype.getNodeForLocation = function(x, y, opt_includeUserAgentShadowDOM, opt_ignorePointerEventsNone) {};
  1468. /** @typedef {!{y: number, x: number, ignorePointerEventsNone: (boolean|undefined), includeUserAgentShadowDOM: (boolean|undefined)}} */
  1469. Protocol.DOMAgent.GetNodeForLocationRequest;
  1470. /** @typedef {!{nodeId: Protocol.DOM.NodeId, backendNodeId: Protocol.DOM.BackendNodeId, frameId: Protocol.Page.FrameId}} */
  1471. Protocol.DOMAgent.GetNodeForLocationResponse;
  1472. /**
  1473. * @param {!Protocol.DOMAgent.GetNodeForLocationRequest} obj
  1474. * @return {!Promise<!Protocol.DOMAgent.GetNodeForLocationResponse>} */
  1475. Protocol.DOMAgent.prototype.invoke_getNodeForLocation = function(obj) {};
  1476. /**
  1477. * @param {Protocol.DOM.NodeId=} opt_nodeId
  1478. * @param {Protocol.DOM.BackendNodeId=} opt_backendNodeId
  1479. * @param {Protocol.Runtime.RemoteObjectId=} opt_objectId
  1480. * @return {!Promise<?string>}
  1481. */
  1482. Protocol.DOMAgent.prototype.getOuterHTML = function(opt_nodeId, opt_backendNodeId, opt_objectId) {};
  1483. /** @typedef {!{objectId: (Protocol.Runtime.RemoteObjectId|undefined), nodeId: (Protocol.DOM.NodeId|undefined), backendNodeId: (Protocol.DOM.BackendNodeId|undefined)}} */
  1484. Protocol.DOMAgent.GetOuterHTMLRequest;
  1485. /** @typedef {!{outerHTML: string}} */
  1486. Protocol.DOMAgent.GetOuterHTMLResponse;
  1487. /**
  1488. * @param {!Protocol.DOMAgent.GetOuterHTMLRequest} obj
  1489. * @return {!Promise<!Protocol.DOMAgent.GetOuterHTMLResponse>} */
  1490. Protocol.DOMAgent.prototype.invoke_getOuterHTML = function(obj) {};
  1491. /**
  1492. * @param {Protocol.DOM.NodeId} nodeId
  1493. * @return {!Promise<?Protocol.DOM.NodeId>}
  1494. */
  1495. Protocol.DOMAgent.prototype.getRelayoutBoundary = function(nodeId) {};
  1496. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  1497. Protocol.DOMAgent.GetRelayoutBoundaryRequest;
  1498. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  1499. Protocol.DOMAgent.GetRelayoutBoundaryResponse;
  1500. /**
  1501. * @param {!Protocol.DOMAgent.GetRelayoutBoundaryRequest} obj
  1502. * @return {!Promise<!Protocol.DOMAgent.GetRelayoutBoundaryResponse>} */
  1503. Protocol.DOMAgent.prototype.invoke_getRelayoutBoundary = function(obj) {};
  1504. /**
  1505. * @param {string} searchId
  1506. * @param {number} fromIndex
  1507. * @param {number} toIndex
  1508. * @return {!Promise<?Array<Protocol.DOM.NodeId>>}
  1509. */
  1510. Protocol.DOMAgent.prototype.getSearchResults = function(searchId, fromIndex, toIndex) {};
  1511. /** @typedef {!{toIndex: number, searchId: string, fromIndex: number}} */
  1512. Protocol.DOMAgent.GetSearchResultsRequest;
  1513. /** @typedef {!{nodeIds: !Array<Protocol.DOM.NodeId>}} */
  1514. Protocol.DOMAgent.GetSearchResultsResponse;
  1515. /**
  1516. * @param {!Protocol.DOMAgent.GetSearchResultsRequest} obj
  1517. * @return {!Promise<!Protocol.DOMAgent.GetSearchResultsResponse>} */
  1518. Protocol.DOMAgent.prototype.invoke_getSearchResults = function(obj) {};
  1519. /**
  1520. * @return {!Promise<undefined>}
  1521. */
  1522. Protocol.DOMAgent.prototype.hideHighlight = function() {};
  1523. /** @typedef {Object|undefined} */
  1524. Protocol.DOMAgent.HideHighlightRequest;
  1525. /** @typedef {Object|undefined} */
  1526. Protocol.DOMAgent.HideHighlightResponse;
  1527. /**
  1528. * @param {!Protocol.DOMAgent.HideHighlightRequest} obj
  1529. * @return {!Promise<!Protocol.DOMAgent.HideHighlightResponse>} */
  1530. Protocol.DOMAgent.prototype.invoke_hideHighlight = function(obj) {};
  1531. /**
  1532. * @return {!Promise<undefined>}
  1533. */
  1534. Protocol.DOMAgent.prototype.highlightNode = function() {};
  1535. /** @typedef {Object|undefined} */
  1536. Protocol.DOMAgent.HighlightNodeRequest;
  1537. /** @typedef {Object|undefined} */
  1538. Protocol.DOMAgent.HighlightNodeResponse;
  1539. /**
  1540. * @param {!Protocol.DOMAgent.HighlightNodeRequest} obj
  1541. * @return {!Promise<!Protocol.DOMAgent.HighlightNodeResponse>} */
  1542. Protocol.DOMAgent.prototype.invoke_highlightNode = function(obj) {};
  1543. /**
  1544. * @return {!Promise<undefined>}
  1545. */
  1546. Protocol.DOMAgent.prototype.highlightRect = function() {};
  1547. /** @typedef {Object|undefined} */
  1548. Protocol.DOMAgent.HighlightRectRequest;
  1549. /** @typedef {Object|undefined} */
  1550. Protocol.DOMAgent.HighlightRectResponse;
  1551. /**
  1552. * @param {!Protocol.DOMAgent.HighlightRectRequest} obj
  1553. * @return {!Promise<!Protocol.DOMAgent.HighlightRectResponse>} */
  1554. Protocol.DOMAgent.prototype.invoke_highlightRect = function(obj) {};
  1555. /**
  1556. * @return {!Promise<undefined>}
  1557. */
  1558. Protocol.DOMAgent.prototype.markUndoableState = function() {};
  1559. /** @typedef {Object|undefined} */
  1560. Protocol.DOMAgent.MarkUndoableStateRequest;
  1561. /** @typedef {Object|undefined} */
  1562. Protocol.DOMAgent.MarkUndoableStateResponse;
  1563. /**
  1564. * @param {!Protocol.DOMAgent.MarkUndoableStateRequest} obj
  1565. * @return {!Promise<!Protocol.DOMAgent.MarkUndoableStateResponse>} */
  1566. Protocol.DOMAgent.prototype.invoke_markUndoableState = function(obj) {};
  1567. /**
  1568. * @param {Protocol.DOM.NodeId} nodeId
  1569. * @param {Protocol.DOM.NodeId} targetNodeId
  1570. * @param {Protocol.DOM.NodeId=} opt_insertBeforeNodeId
  1571. * @return {!Promise<?Protocol.DOM.NodeId>}
  1572. */
  1573. Protocol.DOMAgent.prototype.moveTo = function(nodeId, targetNodeId, opt_insertBeforeNodeId) {};
  1574. /** @typedef {!{targetNodeId: Protocol.DOM.NodeId, nodeId: Protocol.DOM.NodeId, insertBeforeNodeId: (Protocol.DOM.NodeId|undefined)}} */
  1575. Protocol.DOMAgent.MoveToRequest;
  1576. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  1577. Protocol.DOMAgent.MoveToResponse;
  1578. /**
  1579. * @param {!Protocol.DOMAgent.MoveToRequest} obj
  1580. * @return {!Promise<!Protocol.DOMAgent.MoveToResponse>} */
  1581. Protocol.DOMAgent.prototype.invoke_moveTo = function(obj) {};
  1582. /**
  1583. * @param {string} query
  1584. * @param {boolean=} opt_includeUserAgentShadowDOM
  1585. * @return {!Promise<?string>}
  1586. */
  1587. Protocol.DOMAgent.prototype.performSearch = function(query, opt_includeUserAgentShadowDOM) {};
  1588. /** @typedef {!{query: string, includeUserAgentShadowDOM: (boolean|undefined)}} */
  1589. Protocol.DOMAgent.PerformSearchRequest;
  1590. /** @typedef {!{searchId: string, resultCount: number}} */
  1591. Protocol.DOMAgent.PerformSearchResponse;
  1592. /**
  1593. * @param {!Protocol.DOMAgent.PerformSearchRequest} obj
  1594. * @return {!Promise<!Protocol.DOMAgent.PerformSearchResponse>} */
  1595. Protocol.DOMAgent.prototype.invoke_performSearch = function(obj) {};
  1596. /**
  1597. * @param {string} path
  1598. * @return {!Promise<?Protocol.DOM.NodeId>}
  1599. */
  1600. Protocol.DOMAgent.prototype.pushNodeByPathToFrontend = function(path) {};
  1601. /** @typedef {!{path: string}} */
  1602. Protocol.DOMAgent.PushNodeByPathToFrontendRequest;
  1603. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  1604. Protocol.DOMAgent.PushNodeByPathToFrontendResponse;
  1605. /**
  1606. * @param {!Protocol.DOMAgent.PushNodeByPathToFrontendRequest} obj
  1607. * @return {!Promise<!Protocol.DOMAgent.PushNodeByPathToFrontendResponse>} */
  1608. Protocol.DOMAgent.prototype.invoke_pushNodeByPathToFrontend = function(obj) {};
  1609. /**
  1610. * @param {!Array<Protocol.DOM.BackendNodeId>} backendNodeIds
  1611. * @return {!Promise<?Array<Protocol.DOM.NodeId>>}
  1612. */
  1613. Protocol.DOMAgent.prototype.pushNodesByBackendIdsToFrontend = function(backendNodeIds) {};
  1614. /** @typedef {!{backendNodeIds: !Array<Protocol.DOM.BackendNodeId>}} */
  1615. Protocol.DOMAgent.PushNodesByBackendIdsToFrontendRequest;
  1616. /** @typedef {!{nodeIds: !Array<Protocol.DOM.NodeId>}} */
  1617. Protocol.DOMAgent.PushNodesByBackendIdsToFrontendResponse;
  1618. /**
  1619. * @param {!Protocol.DOMAgent.PushNodesByBackendIdsToFrontendRequest} obj
  1620. * @return {!Promise<!Protocol.DOMAgent.PushNodesByBackendIdsToFrontendResponse>} */
  1621. Protocol.DOMAgent.prototype.invoke_pushNodesByBackendIdsToFrontend = function(obj) {};
  1622. /**
  1623. * @param {Protocol.DOM.NodeId} nodeId
  1624. * @param {string} selector
  1625. * @return {!Promise<?Protocol.DOM.NodeId>}
  1626. */
  1627. Protocol.DOMAgent.prototype.querySelector = function(nodeId, selector) {};
  1628. /** @typedef {!{nodeId: Protocol.DOM.NodeId, selector: string}} */
  1629. Protocol.DOMAgent.QuerySelectorRequest;
  1630. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  1631. Protocol.DOMAgent.QuerySelectorResponse;
  1632. /**
  1633. * @param {!Protocol.DOMAgent.QuerySelectorRequest} obj
  1634. * @return {!Promise<!Protocol.DOMAgent.QuerySelectorResponse>} */
  1635. Protocol.DOMAgent.prototype.invoke_querySelector = function(obj) {};
  1636. /**
  1637. * @param {Protocol.DOM.NodeId} nodeId
  1638. * @param {string} selector
  1639. * @return {!Promise<?Array<Protocol.DOM.NodeId>>}
  1640. */
  1641. Protocol.DOMAgent.prototype.querySelectorAll = function(nodeId, selector) {};
  1642. /** @typedef {!{nodeId: Protocol.DOM.NodeId, selector: string}} */
  1643. Protocol.DOMAgent.QuerySelectorAllRequest;
  1644. /** @typedef {!{nodeIds: !Array<Protocol.DOM.NodeId>}} */
  1645. Protocol.DOMAgent.QuerySelectorAllResponse;
  1646. /**
  1647. * @param {!Protocol.DOMAgent.QuerySelectorAllRequest} obj
  1648. * @return {!Promise<!Protocol.DOMAgent.QuerySelectorAllResponse>} */
  1649. Protocol.DOMAgent.prototype.invoke_querySelectorAll = function(obj) {};
  1650. /**
  1651. * @return {!Promise<undefined>}
  1652. */
  1653. Protocol.DOMAgent.prototype.redo = function() {};
  1654. /** @typedef {Object|undefined} */
  1655. Protocol.DOMAgent.RedoRequest;
  1656. /** @typedef {Object|undefined} */
  1657. Protocol.DOMAgent.RedoResponse;
  1658. /**
  1659. * @param {!Protocol.DOMAgent.RedoRequest} obj
  1660. * @return {!Promise<!Protocol.DOMAgent.RedoResponse>} */
  1661. Protocol.DOMAgent.prototype.invoke_redo = function(obj) {};
  1662. /**
  1663. * @param {Protocol.DOM.NodeId} nodeId
  1664. * @param {string} name
  1665. * @return {!Promise<undefined>}
  1666. */
  1667. Protocol.DOMAgent.prototype.removeAttribute = function(nodeId, name) {};
  1668. /** @typedef {!{nodeId: Protocol.DOM.NodeId, name: string}} */
  1669. Protocol.DOMAgent.RemoveAttributeRequest;
  1670. /** @typedef {Object|undefined} */
  1671. Protocol.DOMAgent.RemoveAttributeResponse;
  1672. /**
  1673. * @param {!Protocol.DOMAgent.RemoveAttributeRequest} obj
  1674. * @return {!Promise<!Protocol.DOMAgent.RemoveAttributeResponse>} */
  1675. Protocol.DOMAgent.prototype.invoke_removeAttribute = function(obj) {};
  1676. /**
  1677. * @param {Protocol.DOM.NodeId} nodeId
  1678. * @return {!Promise<undefined>}
  1679. */
  1680. Protocol.DOMAgent.prototype.removeNode = function(nodeId) {};
  1681. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  1682. Protocol.DOMAgent.RemoveNodeRequest;
  1683. /** @typedef {Object|undefined} */
  1684. Protocol.DOMAgent.RemoveNodeResponse;
  1685. /**
  1686. * @param {!Protocol.DOMAgent.RemoveNodeRequest} obj
  1687. * @return {!Promise<!Protocol.DOMAgent.RemoveNodeResponse>} */
  1688. Protocol.DOMAgent.prototype.invoke_removeNode = function(obj) {};
  1689. /**
  1690. * @param {Protocol.DOM.NodeId} nodeId
  1691. * @param {number=} opt_depth
  1692. * @param {boolean=} opt_pierce
  1693. * @return {!Promise<undefined>}
  1694. */
  1695. Protocol.DOMAgent.prototype.requestChildNodes = function(nodeId, opt_depth, opt_pierce) {};
  1696. /** @typedef {!{depth: (number|undefined), nodeId: Protocol.DOM.NodeId, pierce: (boolean|undefined)}} */
  1697. Protocol.DOMAgent.RequestChildNodesRequest;
  1698. /** @typedef {Object|undefined} */
  1699. Protocol.DOMAgent.RequestChildNodesResponse;
  1700. /**
  1701. * @param {!Protocol.DOMAgent.RequestChildNodesRequest} obj
  1702. * @return {!Promise<!Protocol.DOMAgent.RequestChildNodesResponse>} */
  1703. Protocol.DOMAgent.prototype.invoke_requestChildNodes = function(obj) {};
  1704. /**
  1705. * @param {Protocol.Runtime.RemoteObjectId} objectId
  1706. * @return {!Promise<?Protocol.DOM.NodeId>}
  1707. */
  1708. Protocol.DOMAgent.prototype.requestNode = function(objectId) {};
  1709. /** @typedef {!{objectId: Protocol.Runtime.RemoteObjectId}} */
  1710. Protocol.DOMAgent.RequestNodeRequest;
  1711. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  1712. Protocol.DOMAgent.RequestNodeResponse;
  1713. /**
  1714. * @param {!Protocol.DOMAgent.RequestNodeRequest} obj
  1715. * @return {!Promise<!Protocol.DOMAgent.RequestNodeResponse>} */
  1716. Protocol.DOMAgent.prototype.invoke_requestNode = function(obj) {};
  1717. /**
  1718. * @param {Protocol.DOM.NodeId=} opt_nodeId
  1719. * @param {Protocol.DOM.BackendNodeId=} opt_backendNodeId
  1720. * @param {string=} opt_objectGroup
  1721. * @param {Protocol.Runtime.ExecutionContextId=} opt_executionContextId
  1722. * @return {!Promise<?Protocol.Runtime.RemoteObject>}
  1723. */
  1724. Protocol.DOMAgent.prototype.resolveNode = function(opt_nodeId, opt_backendNodeId, opt_objectGroup, opt_executionContextId) {};
  1725. /** @typedef {!{objectGroup: (string|undefined), executionContextId: (Protocol.Runtime.ExecutionContextId|undefined), nodeId: (Protocol.DOM.NodeId|undefined), backendNodeId: (Protocol.DOM.BackendNodeId|undefined)}} */
  1726. Protocol.DOMAgent.ResolveNodeRequest;
  1727. /** @typedef {!{object: Protocol.Runtime.RemoteObject}} */
  1728. Protocol.DOMAgent.ResolveNodeResponse;
  1729. /**
  1730. * @param {!Protocol.DOMAgent.ResolveNodeRequest} obj
  1731. * @return {!Promise<!Protocol.DOMAgent.ResolveNodeResponse>} */
  1732. Protocol.DOMAgent.prototype.invoke_resolveNode = function(obj) {};
  1733. /**
  1734. * @param {Protocol.DOM.NodeId} nodeId
  1735. * @param {string} name
  1736. * @param {string} value
  1737. * @return {!Promise<undefined>}
  1738. */
  1739. Protocol.DOMAgent.prototype.setAttributeValue = function(nodeId, name, value) {};
  1740. /** @typedef {!{nodeId: Protocol.DOM.NodeId, value: string, name: string}} */
  1741. Protocol.DOMAgent.SetAttributeValueRequest;
  1742. /** @typedef {Object|undefined} */
  1743. Protocol.DOMAgent.SetAttributeValueResponse;
  1744. /**
  1745. * @param {!Protocol.DOMAgent.SetAttributeValueRequest} obj
  1746. * @return {!Promise<!Protocol.DOMAgent.SetAttributeValueResponse>} */
  1747. Protocol.DOMAgent.prototype.invoke_setAttributeValue = function(obj) {};
  1748. /**
  1749. * @param {Protocol.DOM.NodeId} nodeId
  1750. * @param {string} text
  1751. * @param {string=} opt_name
  1752. * @return {!Promise<undefined>}
  1753. */
  1754. Protocol.DOMAgent.prototype.setAttributesAsText = function(nodeId, text, opt_name) {};
  1755. /** @typedef {!{text: string, nodeId: Protocol.DOM.NodeId, name: (string|undefined)}} */
  1756. Protocol.DOMAgent.SetAttributesAsTextRequest;
  1757. /** @typedef {Object|undefined} */
  1758. Protocol.DOMAgent.SetAttributesAsTextResponse;
  1759. /**
  1760. * @param {!Protocol.DOMAgent.SetAttributesAsTextRequest} obj
  1761. * @return {!Promise<!Protocol.DOMAgent.SetAttributesAsTextResponse>} */
  1762. Protocol.DOMAgent.prototype.invoke_setAttributesAsText = function(obj) {};
  1763. /**
  1764. * @param {!Array<string>} files
  1765. * @param {Protocol.DOM.NodeId=} opt_nodeId
  1766. * @param {Protocol.DOM.BackendNodeId=} opt_backendNodeId
  1767. * @param {Protocol.Runtime.RemoteObjectId=} opt_objectId
  1768. * @return {!Promise<undefined>}
  1769. */
  1770. Protocol.DOMAgent.prototype.setFileInputFiles = function(files, opt_nodeId, opt_backendNodeId, opt_objectId) {};
  1771. /** @typedef {!{files: !Array<string>, objectId: (Protocol.Runtime.RemoteObjectId|undefined), nodeId: (Protocol.DOM.NodeId|undefined), backendNodeId: (Protocol.DOM.BackendNodeId|undefined)}} */
  1772. Protocol.DOMAgent.SetFileInputFilesRequest;
  1773. /** @typedef {Object|undefined} */
  1774. Protocol.DOMAgent.SetFileInputFilesResponse;
  1775. /**
  1776. * @param {!Protocol.DOMAgent.SetFileInputFilesRequest} obj
  1777. * @return {!Promise<!Protocol.DOMAgent.SetFileInputFilesResponse>} */
  1778. Protocol.DOMAgent.prototype.invoke_setFileInputFiles = function(obj) {};
  1779. /**
  1780. * @param {boolean} enable
  1781. * @return {!Promise<undefined>}
  1782. */
  1783. Protocol.DOMAgent.prototype.setNodeStackTracesEnabled = function(enable) {};
  1784. /** @typedef {!{enable: boolean}} */
  1785. Protocol.DOMAgent.SetNodeStackTracesEnabledRequest;
  1786. /** @typedef {Object|undefined} */
  1787. Protocol.DOMAgent.SetNodeStackTracesEnabledResponse;
  1788. /**
  1789. * @param {!Protocol.DOMAgent.SetNodeStackTracesEnabledRequest} obj
  1790. * @return {!Promise<!Protocol.DOMAgent.SetNodeStackTracesEnabledResponse>} */
  1791. Protocol.DOMAgent.prototype.invoke_setNodeStackTracesEnabled = function(obj) {};
  1792. /**
  1793. * @param {Protocol.DOM.NodeId} nodeId
  1794. * @return {!Promise<?Protocol.Runtime.StackTrace>}
  1795. */
  1796. Protocol.DOMAgent.prototype.getNodeStackTraces = function(nodeId) {};
  1797. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  1798. Protocol.DOMAgent.GetNodeStackTracesRequest;
  1799. /** @typedef {!{creation: Protocol.Runtime.StackTrace}} */
  1800. Protocol.DOMAgent.GetNodeStackTracesResponse;
  1801. /**
  1802. * @param {!Protocol.DOMAgent.GetNodeStackTracesRequest} obj
  1803. * @return {!Promise<!Protocol.DOMAgent.GetNodeStackTracesResponse>} */
  1804. Protocol.DOMAgent.prototype.invoke_getNodeStackTraces = function(obj) {};
  1805. /**
  1806. * @param {Protocol.Runtime.RemoteObjectId} objectId
  1807. * @return {!Promise<?string>}
  1808. */
  1809. Protocol.DOMAgent.prototype.getFileInfo = function(objectId) {};
  1810. /** @typedef {!{objectId: Protocol.Runtime.RemoteObjectId}} */
  1811. Protocol.DOMAgent.GetFileInfoRequest;
  1812. /** @typedef {!{path: string}} */
  1813. Protocol.DOMAgent.GetFileInfoResponse;
  1814. /**
  1815. * @param {!Protocol.DOMAgent.GetFileInfoRequest} obj
  1816. * @return {!Promise<!Protocol.DOMAgent.GetFileInfoResponse>} */
  1817. Protocol.DOMAgent.prototype.invoke_getFileInfo = function(obj) {};
  1818. /**
  1819. * @param {Protocol.DOM.NodeId} nodeId
  1820. * @return {!Promise<undefined>}
  1821. */
  1822. Protocol.DOMAgent.prototype.setInspectedNode = function(nodeId) {};
  1823. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  1824. Protocol.DOMAgent.SetInspectedNodeRequest;
  1825. /** @typedef {Object|undefined} */
  1826. Protocol.DOMAgent.SetInspectedNodeResponse;
  1827. /**
  1828. * @param {!Protocol.DOMAgent.SetInspectedNodeRequest} obj
  1829. * @return {!Promise<!Protocol.DOMAgent.SetInspectedNodeResponse>} */
  1830. Protocol.DOMAgent.prototype.invoke_setInspectedNode = function(obj) {};
  1831. /**
  1832. * @param {Protocol.DOM.NodeId} nodeId
  1833. * @param {string} name
  1834. * @return {!Promise<?Protocol.DOM.NodeId>}
  1835. */
  1836. Protocol.DOMAgent.prototype.setNodeName = function(nodeId, name) {};
  1837. /** @typedef {!{nodeId: Protocol.DOM.NodeId, name: string}} */
  1838. Protocol.DOMAgent.SetNodeNameRequest;
  1839. /** @typedef {!{nodeId: Protocol.DOM.NodeId}} */
  1840. Protocol.DOMAgent.SetNodeNameResponse;
  1841. /**
  1842. * @param {!Protocol.DOMAgent.SetNodeNameRequest} obj
  1843. * @return {!Promise<!Protocol.DOMAgent.SetNodeNameResponse>} */
  1844. Protocol.DOMAgent.prototype.invoke_setNodeName = function(obj) {};
  1845. /**
  1846. * @param {Protocol.DOM.NodeId} nodeId
  1847. * @param {string} value
  1848. * @return {!Promise<undefined>}
  1849. */
  1850. Protocol.DOMAgent.prototype.setNodeValue = function(nodeId, value) {};
  1851. /** @typedef {!{nodeId: Protocol.DOM.NodeId, value: string}} */
  1852. Protocol.DOMAgent.SetNodeValueRequest;
  1853. /** @typedef {Object|undefined} */
  1854. Protocol.DOMAgent.SetNodeValueResponse;
  1855. /**
  1856. * @param {!Protocol.DOMAgent.SetNodeValueRequest} obj
  1857. * @return {!Promise<!Protocol.DOMAgent.SetNodeValueResponse>} */
  1858. Protocol.DOMAgent.prototype.invoke_setNodeValue = function(obj) {};
  1859. /**
  1860. * @param {Protocol.DOM.NodeId} nodeId
  1861. * @param {string} outerHTML
  1862. * @return {!Promise<undefined>}
  1863. */
  1864. Protocol.DOMAgent.prototype.setOuterHTML = function(nodeId, outerHTML) {};
  1865. /** @typedef {!{outerHTML: string, nodeId: Protocol.DOM.NodeId}} */
  1866. Protocol.DOMAgent.SetOuterHTMLRequest;
  1867. /** @typedef {Object|undefined} */
  1868. Protocol.DOMAgent.SetOuterHTMLResponse;
  1869. /**
  1870. * @param {!Protocol.DOMAgent.SetOuterHTMLRequest} obj
  1871. * @return {!Promise<!Protocol.DOMAgent.SetOuterHTMLResponse>} */
  1872. Protocol.DOMAgent.prototype.invoke_setOuterHTML = function(obj) {};
  1873. /**
  1874. * @return {!Promise<undefined>}
  1875. */
  1876. Protocol.DOMAgent.prototype.undo = function() {};
  1877. /** @typedef {Object|undefined} */
  1878. Protocol.DOMAgent.UndoRequest;
  1879. /** @typedef {Object|undefined} */
  1880. Protocol.DOMAgent.UndoResponse;
  1881. /**
  1882. * @param {!Protocol.DOMAgent.UndoRequest} obj
  1883. * @return {!Promise<!Protocol.DOMAgent.UndoResponse>} */
  1884. Protocol.DOMAgent.prototype.invoke_undo = function(obj) {};
  1885. /**
  1886. * @param {Protocol.Page.FrameId} frameId
  1887. * @return {!Promise<?Protocol.DOM.BackendNodeId>}
  1888. */
  1889. Protocol.DOMAgent.prototype.getFrameOwner = function(frameId) {};
  1890. /** @typedef {!{frameId: Protocol.Page.FrameId}} */
  1891. Protocol.DOMAgent.GetFrameOwnerRequest;
  1892. /** @typedef {!{nodeId: Protocol.DOM.NodeId, backendNodeId: Protocol.DOM.BackendNodeId}} */
  1893. Protocol.DOMAgent.GetFrameOwnerResponse;
  1894. /**
  1895. * @param {!Protocol.DOMAgent.GetFrameOwnerRequest} obj
  1896. * @return {!Promise<!Protocol.DOMAgent.GetFrameOwnerResponse>} */
  1897. Protocol.DOMAgent.prototype.invoke_getFrameOwner = function(obj) {};
  1898. /** @typedef {number} */
  1899. Protocol.DOM.NodeId;
  1900. /** @typedef {number} */
  1901. Protocol.DOM.BackendNodeId;
  1902. /** @typedef {!{nodeType:(number), nodeName:(string), backendNodeId:(Protocol.DOM.BackendNodeId)}} */
  1903. Protocol.DOM.BackendNode;
  1904. /** @enum {string} */
  1905. Protocol.DOM.PseudoType = {
  1906. FirstLine: "first-line",
  1907. FirstLetter: "first-letter",
  1908. Before: "before",
  1909. After: "after",
  1910. Backdrop: "backdrop",
  1911. Selection: "selection",
  1912. FirstLineInherited: "first-line-inherited",
  1913. Scrollbar: "scrollbar",
  1914. ScrollbarThumb: "scrollbar-thumb",
  1915. ScrollbarButton: "scrollbar-button",
  1916. ScrollbarTrack: "scrollbar-track",
  1917. ScrollbarTrackPiece: "scrollbar-track-piece",
  1918. ScrollbarCorner: "scrollbar-corner",
  1919. Resizer: "resizer",
  1920. InputListButton: "input-list-button"
  1921. };
  1922. /** @enum {string} */
  1923. Protocol.DOM.ShadowRootType = {
  1924. UserAgent: "user-agent",
  1925. Open: "open",
  1926. Closed: "closed"
  1927. };
  1928. /** @typedef {!{nodeId:(Protocol.DOM.NodeId), parentId:(Protocol.DOM.NodeId|undefined), backendNodeId:(Protocol.DOM.BackendNodeId), nodeType:(number), nodeName:(string), localName:(string), nodeValue:(string), childNodeCount:(number|undefined), children:(!Array<Protocol.DOM.Node>|undefined), attributes:(!Array<string>|undefined), documentURL:(string|undefined), baseURL:(string|undefined), publicId:(string|undefined), systemId:(string|undefined), internalSubset:(string|undefined), xmlVersion:(string|undefined), name:(string|undefined), value:(string|undefined), pseudoType:(Protocol.DOM.PseudoType|undefined), shadowRootType:(Protocol.DOM.ShadowRootType|undefined), frameId:(Protocol.Page.FrameId|undefined), contentDocument:(Protocol.DOM.Node|undefined), shadowRoots:(!Array<Protocol.DOM.Node>|undefined), templateContent:(Protocol.DOM.Node|undefined), pseudoElements:(!Array<Protocol.DOM.Node>|undefined), importedDocument:(Protocol.DOM.Node|undefined), distributedNodes:(!Array<Protocol.DOM.BackendNode>|undefined), isSVG:(boolean|undefined)}} */
  1929. Protocol.DOM.Node;
  1930. /** @typedef {!{r:(number), g:(number), b:(number), a:(number|undefined)}} */
  1931. Protocol.DOM.RGBA;
  1932. /** @typedef {!Array<!number>} */
  1933. Protocol.DOM.Quad;
  1934. /** @typedef {!{content:(Protocol.DOM.Quad), padding:(Protocol.DOM.Quad), border:(Protocol.DOM.Quad), margin:(Protocol.DOM.Quad), width:(number), height:(number), shapeOutside:(Protocol.DOM.ShapeOutsideInfo|undefined)}} */
  1935. Protocol.DOM.BoxModel;
  1936. /** @typedef {!{bounds:(Protocol.DOM.Quad), shape:(!Array<*>), marginShape:(!Array<*>)}} */
  1937. Protocol.DOM.ShapeOutsideInfo;
  1938. /** @typedef {!{x:(number), y:(number), width:(number), height:(number)}} */
  1939. Protocol.DOM.Rect;
  1940. /** @interface */
  1941. Protocol.DOMDispatcher = function() {};
  1942. /**
  1943. * @param {Protocol.DOM.NodeId} nodeId
  1944. * @param {string} name
  1945. * @param {string} value
  1946. */
  1947. Protocol.DOMDispatcher.prototype.attributeModified = function(nodeId, name, value) {};
  1948. /**
  1949. * @param {Protocol.DOM.NodeId} nodeId
  1950. * @param {string} name
  1951. */
  1952. Protocol.DOMDispatcher.prototype.attributeRemoved = function(nodeId, name) {};
  1953. /**
  1954. * @param {Protocol.DOM.NodeId} nodeId
  1955. * @param {string} characterData
  1956. */
  1957. Protocol.DOMDispatcher.prototype.characterDataModified = function(nodeId, characterData) {};
  1958. /**
  1959. * @param {Protocol.DOM.NodeId} nodeId
  1960. * @param {number} childNodeCount
  1961. */
  1962. Protocol.DOMDispatcher.prototype.childNodeCountUpdated = function(nodeId, childNodeCount) {};
  1963. /**
  1964. * @param {Protocol.DOM.NodeId} parentNodeId
  1965. * @param {Protocol.DOM.NodeId} previousNodeId
  1966. * @param {Protocol.DOM.Node} node
  1967. */
  1968. Protocol.DOMDispatcher.prototype.childNodeInserted = function(parentNodeId, previousNodeId, node) {};
  1969. /**
  1970. * @param {Protocol.DOM.NodeId} parentNodeId
  1971. * @param {Protocol.DOM.NodeId} nodeId
  1972. */
  1973. Protocol.DOMDispatcher.prototype.childNodeRemoved = function(parentNodeId, nodeId) {};
  1974. /**
  1975. * @param {Protocol.DOM.NodeId} insertionPointId
  1976. * @param {!Array<Protocol.DOM.BackendNode>} distributedNodes
  1977. */
  1978. Protocol.DOMDispatcher.prototype.distributedNodesUpdated = function(insertionPointId, distributedNodes) {};
  1979. Protocol.DOMDispatcher.prototype.documentUpdated = function() {};
  1980. /**
  1981. * @param {!Array<Protocol.DOM.NodeId>} nodeIds
  1982. */
  1983. Protocol.DOMDispatcher.prototype.inlineStyleInvalidated = function(nodeIds) {};
  1984. /**
  1985. * @param {Protocol.DOM.NodeId} parentId
  1986. * @param {Protocol.DOM.Node} pseudoElement
  1987. */
  1988. Protocol.DOMDispatcher.prototype.pseudoElementAdded = function(parentId, pseudoElement) {};
  1989. /**
  1990. * @param {Protocol.DOM.NodeId} parentId
  1991. * @param {Protocol.DOM.NodeId} pseudoElementId
  1992. */
  1993. Protocol.DOMDispatcher.prototype.pseudoElementRemoved = function(parentId, pseudoElementId) {};
  1994. /**
  1995. * @param {Protocol.DOM.NodeId} parentId
  1996. * @param {!Array<Protocol.DOM.Node>} nodes
  1997. */
  1998. Protocol.DOMDispatcher.prototype.setChildNodes = function(parentId, nodes) {};
  1999. /**
  2000. * @param {Protocol.DOM.NodeId} hostId
  2001. * @param {Protocol.DOM.NodeId} rootId
  2002. */
  2003. Protocol.DOMDispatcher.prototype.shadowRootPopped = function(hostId, rootId) {};
  2004. /**
  2005. * @param {Protocol.DOM.NodeId} hostId
  2006. * @param {Protocol.DOM.Node} root
  2007. */
  2008. Protocol.DOMDispatcher.prototype.shadowRootPushed = function(hostId, root) {};
  2009. Protocol.DOMDebugger = {};
  2010. /**
  2011. * @constructor
  2012. */
  2013. Protocol.DOMDebuggerAgent = function(){};
  2014. /**
  2015. * @param {Protocol.Runtime.RemoteObjectId} objectId
  2016. * @param {number=} opt_depth
  2017. * @param {boolean=} opt_pierce
  2018. * @return {!Promise<?Array<Protocol.DOMDebugger.EventListener>>}
  2019. */
  2020. Protocol.DOMDebuggerAgent.prototype.getEventListeners = function(objectId, opt_depth, opt_pierce) {};
  2021. /** @typedef {!{depth: (number|undefined), pierce: (boolean|undefined), objectId: Protocol.Runtime.RemoteObjectId}} */
  2022. Protocol.DOMDebuggerAgent.GetEventListenersRequest;
  2023. /** @typedef {!{listeners: !Array<Protocol.DOMDebugger.EventListener>}} */
  2024. Protocol.DOMDebuggerAgent.GetEventListenersResponse;
  2025. /**
  2026. * @param {!Protocol.DOMDebuggerAgent.GetEventListenersRequest} obj
  2027. * @return {!Promise<!Protocol.DOMDebuggerAgent.GetEventListenersResponse>} */
  2028. Protocol.DOMDebuggerAgent.prototype.invoke_getEventListeners = function(obj) {};
  2029. /**
  2030. * @param {Protocol.DOM.NodeId} nodeId
  2031. * @param {Protocol.DOMDebugger.DOMBreakpointType} type
  2032. * @return {!Promise<undefined>}
  2033. */
  2034. Protocol.DOMDebuggerAgent.prototype.removeDOMBreakpoint = function(nodeId, type) {};
  2035. /** @typedef {!{type: Protocol.DOMDebugger.DOMBreakpointType, nodeId: Protocol.DOM.NodeId}} */
  2036. Protocol.DOMDebuggerAgent.RemoveDOMBreakpointRequest;
  2037. /** @typedef {Object|undefined} */
  2038. Protocol.DOMDebuggerAgent.RemoveDOMBreakpointResponse;
  2039. /**
  2040. * @param {!Protocol.DOMDebuggerAgent.RemoveDOMBreakpointRequest} obj
  2041. * @return {!Promise<!Protocol.DOMDebuggerAgent.RemoveDOMBreakpointResponse>} */
  2042. Protocol.DOMDebuggerAgent.prototype.invoke_removeDOMBreakpoint = function(obj) {};
  2043. /**
  2044. * @param {string} eventName
  2045. * @param {string=} opt_targetName
  2046. * @return {!Promise<undefined>}
  2047. */
  2048. Protocol.DOMDebuggerAgent.prototype.removeEventListenerBreakpoint = function(eventName, opt_targetName) {};
  2049. /** @typedef {!{eventName: string, targetName: (string|undefined)}} */
  2050. Protocol.DOMDebuggerAgent.RemoveEventListenerBreakpointRequest;
  2051. /** @typedef {Object|undefined} */
  2052. Protocol.DOMDebuggerAgent.RemoveEventListenerBreakpointResponse;
  2053. /**
  2054. * @param {!Protocol.DOMDebuggerAgent.RemoveEventListenerBreakpointRequest} obj
  2055. * @return {!Promise<!Protocol.DOMDebuggerAgent.RemoveEventListenerBreakpointResponse>} */
  2056. Protocol.DOMDebuggerAgent.prototype.invoke_removeEventListenerBreakpoint = function(obj) {};
  2057. /**
  2058. * @param {string} eventName
  2059. * @return {!Promise<undefined>}
  2060. */
  2061. Protocol.DOMDebuggerAgent.prototype.removeInstrumentationBreakpoint = function(eventName) {};
  2062. /** @typedef {!{eventName: string}} */
  2063. Protocol.DOMDebuggerAgent.RemoveInstrumentationBreakpointRequest;
  2064. /** @typedef {Object|undefined} */
  2065. Protocol.DOMDebuggerAgent.RemoveInstrumentationBreakpointResponse;
  2066. /**
  2067. * @param {!Protocol.DOMDebuggerAgent.RemoveInstrumentationBreakpointRequest} obj
  2068. * @return {!Promise<!Protocol.DOMDebuggerAgent.RemoveInstrumentationBreakpointResponse>} */
  2069. Protocol.DOMDebuggerAgent.prototype.invoke_removeInstrumentationBreakpoint = function(obj) {};
  2070. /**
  2071. * @param {string} url
  2072. * @return {!Promise<undefined>}
  2073. */
  2074. Protocol.DOMDebuggerAgent.prototype.removeXHRBreakpoint = function(url) {};
  2075. /** @typedef {!{url: string}} */
  2076. Protocol.DOMDebuggerAgent.RemoveXHRBreakpointRequest;
  2077. /** @typedef {Object|undefined} */
  2078. Protocol.DOMDebuggerAgent.RemoveXHRBreakpointResponse;
  2079. /**
  2080. * @param {!Protocol.DOMDebuggerAgent.RemoveXHRBreakpointRequest} obj
  2081. * @return {!Promise<!Protocol.DOMDebuggerAgent.RemoveXHRBreakpointResponse>} */
  2082. Protocol.DOMDebuggerAgent.prototype.invoke_removeXHRBreakpoint = function(obj) {};
  2083. /**
  2084. * @param {Protocol.DOM.NodeId} nodeId
  2085. * @param {Protocol.DOMDebugger.DOMBreakpointType} type
  2086. * @return {!Promise<undefined>}
  2087. */
  2088. Protocol.DOMDebuggerAgent.prototype.setDOMBreakpoint = function(nodeId, type) {};
  2089. /** @typedef {!{type: Protocol.DOMDebugger.DOMBreakpointType, nodeId: Protocol.DOM.NodeId}} */
  2090. Protocol.DOMDebuggerAgent.SetDOMBreakpointRequest;
  2091. /** @typedef {Object|undefined} */
  2092. Protocol.DOMDebuggerAgent.SetDOMBreakpointResponse;
  2093. /**
  2094. * @param {!Protocol.DOMDebuggerAgent.SetDOMBreakpointRequest} obj
  2095. * @return {!Promise<!Protocol.DOMDebuggerAgent.SetDOMBreakpointResponse>} */
  2096. Protocol.DOMDebuggerAgent.prototype.invoke_setDOMBreakpoint = function(obj) {};
  2097. /**
  2098. * @param {string} eventName
  2099. * @param {string=} opt_targetName
  2100. * @return {!Promise<undefined>}
  2101. */
  2102. Protocol.DOMDebuggerAgent.prototype.setEventListenerBreakpoint = function(eventName, opt_targetName) {};
  2103. /** @typedef {!{eventName: string, targetName: (string|undefined)}} */
  2104. Protocol.DOMDebuggerAgent.SetEventListenerBreakpointRequest;
  2105. /** @typedef {Object|undefined} */
  2106. Protocol.DOMDebuggerAgent.SetEventListenerBreakpointResponse;
  2107. /**
  2108. * @param {!Protocol.DOMDebuggerAgent.SetEventListenerBreakpointRequest} obj
  2109. * @return {!Promise<!Protocol.DOMDebuggerAgent.SetEventListenerBreakpointResponse>} */
  2110. Protocol.DOMDebuggerAgent.prototype.invoke_setEventListenerBreakpoint = function(obj) {};
  2111. /**
  2112. * @param {string} eventName
  2113. * @return {!Promise<undefined>}
  2114. */
  2115. Protocol.DOMDebuggerAgent.prototype.setInstrumentationBreakpoint = function(eventName) {};
  2116. /** @typedef {!{eventName: string}} */
  2117. Protocol.DOMDebuggerAgent.SetInstrumentationBreakpointRequest;
  2118. /** @typedef {Object|undefined} */
  2119. Protocol.DOMDebuggerAgent.SetInstrumentationBreakpointResponse;
  2120. /**
  2121. * @param {!Protocol.DOMDebuggerAgent.SetInstrumentationBreakpointRequest} obj
  2122. * @return {!Promise<!Protocol.DOMDebuggerAgent.SetInstrumentationBreakpointResponse>} */
  2123. Protocol.DOMDebuggerAgent.prototype.invoke_setInstrumentationBreakpoint = function(obj) {};
  2124. /**
  2125. * @param {string} url
  2126. * @return {!Promise<undefined>}
  2127. */
  2128. Protocol.DOMDebuggerAgent.prototype.setXHRBreakpoint = function(url) {};
  2129. /** @typedef {!{url: string}} */
  2130. Protocol.DOMDebuggerAgent.SetXHRBreakpointRequest;
  2131. /** @typedef {Object|undefined} */
  2132. Protocol.DOMDebuggerAgent.SetXHRBreakpointResponse;
  2133. /**
  2134. * @param {!Protocol.DOMDebuggerAgent.SetXHRBreakpointRequest} obj
  2135. * @return {!Promise<!Protocol.DOMDebuggerAgent.SetXHRBreakpointResponse>} */
  2136. Protocol.DOMDebuggerAgent.prototype.invoke_setXHRBreakpoint = function(obj) {};
  2137. /** @enum {string} */
  2138. Protocol.DOMDebugger.DOMBreakpointType = {
  2139. SubtreeModified: "subtree-modified",
  2140. AttributeModified: "attribute-modified",
  2141. NodeRemoved: "node-removed"
  2142. };
  2143. /** @typedef {!{type:(string), useCapture:(boolean), passive:(boolean), once:(boolean), scriptId:(Protocol.Runtime.ScriptId), lineNumber:(number), columnNumber:(number), handler:(Protocol.Runtime.RemoteObject|undefined), originalHandler:(Protocol.Runtime.RemoteObject|undefined), backendNodeId:(Protocol.DOM.BackendNodeId|undefined)}} */
  2144. Protocol.DOMDebugger.EventListener;
  2145. /** @interface */
  2146. Protocol.DOMDebuggerDispatcher = function() {};
  2147. Protocol.DOMSnapshot = {};
  2148. /**
  2149. * @constructor
  2150. */
  2151. Protocol.DOMSnapshotAgent = function(){};
  2152. /**
  2153. * @return {!Promise<undefined>}
  2154. */
  2155. Protocol.DOMSnapshotAgent.prototype.disable = function() {};
  2156. /** @typedef {Object|undefined} */
  2157. Protocol.DOMSnapshotAgent.DisableRequest;
  2158. /** @typedef {Object|undefined} */
  2159. Protocol.DOMSnapshotAgent.DisableResponse;
  2160. /**
  2161. * @param {!Protocol.DOMSnapshotAgent.DisableRequest} obj
  2162. * @return {!Promise<!Protocol.DOMSnapshotAgent.DisableResponse>} */
  2163. Protocol.DOMSnapshotAgent.prototype.invoke_disable = function(obj) {};
  2164. /**
  2165. * @return {!Promise<undefined>}
  2166. */
  2167. Protocol.DOMSnapshotAgent.prototype.enable = function() {};
  2168. /** @typedef {Object|undefined} */
  2169. Protocol.DOMSnapshotAgent.EnableRequest;
  2170. /** @typedef {Object|undefined} */
  2171. Protocol.DOMSnapshotAgent.EnableResponse;
  2172. /**
  2173. * @param {!Protocol.DOMSnapshotAgent.EnableRequest} obj
  2174. * @return {!Promise<!Protocol.DOMSnapshotAgent.EnableResponse>} */
  2175. Protocol.DOMSnapshotAgent.prototype.invoke_enable = function(obj) {};
  2176. /**
  2177. * @param {!Array<string>} computedStyleWhitelist
  2178. * @param {boolean=} opt_includeEventListeners
  2179. * @param {boolean=} opt_includePaintOrder
  2180. * @param {boolean=} opt_includeUserAgentShadowTree
  2181. * @return {!Promise<?Array<Protocol.DOMSnapshot.DOMNode>>}
  2182. */
  2183. Protocol.DOMSnapshotAgent.prototype.getSnapshot = function(computedStyleWhitelist, opt_includeEventListeners, opt_includePaintOrder, opt_includeUserAgentShadowTree) {};
  2184. /** @typedef {!{includePaintOrder: (boolean|undefined), includeEventListeners: (boolean|undefined), computedStyleWhitelist: !Array<string>, includeUserAgentShadowTree: (boolean|undefined)}} */
  2185. Protocol.DOMSnapshotAgent.GetSnapshotRequest;
  2186. /** @typedef {!{layoutTreeNodes: !Array<Protocol.DOMSnapshot.LayoutTreeNode>, domNodes: !Array<Protocol.DOMSnapshot.DOMNode>, computedStyles: !Array<Protocol.DOMSnapshot.ComputedStyle>}} */
  2187. Protocol.DOMSnapshotAgent.GetSnapshotResponse;
  2188. /**
  2189. * @param {!Protocol.DOMSnapshotAgent.GetSnapshotRequest} obj
  2190. * @return {!Promise<!Protocol.DOMSnapshotAgent.GetSnapshotResponse>} */
  2191. Protocol.DOMSnapshotAgent.prototype.invoke_getSnapshot = function(obj) {};
  2192. /**
  2193. * @param {!Array<string>} computedStyles
  2194. * @param {boolean=} opt_includePaintOrder
  2195. * @param {boolean=} opt_includeDOMRects
  2196. * @return {!Promise<?Array<Protocol.DOMSnapshot.DocumentSnapshot>>}
  2197. */
  2198. Protocol.DOMSnapshotAgent.prototype.captureSnapshot = function(computedStyles, opt_includePaintOrder, opt_includeDOMRects) {};
  2199. /** @typedef {!{includePaintOrder: (boolean|undefined), includeDOMRects: (boolean|undefined), computedStyles: !Array<string>}} */
  2200. Protocol.DOMSnapshotAgent.CaptureSnapshotRequest;
  2201. /** @typedef {!{documents: !Array<Protocol.DOMSnapshot.DocumentSnapshot>, strings: !Array<string>}} */
  2202. Protocol.DOMSnapshotAgent.CaptureSnapshotResponse;
  2203. /**
  2204. * @param {!Protocol.DOMSnapshotAgent.CaptureSnapshotRequest} obj
  2205. * @return {!Promise<!Protocol.DOMSnapshotAgent.CaptureSnapshotResponse>} */
  2206. Protocol.DOMSnapshotAgent.prototype.invoke_captureSnapshot = function(obj) {};
  2207. /** @typedef {!{nodeType:(number), nodeName:(string), nodeValue:(string), textValue:(string|undefined), inputValue:(string|undefined), inputChecked:(boolean|undefined), optionSelected:(boolean|undefined), backendNodeId:(Protocol.DOM.BackendNodeId), childNodeIndexes:(!Array<number>|undefined), attributes:(!Array<Protocol.DOMSnapshot.NameValue>|undefined), pseudoElementIndexes:(!Array<number>|undefined), layoutNodeIndex:(number|undefined), documentURL:(string|undefined), baseURL:(string|undefined), contentLanguage:(string|undefined), documentEncoding:(string|undefined), publicId:(string|undefined), systemId:(string|undefined), frameId:(Protocol.Page.FrameId|undefined), contentDocumentIndex:(number|undefined), pseudoType:(Protocol.DOM.PseudoType|undefined), shadowRootType:(Protocol.DOM.ShadowRootType|undefined), isClickable:(boolean|undefined), eventListeners:(!Array<Protocol.DOMDebugger.EventListener>|undefined), currentSourceURL:(string|undefined), originURL:(string|undefined), scrollOffsetX:(number|undefined), scrollOffsetY:(number|undefined)}} */
  2208. Protocol.DOMSnapshot.DOMNode;
  2209. /** @typedef {!{boundingBox:(Protocol.DOM.Rect), startCharacterIndex:(number), numCharacters:(number)}} */
  2210. Protocol.DOMSnapshot.InlineTextBox;
  2211. /** @typedef {!{domNodeIndex:(number), boundingBox:(Protocol.DOM.Rect), layoutText:(string|undefined), inlineTextNodes:(!Array<Protocol.DOMSnapshot.InlineTextBox>|undefined), styleIndex:(number|undefined), paintOrder:(number|undefined), isStackingContext:(boolean|undefined)}} */
  2212. Protocol.DOMSnapshot.LayoutTreeNode;
  2213. /** @typedef {!{properties:(!Array<Protocol.DOMSnapshot.NameValue>)}} */
  2214. Protocol.DOMSnapshot.ComputedStyle;
  2215. /** @typedef {!{name:(string), value:(string)}} */
  2216. Protocol.DOMSnapshot.NameValue;
  2217. /** @typedef {number} */
  2218. Protocol.DOMSnapshot.StringIndex;
  2219. /** @typedef {!Array<!Protocol.DOMSnapshot.StringIndex>} */
  2220. Protocol.DOMSnapshot.ArrayOfStrings;
  2221. /** @typedef {!{index:(!Array<number>), value:(!Array<Protocol.DOMSnapshot.StringIndex>)}} */
  2222. Protocol.DOMSnapshot.RareStringData;
  2223. /** @typedef {!{index:(!Array<number>)}} */
  2224. Protocol.DOMSnapshot.RareBooleanData;
  2225. /** @typedef {!{index:(!Array<number>), value:(!Array<number>)}} */
  2226. Protocol.DOMSnapshot.RareIntegerData;
  2227. /** @typedef {!Array<!number>} */
  2228. Protocol.DOMSnapshot.Rectangle;
  2229. /** @typedef {!{documentURL:(Protocol.DOMSnapshot.StringIndex), title:(Protocol.DOMSnapshot.StringIndex), baseURL:(Protocol.DOMSnapshot.StringIndex), contentLanguage:(Protocol.DOMSnapshot.StringIndex), encodingName:(Protocol.DOMSnapshot.StringIndex), publicId:(Protocol.DOMSnapshot.StringIndex), systemId:(Protocol.DOMSnapshot.StringIndex), frameId:(Protocol.DOMSnapshot.StringIndex), nodes:(Protocol.DOMSnapshot.NodeTreeSnapshot), layout:(Protocol.DOMSnapshot.LayoutTreeSnapshot), textBoxes:(Protocol.DOMSnapshot.TextBoxSnapshot), scrollOffsetX:(number|undefined), scrollOffsetY:(number|undefined), contentWidth:(number|undefined), contentHeight:(number|undefined)}} */
  2230. Protocol.DOMSnapshot.DocumentSnapshot;
  2231. /** @typedef {!{parentIndex:(!Array<number>|undefined), nodeType:(!Array<number>|undefined), nodeName:(!Array<Protocol.DOMSnapshot.StringIndex>|undefined), nodeValue:(!Array<Protocol.DOMSnapshot.StringIndex>|undefined), backendNodeId:(!Array<Protocol.DOM.BackendNodeId>|undefined), attributes:(!Array<Protocol.DOMSnapshot.ArrayOfStrings>|undefined), textValue:(Protocol.DOMSnapshot.RareStringData|undefined), inputValue:(Protocol.DOMSnapshot.RareStringData|undefined), inputChecked:(Protocol.DOMSnapshot.RareBooleanData|undefined), optionSelected:(Protocol.DOMSnapshot.RareBooleanData|undefined), contentDocumentIndex:(Protocol.DOMSnapshot.RareIntegerData|undefined), pseudoType:(Protocol.DOMSnapshot.RareStringData|undefined), isClickable:(Protocol.DOMSnapshot.RareBooleanData|undefined), currentSourceURL:(Protocol.DOMSnapshot.RareStringData|undefined), originURL:(Protocol.DOMSnapshot.RareStringData|undefined)}} */
  2232. Protocol.DOMSnapshot.NodeTreeSnapshot;
  2233. /** @typedef {!{nodeIndex:(!Array<number>), styles:(!Array<Protocol.DOMSnapshot.ArrayOfStrings>), bounds:(!Array<Protocol.DOMSnapshot.Rectangle>), text:(!Array<Protocol.DOMSnapshot.StringIndex>), stackingContexts:(Protocol.DOMSnapshot.RareBooleanData), paintOrders:(!Array<number>|undefined), offsetRects:(!Array<Protocol.DOMSnapshot.Rectangle>|undefined), scrollRects:(!Array<Protocol.DOMSnapshot.Rectangle>|undefined), clientRects:(!Array<Protocol.DOMSnapshot.Rectangle>|undefined)}} */
  2234. Protocol.DOMSnapshot.LayoutTreeSnapshot;
  2235. /** @typedef {!{layoutIndex:(!Array<number>), bounds:(!Array<Protocol.DOMSnapshot.Rectangle>), start:(!Array<number>), length:(!Array<number>)}} */
  2236. Protocol.DOMSnapshot.TextBoxSnapshot;
  2237. /** @interface */
  2238. Protocol.DOMSnapshotDispatcher = function() {};
  2239. Protocol.DOMStorage = {};
  2240. /**
  2241. * @constructor
  2242. */
  2243. Protocol.DOMStorageAgent = function(){};
  2244. /**
  2245. * @param {Protocol.DOMStorage.StorageId} storageId
  2246. * @return {!Promise<undefined>}
  2247. */
  2248. Protocol.DOMStorageAgent.prototype.clear = function(storageId) {};
  2249. /** @typedef {!{storageId: Protocol.DOMStorage.StorageId}} */
  2250. Protocol.DOMStorageAgent.ClearRequest;
  2251. /** @typedef {Object|undefined} */
  2252. Protocol.DOMStorageAgent.ClearResponse;
  2253. /**
  2254. * @param {!Protocol.DOMStorageAgent.ClearRequest} obj
  2255. * @return {!Promise<!Protocol.DOMStorageAgent.ClearResponse>} */
  2256. Protocol.DOMStorageAgent.prototype.invoke_clear = function(obj) {};
  2257. /**
  2258. * @return {!Promise<undefined>}
  2259. */
  2260. Protocol.DOMStorageAgent.prototype.disable = function() {};
  2261. /** @typedef {Object|undefined} */
  2262. Protocol.DOMStorageAgent.DisableRequest;
  2263. /** @typedef {Object|undefined} */
  2264. Protocol.DOMStorageAgent.DisableResponse;
  2265. /**
  2266. * @param {!Protocol.DOMStorageAgent.DisableRequest} obj
  2267. * @return {!Promise<!Protocol.DOMStorageAgent.DisableResponse>} */
  2268. Protocol.DOMStorageAgent.prototype.invoke_disable = function(obj) {};
  2269. /**
  2270. * @return {!Promise<undefined>}
  2271. */
  2272. Protocol.DOMStorageAgent.prototype.enable = function() {};
  2273. /** @typedef {Object|undefined} */
  2274. Protocol.DOMStorageAgent.EnableRequest;
  2275. /** @typedef {Object|undefined} */
  2276. Protocol.DOMStorageAgent.EnableResponse;
  2277. /**
  2278. * @param {!Protocol.DOMStorageAgent.EnableRequest} obj
  2279. * @return {!Promise<!Protocol.DOMStorageAgent.EnableResponse>} */
  2280. Protocol.DOMStorageAgent.prototype.invoke_enable = function(obj) {};
  2281. /**
  2282. * @param {Protocol.DOMStorage.StorageId} storageId
  2283. * @return {!Promise<?Array<Protocol.DOMStorage.Item>>}
  2284. */
  2285. Protocol.DOMStorageAgent.prototype.getDOMStorageItems = function(storageId) {};
  2286. /** @typedef {!{storageId: Protocol.DOMStorage.StorageId}} */
  2287. Protocol.DOMStorageAgent.GetDOMStorageItemsRequest;
  2288. /** @typedef {!{entries: !Array<Protocol.DOMStorage.Item>}} */
  2289. Protocol.DOMStorageAgent.GetDOMStorageItemsResponse;
  2290. /**
  2291. * @param {!Protocol.DOMStorageAgent.GetDOMStorageItemsRequest} obj
  2292. * @return {!Promise<!Protocol.DOMStorageAgent.GetDOMStorageItemsResponse>} */
  2293. Protocol.DOMStorageAgent.prototype.invoke_getDOMStorageItems = function(obj) {};
  2294. /**
  2295. * @param {Protocol.DOMStorage.StorageId} storageId
  2296. * @param {string} key
  2297. * @return {!Promise<undefined>}
  2298. */
  2299. Protocol.DOMStorageAgent.prototype.removeDOMStorageItem = function(storageId, key) {};
  2300. /** @typedef {!{storageId: Protocol.DOMStorage.StorageId, key: string}} */
  2301. Protocol.DOMStorageAgent.RemoveDOMStorageItemRequest;
  2302. /** @typedef {Object|undefined} */
  2303. Protocol.DOMStorageAgent.RemoveDOMStorageItemResponse;
  2304. /**
  2305. * @param {!Protocol.DOMStorageAgent.RemoveDOMStorageItemRequest} obj
  2306. * @return {!Promise<!Protocol.DOMStorageAgent.RemoveDOMStorageItemResponse>} */
  2307. Protocol.DOMStorageAgent.prototype.invoke_removeDOMStorageItem = function(obj) {};
  2308. /**
  2309. * @param {Protocol.DOMStorage.StorageId} storageId
  2310. * @param {string} key
  2311. * @param {string} value
  2312. * @return {!Promise<undefined>}
  2313. */
  2314. Protocol.DOMStorageAgent.prototype.setDOMStorageItem = function(storageId, key, value) {};
  2315. /** @typedef {!{value: string, storageId: Protocol.DOMStorage.StorageId, key: string}} */
  2316. Protocol.DOMStorageAgent.SetDOMStorageItemRequest;
  2317. /** @typedef {Object|undefined} */
  2318. Protocol.DOMStorageAgent.SetDOMStorageItemResponse;
  2319. /**
  2320. * @param {!Protocol.DOMStorageAgent.SetDOMStorageItemRequest} obj
  2321. * @return {!Promise<!Protocol.DOMStorageAgent.SetDOMStorageItemResponse>} */
  2322. Protocol.DOMStorageAgent.prototype.invoke_setDOMStorageItem = function(obj) {};
  2323. /** @typedef {!{securityOrigin:(string), isLocalStorage:(boolean)}} */
  2324. Protocol.DOMStorage.StorageId;
  2325. /** @typedef {!Array<!string>} */
  2326. Protocol.DOMStorage.Item;
  2327. /** @interface */
  2328. Protocol.DOMStorageDispatcher = function() {};
  2329. /**
  2330. * @param {Protocol.DOMStorage.StorageId} storageId
  2331. * @param {string} key
  2332. * @param {string} newValue
  2333. */
  2334. Protocol.DOMStorageDispatcher.prototype.domStorageItemAdded = function(storageId, key, newValue) {};
  2335. /**
  2336. * @param {Protocol.DOMStorage.StorageId} storageId
  2337. * @param {string} key
  2338. */
  2339. Protocol.DOMStorageDispatcher.prototype.domStorageItemRemoved = function(storageId, key) {};
  2340. /**
  2341. * @param {Protocol.DOMStorage.StorageId} storageId
  2342. * @param {string} key
  2343. * @param {string} oldValue
  2344. * @param {string} newValue
  2345. */
  2346. Protocol.DOMStorageDispatcher.prototype.domStorageItemUpdated = function(storageId, key, oldValue, newValue) {};
  2347. /**
  2348. * @param {Protocol.DOMStorage.StorageId} storageId
  2349. */
  2350. Protocol.DOMStorageDispatcher.prototype.domStorageItemsCleared = function(storageId) {};
  2351. Protocol.Database = {};
  2352. /**
  2353. * @constructor
  2354. */
  2355. Protocol.DatabaseAgent = function(){};
  2356. /**
  2357. * @return {!Promise<undefined>}
  2358. */
  2359. Protocol.DatabaseAgent.prototype.disable = function() {};
  2360. /** @typedef {Object|undefined} */
  2361. Protocol.DatabaseAgent.DisableRequest;
  2362. /** @typedef {Object|undefined} */
  2363. Protocol.DatabaseAgent.DisableResponse;
  2364. /**
  2365. * @param {!Protocol.DatabaseAgent.DisableRequest} obj
  2366. * @return {!Promise<!Protocol.DatabaseAgent.DisableResponse>} */
  2367. Protocol.DatabaseAgent.prototype.invoke_disable = function(obj) {};
  2368. /**
  2369. * @return {!Promise<undefined>}
  2370. */
  2371. Protocol.DatabaseAgent.prototype.enable = function() {};
  2372. /** @typedef {Object|undefined} */
  2373. Protocol.DatabaseAgent.EnableRequest;
  2374. /** @typedef {Object|undefined} */
  2375. Protocol.DatabaseAgent.EnableResponse;
  2376. /**
  2377. * @param {!Protocol.DatabaseAgent.EnableRequest} obj
  2378. * @return {!Promise<!Protocol.DatabaseAgent.EnableResponse>} */
  2379. Protocol.DatabaseAgent.prototype.invoke_enable = function(obj) {};
  2380. /**
  2381. * @param {Protocol.Database.DatabaseId} databaseId
  2382. * @param {string} query
  2383. * @return {!Promise<?Array<string>>}
  2384. */
  2385. Protocol.DatabaseAgent.prototype.executeSQL = function(databaseId, query) {};
  2386. /** @typedef {!{query: string, databaseId: Protocol.Database.DatabaseId}} */
  2387. Protocol.DatabaseAgent.ExecuteSQLRequest;
  2388. /** @typedef {!{columnNames: !Array<string>, values: !Array<*>, sqlError: Protocol.Database.Error}} */
  2389. Protocol.DatabaseAgent.ExecuteSQLResponse;
  2390. /**
  2391. * @param {!Protocol.DatabaseAgent.ExecuteSQLRequest} obj
  2392. * @return {!Promise<!Protocol.DatabaseAgent.ExecuteSQLResponse>} */
  2393. Protocol.DatabaseAgent.prototype.invoke_executeSQL = function(obj) {};
  2394. /**
  2395. * @param {Protocol.Database.DatabaseId} databaseId
  2396. * @return {!Promise<?Array<string>>}
  2397. */
  2398. Protocol.DatabaseAgent.prototype.getDatabaseTableNames = function(databaseId) {};
  2399. /** @typedef {!{databaseId: Protocol.Database.DatabaseId}} */
  2400. Protocol.DatabaseAgent.GetDatabaseTableNamesRequest;
  2401. /** @typedef {!{tableNames: !Array<string>}} */
  2402. Protocol.DatabaseAgent.GetDatabaseTableNamesResponse;
  2403. /**
  2404. * @param {!Protocol.DatabaseAgent.GetDatabaseTableNamesRequest} obj
  2405. * @return {!Promise<!Protocol.DatabaseAgent.GetDatabaseTableNamesResponse>} */
  2406. Protocol.DatabaseAgent.prototype.invoke_getDatabaseTableNames = function(obj) {};
  2407. /** @typedef {string} */
  2408. Protocol.Database.DatabaseId;
  2409. /** @typedef {!{id:(Protocol.Database.DatabaseId), domain:(string), name:(string), version:(string)}} */
  2410. Protocol.Database.Database;
  2411. /** @typedef {!{message:(string), code:(number)}} */
  2412. Protocol.Database.Error;
  2413. /** @interface */
  2414. Protocol.DatabaseDispatcher = function() {};
  2415. /**
  2416. * @param {Protocol.Database.Database} database
  2417. */
  2418. Protocol.DatabaseDispatcher.prototype.addDatabase = function(database) {};
  2419. Protocol.DeviceOrientation = {};
  2420. /**
  2421. * @constructor
  2422. */
  2423. Protocol.DeviceOrientationAgent = function(){};
  2424. /**
  2425. * @return {!Promise<undefined>}
  2426. */
  2427. Protocol.DeviceOrientationAgent.prototype.clearDeviceOrientationOverride = function() {};
  2428. /** @typedef {Object|undefined} */
  2429. Protocol.DeviceOrientationAgent.ClearDeviceOrientationOverrideRequest;
  2430. /** @typedef {Object|undefined} */
  2431. Protocol.DeviceOrientationAgent.ClearDeviceOrientationOverrideResponse;
  2432. /**
  2433. * @param {!Protocol.DeviceOrientationAgent.ClearDeviceOrientationOverrideRequest} obj
  2434. * @return {!Promise<!Protocol.DeviceOrientationAgent.ClearDeviceOrientationOverrideResponse>} */
  2435. Protocol.DeviceOrientationAgent.prototype.invoke_clearDeviceOrientationOverride = function(obj) {};
  2436. /**
  2437. * @param {number} alpha
  2438. * @param {number} beta
  2439. * @param {number} gamma
  2440. * @return {!Promise<undefined>}
  2441. */
  2442. Protocol.DeviceOrientationAgent.prototype.setDeviceOrientationOverride = function(alpha, beta, gamma) {};
  2443. /** @typedef {!{alpha: number, beta: number, gamma: number}} */
  2444. Protocol.DeviceOrientationAgent.SetDeviceOrientationOverrideRequest;
  2445. /** @typedef {Object|undefined} */
  2446. Protocol.DeviceOrientationAgent.SetDeviceOrientationOverrideResponse;
  2447. /**
  2448. * @param {!Protocol.DeviceOrientationAgent.SetDeviceOrientationOverrideRequest} obj
  2449. * @return {!Promise<!Protocol.DeviceOrientationAgent.SetDeviceOrientationOverrideResponse>} */
  2450. Protocol.DeviceOrientationAgent.prototype.invoke_setDeviceOrientationOverride = function(obj) {};
  2451. /** @interface */
  2452. Protocol.DeviceOrientationDispatcher = function() {};
  2453. Protocol.Emulation = {};
  2454. /**
  2455. * @constructor
  2456. */
  2457. Protocol.EmulationAgent = function(){};
  2458. /**
  2459. * @return {!Promise<?boolean>}
  2460. */
  2461. Protocol.EmulationAgent.prototype.canEmulate = function() {};
  2462. /** @typedef {Object|undefined} */
  2463. Protocol.EmulationAgent.CanEmulateRequest;
  2464. /** @typedef {!{result: boolean}} */
  2465. Protocol.EmulationAgent.CanEmulateResponse;
  2466. /**
  2467. * @param {!Protocol.EmulationAgent.CanEmulateRequest} obj
  2468. * @return {!Promise<!Protocol.EmulationAgent.CanEmulateResponse>} */
  2469. Protocol.EmulationAgent.prototype.invoke_canEmulate = function(obj) {};
  2470. /**
  2471. * @return {!Promise<undefined>}
  2472. */
  2473. Protocol.EmulationAgent.prototype.clearDeviceMetricsOverride = function() {};
  2474. /** @typedef {Object|undefined} */
  2475. Protocol.EmulationAgent.ClearDeviceMetricsOverrideRequest;
  2476. /** @typedef {Object|undefined} */
  2477. Protocol.EmulationAgent.ClearDeviceMetricsOverrideResponse;
  2478. /**
  2479. * @param {!Protocol.EmulationAgent.ClearDeviceMetricsOverrideRequest} obj
  2480. * @return {!Promise<!Protocol.EmulationAgent.ClearDeviceMetricsOverrideResponse>} */
  2481. Protocol.EmulationAgent.prototype.invoke_clearDeviceMetricsOverride = function(obj) {};
  2482. /**
  2483. * @return {!Promise<undefined>}
  2484. */
  2485. Protocol.EmulationAgent.prototype.clearGeolocationOverride = function() {};
  2486. /** @typedef {Object|undefined} */
  2487. Protocol.EmulationAgent.ClearGeolocationOverrideRequest;
  2488. /** @typedef {Object|undefined} */
  2489. Protocol.EmulationAgent.ClearGeolocationOverrideResponse;
  2490. /**
  2491. * @param {!Protocol.EmulationAgent.ClearGeolocationOverrideRequest} obj
  2492. * @return {!Promise<!Protocol.EmulationAgent.ClearGeolocationOverrideResponse>} */
  2493. Protocol.EmulationAgent.prototype.invoke_clearGeolocationOverride = function(obj) {};
  2494. /**
  2495. * @return {!Promise<undefined>}
  2496. */
  2497. Protocol.EmulationAgent.prototype.resetPageScaleFactor = function() {};
  2498. /** @typedef {Object|undefined} */
  2499. Protocol.EmulationAgent.ResetPageScaleFactorRequest;
  2500. /** @typedef {Object|undefined} */
  2501. Protocol.EmulationAgent.ResetPageScaleFactorResponse;
  2502. /**
  2503. * @param {!Protocol.EmulationAgent.ResetPageScaleFactorRequest} obj
  2504. * @return {!Promise<!Protocol.EmulationAgent.ResetPageScaleFactorResponse>} */
  2505. Protocol.EmulationAgent.prototype.invoke_resetPageScaleFactor = function(obj) {};
  2506. /**
  2507. * @param {boolean} enabled
  2508. * @return {!Promise<undefined>}
  2509. */
  2510. Protocol.EmulationAgent.prototype.setFocusEmulationEnabled = function(enabled) {};
  2511. /** @typedef {!{enabled: boolean}} */
  2512. Protocol.EmulationAgent.SetFocusEmulationEnabledRequest;
  2513. /** @typedef {Object|undefined} */
  2514. Protocol.EmulationAgent.SetFocusEmulationEnabledResponse;
  2515. /**
  2516. * @param {!Protocol.EmulationAgent.SetFocusEmulationEnabledRequest} obj
  2517. * @return {!Promise<!Protocol.EmulationAgent.SetFocusEmulationEnabledResponse>} */
  2518. Protocol.EmulationAgent.prototype.invoke_setFocusEmulationEnabled = function(obj) {};
  2519. /**
  2520. * @param {number} rate
  2521. * @return {!Promise<undefined>}
  2522. */
  2523. Protocol.EmulationAgent.prototype.setCPUThrottlingRate = function(rate) {};
  2524. /** @typedef {!{rate: number}} */
  2525. Protocol.EmulationAgent.SetCPUThrottlingRateRequest;
  2526. /** @typedef {Object|undefined} */
  2527. Protocol.EmulationAgent.SetCPUThrottlingRateResponse;
  2528. /**
  2529. * @param {!Protocol.EmulationAgent.SetCPUThrottlingRateRequest} obj
  2530. * @return {!Promise<!Protocol.EmulationAgent.SetCPUThrottlingRateResponse>} */
  2531. Protocol.EmulationAgent.prototype.invoke_setCPUThrottlingRate = function(obj) {};
  2532. /**
  2533. * @param {Protocol.DOM.RGBA=} opt_color
  2534. * @return {!Promise<undefined>}
  2535. */
  2536. Protocol.EmulationAgent.prototype.setDefaultBackgroundColorOverride = function(opt_color) {};
  2537. /** @typedef {!{color: (Protocol.DOM.RGBA|undefined)}} */
  2538. Protocol.EmulationAgent.SetDefaultBackgroundColorOverrideRequest;
  2539. /** @typedef {Object|undefined} */
  2540. Protocol.EmulationAgent.SetDefaultBackgroundColorOverrideResponse;
  2541. /**
  2542. * @param {!Protocol.EmulationAgent.SetDefaultBackgroundColorOverrideRequest} obj
  2543. * @return {!Promise<!Protocol.EmulationAgent.SetDefaultBackgroundColorOverrideResponse>} */
  2544. Protocol.EmulationAgent.prototype.invoke_setDefaultBackgroundColorOverride = function(obj) {};
  2545. /**
  2546. * @param {number} width
  2547. * @param {number} height
  2548. * @param {number} deviceScaleFactor
  2549. * @param {boolean} mobile
  2550. * @param {number=} opt_scale
  2551. * @param {number=} opt_screenWidth
  2552. * @param {number=} opt_screenHeight
  2553. * @param {number=} opt_positionX
  2554. * @param {number=} opt_positionY
  2555. * @param {boolean=} opt_dontSetVisibleSize
  2556. * @param {Protocol.Emulation.ScreenOrientation=} opt_screenOrientation
  2557. * @param {Protocol.Page.Viewport=} opt_viewport
  2558. * @return {!Promise<undefined>}
  2559. */
  2560. Protocol.EmulationAgent.prototype.setDeviceMetricsOverride = function(width, height, deviceScaleFactor, mobile, opt_scale, opt_screenWidth, opt_screenHeight, opt_positionX, opt_positionY, opt_dontSetVisibleSize, opt_screenOrientation, opt_viewport) {};
  2561. /** @typedef {!{deviceScaleFactor: number, positionX: (number|undefined), scale: (number|undefined), screenHeight: (number|undefined), mobile: boolean, screenOrientation: (Protocol.Emulation.ScreenOrientation|undefined), dontSetVisibleSize: (boolean|undefined), height: number, width: number, positionY: (number|undefined), screenWidth: (number|undefined), viewport: (Protocol.Page.Viewport|undefined)}} */
  2562. Protocol.EmulationAgent.SetDeviceMetricsOverrideRequest;
  2563. /** @typedef {Object|undefined} */
  2564. Protocol.EmulationAgent.SetDeviceMetricsOverrideResponse;
  2565. /**
  2566. * @param {!Protocol.EmulationAgent.SetDeviceMetricsOverrideRequest} obj
  2567. * @return {!Promise<!Protocol.EmulationAgent.SetDeviceMetricsOverrideResponse>} */
  2568. Protocol.EmulationAgent.prototype.invoke_setDeviceMetricsOverride = function(obj) {};
  2569. /**
  2570. * @param {boolean} hidden
  2571. * @return {!Promise<undefined>}
  2572. */
  2573. Protocol.EmulationAgent.prototype.setScrollbarsHidden = function(hidden) {};
  2574. /** @typedef {!{hidden: boolean}} */
  2575. Protocol.EmulationAgent.SetScrollbarsHiddenRequest;
  2576. /** @typedef {Object|undefined} */
  2577. Protocol.EmulationAgent.SetScrollbarsHiddenResponse;
  2578. /**
  2579. * @param {!Protocol.EmulationAgent.SetScrollbarsHiddenRequest} obj
  2580. * @return {!Promise<!Protocol.EmulationAgent.SetScrollbarsHiddenResponse>} */
  2581. Protocol.EmulationAgent.prototype.invoke_setScrollbarsHidden = function(obj) {};
  2582. /**
  2583. * @param {boolean} disabled
  2584. * @return {!Promise<undefined>}
  2585. */
  2586. Protocol.EmulationAgent.prototype.setDocumentCookieDisabled = function(disabled) {};
  2587. /** @typedef {!{disabled: boolean}} */
  2588. Protocol.EmulationAgent.SetDocumentCookieDisabledRequest;
  2589. /** @typedef {Object|undefined} */
  2590. Protocol.EmulationAgent.SetDocumentCookieDisabledResponse;
  2591. /**
  2592. * @param {!Protocol.EmulationAgent.SetDocumentCookieDisabledRequest} obj
  2593. * @return {!Promise<!Protocol.EmulationAgent.SetDocumentCookieDisabledResponse>} */
  2594. Protocol.EmulationAgent.prototype.invoke_setDocumentCookieDisabled = function(obj) {};
  2595. /**
  2596. * @param {boolean} enabled
  2597. * @param {string=} opt_configuration
  2598. * @return {!Promise<undefined>}
  2599. */
  2600. Protocol.EmulationAgent.prototype.setEmitTouchEventsForMouse = function(enabled, opt_configuration) {};
  2601. /** @typedef {!{configuration: (string|undefined), enabled: boolean}} */
  2602. Protocol.EmulationAgent.SetEmitTouchEventsForMouseRequest;
  2603. /** @typedef {Object|undefined} */
  2604. Protocol.EmulationAgent.SetEmitTouchEventsForMouseResponse;
  2605. /**
  2606. * @param {!Protocol.EmulationAgent.SetEmitTouchEventsForMouseRequest} obj
  2607. * @return {!Promise<!Protocol.EmulationAgent.SetEmitTouchEventsForMouseResponse>} */
  2608. Protocol.EmulationAgent.prototype.invoke_setEmitTouchEventsForMouse = function(obj) {};
  2609. /**
  2610. * @param {string=} opt_media
  2611. * @param {!Array<Protocol.Emulation.MediaFeature>=} opt_features
  2612. * @return {!Promise<undefined>}
  2613. */
  2614. Protocol.EmulationAgent.prototype.setEmulatedMedia = function(opt_media, opt_features) {};
  2615. /** @typedef {!{media: (string|undefined), features: (!Array<Protocol.Emulation.MediaFeature>|undefined)}} */
  2616. Protocol.EmulationAgent.SetEmulatedMediaRequest;
  2617. /** @typedef {Object|undefined} */
  2618. Protocol.EmulationAgent.SetEmulatedMediaResponse;
  2619. /**
  2620. * @param {!Protocol.EmulationAgent.SetEmulatedMediaRequest} obj
  2621. * @return {!Promise<!Protocol.EmulationAgent.SetEmulatedMediaResponse>} */
  2622. Protocol.EmulationAgent.prototype.invoke_setEmulatedMedia = function(obj) {};
  2623. /**
  2624. * @param {number=} opt_latitude
  2625. * @param {number=} opt_longitude
  2626. * @param {number=} opt_accuracy
  2627. * @return {!Promise<undefined>}
  2628. */
  2629. Protocol.EmulationAgent.prototype.setGeolocationOverride = function(opt_latitude, opt_longitude, opt_accuracy) {};
  2630. /** @typedef {!{latitude: (number|undefined), longitude: (number|undefined), accuracy: (number|undefined)}} */
  2631. Protocol.EmulationAgent.SetGeolocationOverrideRequest;
  2632. /** @typedef {Object|undefined} */
  2633. Protocol.EmulationAgent.SetGeolocationOverrideResponse;
  2634. /**
  2635. * @param {!Protocol.EmulationAgent.SetGeolocationOverrideRequest} obj
  2636. * @return {!Promise<!Protocol.EmulationAgent.SetGeolocationOverrideResponse>} */
  2637. Protocol.EmulationAgent.prototype.invoke_setGeolocationOverride = function(obj) {};
  2638. /**
  2639. * @param {string} platform
  2640. * @return {!Promise<undefined>}
  2641. */
  2642. Protocol.EmulationAgent.prototype.setNavigatorOverrides = function(platform) {};
  2643. /** @typedef {!{platform: string}} */
  2644. Protocol.EmulationAgent.SetNavigatorOverridesRequest;
  2645. /** @typedef {Object|undefined} */
  2646. Protocol.EmulationAgent.SetNavigatorOverridesResponse;
  2647. /**
  2648. * @param {!Protocol.EmulationAgent.SetNavigatorOverridesRequest} obj
  2649. * @return {!Promise<!Protocol.EmulationAgent.SetNavigatorOverridesResponse>} */
  2650. Protocol.EmulationAgent.prototype.invoke_setNavigatorOverrides = function(obj) {};
  2651. /**
  2652. * @param {number} pageScaleFactor
  2653. * @return {!Promise<undefined>}
  2654. */
  2655. Protocol.EmulationAgent.prototype.setPageScaleFactor = function(pageScaleFactor) {};
  2656. /** @typedef {!{pageScaleFactor: number}} */
  2657. Protocol.EmulationAgent.SetPageScaleFactorRequest;
  2658. /** @typedef {Object|undefined} */
  2659. Protocol.EmulationAgent.SetPageScaleFactorResponse;
  2660. /**
  2661. * @param {!Protocol.EmulationAgent.SetPageScaleFactorRequest} obj
  2662. * @return {!Promise<!Protocol.EmulationAgent.SetPageScaleFactorResponse>} */
  2663. Protocol.EmulationAgent.prototype.invoke_setPageScaleFactor = function(obj) {};
  2664. /**
  2665. * @param {boolean} value
  2666. * @return {!Promise<undefined>}
  2667. */
  2668. Protocol.EmulationAgent.prototype.setScriptExecutionDisabled = function(value) {};
  2669. /** @typedef {!{value: boolean}} */
  2670. Protocol.EmulationAgent.SetScriptExecutionDisabledRequest;
  2671. /** @typedef {Object|undefined} */
  2672. Protocol.EmulationAgent.SetScriptExecutionDisabledResponse;
  2673. /**
  2674. * @param {!Protocol.EmulationAgent.SetScriptExecutionDisabledRequest} obj
  2675. * @return {!Promise<!Protocol.EmulationAgent.SetScriptExecutionDisabledResponse>} */
  2676. Protocol.EmulationAgent.prototype.invoke_setScriptExecutionDisabled = function(obj) {};
  2677. /**
  2678. * @param {boolean} enabled
  2679. * @param {number=} opt_maxTouchPoints
  2680. * @return {!Promise<undefined>}
  2681. */
  2682. Protocol.EmulationAgent.prototype.setTouchEmulationEnabled = function(enabled, opt_maxTouchPoints) {};
  2683. /** @typedef {!{maxTouchPoints: (number|undefined), enabled: boolean}} */
  2684. Protocol.EmulationAgent.SetTouchEmulationEnabledRequest;
  2685. /** @typedef {Object|undefined} */
  2686. Protocol.EmulationAgent.SetTouchEmulationEnabledResponse;
  2687. /**
  2688. * @param {!Protocol.EmulationAgent.SetTouchEmulationEnabledRequest} obj
  2689. * @return {!Promise<!Protocol.EmulationAgent.SetTouchEmulationEnabledResponse>} */
  2690. Protocol.EmulationAgent.prototype.invoke_setTouchEmulationEnabled = function(obj) {};
  2691. /**
  2692. * @param {Protocol.Emulation.VirtualTimePolicy} policy
  2693. * @param {number=} opt_budget
  2694. * @param {number=} opt_maxVirtualTimeTaskStarvationCount
  2695. * @param {boolean=} opt_waitForNavigation
  2696. * @param {Protocol.Network.TimeSinceEpoch=} opt_initialVirtualTime
  2697. * @return {!Promise<?number>}
  2698. */
  2699. Protocol.EmulationAgent.prototype.setVirtualTimePolicy = function(policy, opt_budget, opt_maxVirtualTimeTaskStarvationCount, opt_waitForNavigation, opt_initialVirtualTime) {};
  2700. /** @typedef {!{policy: Protocol.Emulation.VirtualTimePolicy, initialVirtualTime: (Protocol.Network.TimeSinceEpoch|undefined), maxVirtualTimeTaskStarvationCount: (number|undefined), waitForNavigation: (boolean|undefined), budget: (number|undefined)}} */
  2701. Protocol.EmulationAgent.SetVirtualTimePolicyRequest;
  2702. /** @typedef {!{virtualTimeTicksBase: number}} */
  2703. Protocol.EmulationAgent.SetVirtualTimePolicyResponse;
  2704. /**
  2705. * @param {!Protocol.EmulationAgent.SetVirtualTimePolicyRequest} obj
  2706. * @return {!Promise<!Protocol.EmulationAgent.SetVirtualTimePolicyResponse>} */
  2707. Protocol.EmulationAgent.prototype.invoke_setVirtualTimePolicy = function(obj) {};
  2708. /**
  2709. * @param {string} timezoneId
  2710. * @return {!Promise<undefined>}
  2711. */
  2712. Protocol.EmulationAgent.prototype.setTimezoneOverride = function(timezoneId) {};
  2713. /** @typedef {!{timezoneId: string}} */
  2714. Protocol.EmulationAgent.SetTimezoneOverrideRequest;
  2715. /** @typedef {Object|undefined} */
  2716. Protocol.EmulationAgent.SetTimezoneOverrideResponse;
  2717. /**
  2718. * @param {!Protocol.EmulationAgent.SetTimezoneOverrideRequest} obj
  2719. * @return {!Promise<!Protocol.EmulationAgent.SetTimezoneOverrideResponse>} */
  2720. Protocol.EmulationAgent.prototype.invoke_setTimezoneOverride = function(obj) {};
  2721. /**
  2722. * @param {number} width
  2723. * @param {number} height
  2724. * @return {!Promise<undefined>}
  2725. */
  2726. Protocol.EmulationAgent.prototype.setVisibleSize = function(width, height) {};
  2727. /** @typedef {!{width: number, height: number}} */
  2728. Protocol.EmulationAgent.SetVisibleSizeRequest;
  2729. /** @typedef {Object|undefined} */
  2730. Protocol.EmulationAgent.SetVisibleSizeResponse;
  2731. /**
  2732. * @param {!Protocol.EmulationAgent.SetVisibleSizeRequest} obj
  2733. * @return {!Promise<!Protocol.EmulationAgent.SetVisibleSizeResponse>} */
  2734. Protocol.EmulationAgent.prototype.invoke_setVisibleSize = function(obj) {};
  2735. /**
  2736. * @param {string} userAgent
  2737. * @param {string=} opt_acceptLanguage
  2738. * @param {string=} opt_platform
  2739. * @return {!Promise<undefined>}
  2740. */
  2741. Protocol.EmulationAgent.prototype.setUserAgentOverride = function(userAgent, opt_acceptLanguage, opt_platform) {};
  2742. /** @typedef {!{acceptLanguage: (string|undefined), userAgent: string, platform: (string|undefined)}} */
  2743. Protocol.EmulationAgent.SetUserAgentOverrideRequest;
  2744. /** @typedef {Object|undefined} */
  2745. Protocol.EmulationAgent.SetUserAgentOverrideResponse;
  2746. /**
  2747. * @param {!Protocol.EmulationAgent.SetUserAgentOverrideRequest} obj
  2748. * @return {!Promise<!Protocol.EmulationAgent.SetUserAgentOverrideResponse>} */
  2749. Protocol.EmulationAgent.prototype.invoke_setUserAgentOverride = function(obj) {};
  2750. /** @enum {string} */
  2751. Protocol.Emulation.ScreenOrientationType = {
  2752. PortraitPrimary: "portraitPrimary",
  2753. PortraitSecondary: "portraitSecondary",
  2754. LandscapePrimary: "landscapePrimary",
  2755. LandscapeSecondary: "landscapeSecondary"
  2756. };
  2757. /** @typedef {!{type:(Protocol.Emulation.ScreenOrientationType), angle:(number)}} */
  2758. Protocol.Emulation.ScreenOrientation;
  2759. /** @typedef {!{name:(string), value:(string)}} */
  2760. Protocol.Emulation.MediaFeature;
  2761. /** @enum {string} */
  2762. Protocol.Emulation.VirtualTimePolicy = {
  2763. Advance: "advance",
  2764. Pause: "pause",
  2765. PauseIfNetworkFetchesPending: "pauseIfNetworkFetchesPending"
  2766. };
  2767. /** @interface */
  2768. Protocol.EmulationDispatcher = function() {};
  2769. Protocol.EmulationDispatcher.prototype.virtualTimeBudgetExpired = function() {};
  2770. Protocol.HeadlessExperimental = {};
  2771. /**
  2772. * @constructor
  2773. */
  2774. Protocol.HeadlessExperimentalAgent = function(){};
  2775. /**
  2776. * @param {number=} opt_frameTimeTicks
  2777. * @param {number=} opt_interval
  2778. * @param {boolean=} opt_noDisplayUpdates
  2779. * @param {Protocol.HeadlessExperimental.ScreenshotParams=} opt_screenshot
  2780. * @return {!Promise<?boolean>}
  2781. */
  2782. Protocol.HeadlessExperimentalAgent.prototype.beginFrame = function(opt_frameTimeTicks, opt_interval, opt_noDisplayUpdates, opt_screenshot) {};
  2783. /** @typedef {!{interval: (number|undefined), frameTimeTicks: (number|undefined), noDisplayUpdates: (boolean|undefined), screenshot: (Protocol.HeadlessExperimental.ScreenshotParams|undefined)}} */
  2784. Protocol.HeadlessExperimentalAgent.BeginFrameRequest;
  2785. /** @typedef {!{hasDamage: boolean, screenshotData: string}} */
  2786. Protocol.HeadlessExperimentalAgent.BeginFrameResponse;
  2787. /**
  2788. * @param {!Protocol.HeadlessExperimentalAgent.BeginFrameRequest} obj
  2789. * @return {!Promise<!Protocol.HeadlessExperimentalAgent.BeginFrameResponse>} */
  2790. Protocol.HeadlessExperimentalAgent.prototype.invoke_beginFrame = function(obj) {};
  2791. /**
  2792. * @return {!Promise<undefined>}
  2793. */
  2794. Protocol.HeadlessExperimentalAgent.prototype.disable = function() {};
  2795. /** @typedef {Object|undefined} */
  2796. Protocol.HeadlessExperimentalAgent.DisableRequest;
  2797. /** @typedef {Object|undefined} */
  2798. Protocol.HeadlessExperimentalAgent.DisableResponse;
  2799. /**
  2800. * @param {!Protocol.HeadlessExperimentalAgent.DisableRequest} obj
  2801. * @return {!Promise<!Protocol.HeadlessExperimentalAgent.DisableResponse>} */
  2802. Protocol.HeadlessExperimentalAgent.prototype.invoke_disable = function(obj) {};
  2803. /**
  2804. * @return {!Promise<undefined>}
  2805. */
  2806. Protocol.HeadlessExperimentalAgent.prototype.enable = function() {};
  2807. /** @typedef {Object|undefined} */
  2808. Protocol.HeadlessExperimentalAgent.EnableRequest;
  2809. /** @typedef {Object|undefined} */
  2810. Protocol.HeadlessExperimentalAgent.EnableResponse;
  2811. /**
  2812. * @param {!Protocol.HeadlessExperimentalAgent.EnableRequest} obj
  2813. * @return {!Promise<!Protocol.HeadlessExperimentalAgent.EnableResponse>} */
  2814. Protocol.HeadlessExperimentalAgent.prototype.invoke_enable = function(obj) {};
  2815. /** @enum {string} */
  2816. Protocol.HeadlessExperimental.ScreenshotParamsFormat = {
  2817. Jpeg: "jpeg",
  2818. Png: "png"
  2819. };
  2820. /** @typedef {!{format:(Protocol.HeadlessExperimental.ScreenshotParamsFormat|undefined), quality:(number|undefined)}} */
  2821. Protocol.HeadlessExperimental.ScreenshotParams;
  2822. /** @interface */
  2823. Protocol.HeadlessExperimentalDispatcher = function() {};
  2824. /**
  2825. * @param {boolean} needsBeginFrames
  2826. */
  2827. Protocol.HeadlessExperimentalDispatcher.prototype.needsBeginFramesChanged = function(needsBeginFrames) {};
  2828. Protocol.IO = {};
  2829. /**
  2830. * @constructor
  2831. */
  2832. Protocol.IOAgent = function(){};
  2833. /**
  2834. * @param {Protocol.IO.StreamHandle} handle
  2835. * @return {!Promise<undefined>}
  2836. */
  2837. Protocol.IOAgent.prototype.close = function(handle) {};
  2838. /** @typedef {!{handle: Protocol.IO.StreamHandle}} */
  2839. Protocol.IOAgent.CloseRequest;
  2840. /** @typedef {Object|undefined} */
  2841. Protocol.IOAgent.CloseResponse;
  2842. /**
  2843. * @param {!Protocol.IOAgent.CloseRequest} obj
  2844. * @return {!Promise<!Protocol.IOAgent.CloseResponse>} */
  2845. Protocol.IOAgent.prototype.invoke_close = function(obj) {};
  2846. /**
  2847. * @param {Protocol.IO.StreamHandle} handle
  2848. * @param {number=} opt_offset
  2849. * @param {number=} opt_size
  2850. * @return {!Promise<?boolean>}
  2851. */
  2852. Protocol.IOAgent.prototype.read = function(handle, opt_offset, opt_size) {};
  2853. /** @typedef {!{size: (number|undefined), handle: Protocol.IO.StreamHandle, offset: (number|undefined)}} */
  2854. Protocol.IOAgent.ReadRequest;
  2855. /** @typedef {!{data: string, base64Encoded: boolean, eof: boolean}} */
  2856. Protocol.IOAgent.ReadResponse;
  2857. /**
  2858. * @param {!Protocol.IOAgent.ReadRequest} obj
  2859. * @return {!Promise<!Protocol.IOAgent.ReadResponse>} */
  2860. Protocol.IOAgent.prototype.invoke_read = function(obj) {};
  2861. /**
  2862. * @param {Protocol.Runtime.RemoteObjectId} objectId
  2863. * @return {!Promise<?string>}
  2864. */
  2865. Protocol.IOAgent.prototype.resolveBlob = function(objectId) {};
  2866. /** @typedef {!{objectId: Protocol.Runtime.RemoteObjectId}} */
  2867. Protocol.IOAgent.ResolveBlobRequest;
  2868. /** @typedef {!{uuid: string}} */
  2869. Protocol.IOAgent.ResolveBlobResponse;
  2870. /**
  2871. * @param {!Protocol.IOAgent.ResolveBlobRequest} obj
  2872. * @return {!Promise<!Protocol.IOAgent.ResolveBlobResponse>} */
  2873. Protocol.IOAgent.prototype.invoke_resolveBlob = function(obj) {};
  2874. /** @typedef {string} */
  2875. Protocol.IO.StreamHandle;
  2876. /** @interface */
  2877. Protocol.IODispatcher = function() {};
  2878. Protocol.IndexedDB = {};
  2879. /**
  2880. * @constructor
  2881. */
  2882. Protocol.IndexedDBAgent = function(){};
  2883. /**
  2884. * @param {string} securityOrigin
  2885. * @param {string} databaseName
  2886. * @param {string} objectStoreName
  2887. * @return {!Promise<undefined>}
  2888. */
  2889. Protocol.IndexedDBAgent.prototype.clearObjectStore = function(securityOrigin, databaseName, objectStoreName) {};
  2890. /** @typedef {!{objectStoreName: string, databaseName: string, securityOrigin: string}} */
  2891. Protocol.IndexedDBAgent.ClearObjectStoreRequest;
  2892. /** @typedef {Object|undefined} */
  2893. Protocol.IndexedDBAgent.ClearObjectStoreResponse;
  2894. /**
  2895. * @param {!Protocol.IndexedDBAgent.ClearObjectStoreRequest} obj
  2896. * @return {!Promise<!Protocol.IndexedDBAgent.ClearObjectStoreResponse>} */
  2897. Protocol.IndexedDBAgent.prototype.invoke_clearObjectStore = function(obj) {};
  2898. /**
  2899. * @param {string} securityOrigin
  2900. * @param {string} databaseName
  2901. * @return {!Promise<undefined>}
  2902. */
  2903. Protocol.IndexedDBAgent.prototype.deleteDatabase = function(securityOrigin, databaseName) {};
  2904. /** @typedef {!{databaseName: string, securityOrigin: string}} */
  2905. Protocol.IndexedDBAgent.DeleteDatabaseRequest;
  2906. /** @typedef {Object|undefined} */
  2907. Protocol.IndexedDBAgent.DeleteDatabaseResponse;
  2908. /**
  2909. * @param {!Protocol.IndexedDBAgent.DeleteDatabaseRequest} obj
  2910. * @return {!Promise<!Protocol.IndexedDBAgent.DeleteDatabaseResponse>} */
  2911. Protocol.IndexedDBAgent.prototype.invoke_deleteDatabase = function(obj) {};
  2912. /**
  2913. * @param {string} securityOrigin
  2914. * @param {string} databaseName
  2915. * @param {string} objectStoreName
  2916. * @param {Protocol.IndexedDB.KeyRange} keyRange
  2917. * @return {!Promise<undefined>}
  2918. */
  2919. Protocol.IndexedDBAgent.prototype.deleteObjectStoreEntries = function(securityOrigin, databaseName, objectStoreName, keyRange) {};
  2920. /** @typedef {!{objectStoreName: string, keyRange: Protocol.IndexedDB.KeyRange, databaseName: string, securityOrigin: string}} */
  2921. Protocol.IndexedDBAgent.DeleteObjectStoreEntriesRequest;
  2922. /** @typedef {Object|undefined} */
  2923. Protocol.IndexedDBAgent.DeleteObjectStoreEntriesResponse;
  2924. /**
  2925. * @param {!Protocol.IndexedDBAgent.DeleteObjectStoreEntriesRequest} obj
  2926. * @return {!Promise<!Protocol.IndexedDBAgent.DeleteObjectStoreEntriesResponse>} */
  2927. Protocol.IndexedDBAgent.prototype.invoke_deleteObjectStoreEntries = function(obj) {};
  2928. /**
  2929. * @return {!Promise<undefined>}
  2930. */
  2931. Protocol.IndexedDBAgent.prototype.disable = function() {};
  2932. /** @typedef {Object|undefined} */
  2933. Protocol.IndexedDBAgent.DisableRequest;
  2934. /** @typedef {Object|undefined} */
  2935. Protocol.IndexedDBAgent.DisableResponse;
  2936. /**
  2937. * @param {!Protocol.IndexedDBAgent.DisableRequest} obj
  2938. * @return {!Promise<!Protocol.IndexedDBAgent.DisableResponse>} */
  2939. Protocol.IndexedDBAgent.prototype.invoke_disable = function(obj) {};
  2940. /**
  2941. * @return {!Promise<undefined>}
  2942. */
  2943. Protocol.IndexedDBAgent.prototype.enable = function() {};
  2944. /** @typedef {Object|undefined} */
  2945. Protocol.IndexedDBAgent.EnableRequest;
  2946. /** @typedef {Object|undefined} */
  2947. Protocol.IndexedDBAgent.EnableResponse;
  2948. /**
  2949. * @param {!Protocol.IndexedDBAgent.EnableRequest} obj
  2950. * @return {!Promise<!Protocol.IndexedDBAgent.EnableResponse>} */
  2951. Protocol.IndexedDBAgent.prototype.invoke_enable = function(obj) {};
  2952. /**
  2953. * @param {string} securityOrigin
  2954. * @param {string} databaseName
  2955. * @param {string} objectStoreName
  2956. * @param {string} indexName
  2957. * @param {number} skipCount
  2958. * @param {number} pageSize
  2959. * @param {Protocol.IndexedDB.KeyRange=} opt_keyRange
  2960. * @return {!Promise<?Array<Protocol.IndexedDB.DataEntry>>}
  2961. */
  2962. Protocol.IndexedDBAgent.prototype.requestData = function(securityOrigin, databaseName, objectStoreName, indexName, skipCount, pageSize, opt_keyRange) {};
  2963. /** @typedef {!{indexName: string, pageSize: number, objectStoreName: string, skipCount: number, keyRange: (Protocol.IndexedDB.KeyRange|undefined), databaseName: string, securityOrigin: string}} */
  2964. Protocol.IndexedDBAgent.RequestDataRequest;
  2965. /** @typedef {!{hasMore: boolean, objectStoreDataEntries: !Array<Protocol.IndexedDB.DataEntry>}} */
  2966. Protocol.IndexedDBAgent.RequestDataResponse;
  2967. /**
  2968. * @param {!Protocol.IndexedDBAgent.RequestDataRequest} obj
  2969. * @return {!Promise<!Protocol.IndexedDBAgent.RequestDataResponse>} */
  2970. Protocol.IndexedDBAgent.prototype.invoke_requestData = function(obj) {};
  2971. /**
  2972. * @param {string} securityOrigin
  2973. * @param {string} databaseName
  2974. * @param {string} objectStoreName
  2975. * @return {!Promise<?number>}
  2976. */
  2977. Protocol.IndexedDBAgent.prototype.getMetadata = function(securityOrigin, databaseName, objectStoreName) {};
  2978. /** @typedef {!{objectStoreName: string, databaseName: string, securityOrigin: string}} */
  2979. Protocol.IndexedDBAgent.GetMetadataRequest;
  2980. /** @typedef {!{entriesCount: number, keyGeneratorValue: number}} */
  2981. Protocol.IndexedDBAgent.GetMetadataResponse;
  2982. /**
  2983. * @param {!Protocol.IndexedDBAgent.GetMetadataRequest} obj
  2984. * @return {!Promise<!Protocol.IndexedDBAgent.GetMetadataResponse>} */
  2985. Protocol.IndexedDBAgent.prototype.invoke_getMetadata = function(obj) {};
  2986. /**
  2987. * @param {string} securityOrigin
  2988. * @param {string} databaseName
  2989. * @return {!Promise<?Protocol.IndexedDB.DatabaseWithObjectStores>}
  2990. */
  2991. Protocol.IndexedDBAgent.prototype.requestDatabase = function(securityOrigin, databaseName) {};
  2992. /** @typedef {!{databaseName: string, securityOrigin: string}} */
  2993. Protocol.IndexedDBAgent.RequestDatabaseRequest;
  2994. /** @typedef {!{databaseWithObjectStores: Protocol.IndexedDB.DatabaseWithObjectStores}} */
  2995. Protocol.IndexedDBAgent.RequestDatabaseResponse;
  2996. /**
  2997. * @param {!Protocol.IndexedDBAgent.RequestDatabaseRequest} obj
  2998. * @return {!Promise<!Protocol.IndexedDBAgent.RequestDatabaseResponse>} */
  2999. Protocol.IndexedDBAgent.prototype.invoke_requestDatabase = function(obj) {};
  3000. /**
  3001. * @param {string} securityOrigin
  3002. * @return {!Promise<?Array<string>>}
  3003. */
  3004. Protocol.IndexedDBAgent.prototype.requestDatabaseNames = function(securityOrigin) {};
  3005. /** @typedef {!{securityOrigin: string}} */
  3006. Protocol.IndexedDBAgent.RequestDatabaseNamesRequest;
  3007. /** @typedef {!{databaseNames: !Array<string>}} */
  3008. Protocol.IndexedDBAgent.RequestDatabaseNamesResponse;
  3009. /**
  3010. * @param {!Protocol.IndexedDBAgent.RequestDatabaseNamesRequest} obj
  3011. * @return {!Promise<!Protocol.IndexedDBAgent.RequestDatabaseNamesResponse>} */
  3012. Protocol.IndexedDBAgent.prototype.invoke_requestDatabaseNames = function(obj) {};
  3013. /** @typedef {!{name:(string), version:(number), objectStores:(!Array<Protocol.IndexedDB.ObjectStore>)}} */
  3014. Protocol.IndexedDB.DatabaseWithObjectStores;
  3015. /** @typedef {!{name:(string), keyPath:(Protocol.IndexedDB.KeyPath), autoIncrement:(boolean), indexes:(!Array<Protocol.IndexedDB.ObjectStoreIndex>)}} */
  3016. Protocol.IndexedDB.ObjectStore;
  3017. /** @typedef {!{name:(string), keyPath:(Protocol.IndexedDB.KeyPath), unique:(boolean), multiEntry:(boolean)}} */
  3018. Protocol.IndexedDB.ObjectStoreIndex;
  3019. /** @enum {string} */
  3020. Protocol.IndexedDB.KeyType = {
  3021. Number: "number",
  3022. String: "string",
  3023. Date: "date",
  3024. Array: "array"
  3025. };
  3026. /** @typedef {!{type:(Protocol.IndexedDB.KeyType), number:(number|undefined), string:(string|undefined), date:(number|undefined), array:(!Array<Protocol.IndexedDB.Key>|undefined)}} */
  3027. Protocol.IndexedDB.Key;
  3028. /** @typedef {!{lower:(Protocol.IndexedDB.Key|undefined), upper:(Protocol.IndexedDB.Key|undefined), lowerOpen:(boolean), upperOpen:(boolean)}} */
  3029. Protocol.IndexedDB.KeyRange;
  3030. /** @typedef {!{key:(Protocol.Runtime.RemoteObject), primaryKey:(Protocol.Runtime.RemoteObject), value:(Protocol.Runtime.RemoteObject)}} */
  3031. Protocol.IndexedDB.DataEntry;
  3032. /** @enum {string} */
  3033. Protocol.IndexedDB.KeyPathType = {
  3034. Null: "null",
  3035. String: "string",
  3036. Array: "array"
  3037. };
  3038. /** @typedef {!{type:(Protocol.IndexedDB.KeyPathType), string:(string|undefined), array:(!Array<string>|undefined)}} */
  3039. Protocol.IndexedDB.KeyPath;
  3040. /** @interface */
  3041. Protocol.IndexedDBDispatcher = function() {};
  3042. Protocol.Input = {};
  3043. /**
  3044. * @constructor
  3045. */
  3046. Protocol.InputAgent = function(){};
  3047. /**
  3048. * @param {string} type
  3049. * @param {number=} opt_modifiers
  3050. * @param {Protocol.Input.TimeSinceEpoch=} opt_timestamp
  3051. * @param {string=} opt_text
  3052. * @param {string=} opt_unmodifiedText
  3053. * @param {string=} opt_keyIdentifier
  3054. * @param {string=} opt_code
  3055. * @param {string=} opt_key
  3056. * @param {number=} opt_windowsVirtualKeyCode
  3057. * @param {number=} opt_nativeVirtualKeyCode
  3058. * @param {boolean=} opt_autoRepeat
  3059. * @param {boolean=} opt_isKeypad
  3060. * @param {boolean=} opt_isSystemKey
  3061. * @param {number=} opt_location
  3062. * @return {!Promise<undefined>}
  3063. */
  3064. Protocol.InputAgent.prototype.dispatchKeyEvent = function(type, opt_modifiers, opt_timestamp, opt_text, opt_unmodifiedText, opt_keyIdentifier, opt_code, opt_key, opt_windowsVirtualKeyCode, opt_nativeVirtualKeyCode, opt_autoRepeat, opt_isKeypad, opt_isSystemKey, opt_location) {};
  3065. /** @typedef {!{code: (string|undefined), keyIdentifier: (string|undefined), modifiers: (number|undefined), timestamp: (Protocol.Input.TimeSinceEpoch|undefined), autoRepeat: (boolean|undefined), isSystemKey: (boolean|undefined), unmodifiedText: (string|undefined), location: (number|undefined), key: (string|undefined), text: (string|undefined), nativeVirtualKeyCode: (number|undefined), windowsVirtualKeyCode: (number|undefined), type: string, isKeypad: (boolean|undefined)}} */
  3066. Protocol.InputAgent.DispatchKeyEventRequest;
  3067. /** @typedef {Object|undefined} */
  3068. Protocol.InputAgent.DispatchKeyEventResponse;
  3069. /**
  3070. * @param {!Protocol.InputAgent.DispatchKeyEventRequest} obj
  3071. * @return {!Promise<!Protocol.InputAgent.DispatchKeyEventResponse>} */
  3072. Protocol.InputAgent.prototype.invoke_dispatchKeyEvent = function(obj) {};
  3073. /**
  3074. * @param {string} text
  3075. * @return {!Promise<undefined>}
  3076. */
  3077. Protocol.InputAgent.prototype.insertText = function(text) {};
  3078. /** @typedef {!{text: string}} */
  3079. Protocol.InputAgent.InsertTextRequest;
  3080. /** @typedef {Object|undefined} */
  3081. Protocol.InputAgent.InsertTextResponse;
  3082. /**
  3083. * @param {!Protocol.InputAgent.InsertTextRequest} obj
  3084. * @return {!Promise<!Protocol.InputAgent.InsertTextResponse>} */
  3085. Protocol.InputAgent.prototype.invoke_insertText = function(obj) {};
  3086. /**
  3087. * @param {string} type
  3088. * @param {number} x
  3089. * @param {number} y
  3090. * @param {number=} opt_modifiers
  3091. * @param {Protocol.Input.TimeSinceEpoch=} opt_timestamp
  3092. * @param {string=} opt_button
  3093. * @param {number=} opt_buttons
  3094. * @param {number=} opt_clickCount
  3095. * @param {number=} opt_deltaX
  3096. * @param {number=} opt_deltaY
  3097. * @param {string=} opt_pointerType
  3098. * @return {!Promise<undefined>}
  3099. */
  3100. Protocol.InputAgent.prototype.dispatchMouseEvent = function(type, x, y, opt_modifiers, opt_timestamp, opt_button, opt_buttons, opt_clickCount, opt_deltaX, opt_deltaY, opt_pointerType) {};
  3101. /** @typedef {!{modifiers: (number|undefined), clickCount: (number|undefined), deltaX: (number|undefined), timestamp: (Protocol.Input.TimeSinceEpoch|undefined), button: (string|undefined), buttons: (number|undefined), pointerType: (string|undefined), deltaY: (number|undefined), y: number, x: number, type: string}} */
  3102. Protocol.InputAgent.DispatchMouseEventRequest;
  3103. /** @typedef {Object|undefined} */
  3104. Protocol.InputAgent.DispatchMouseEventResponse;
  3105. /**
  3106. * @param {!Protocol.InputAgent.DispatchMouseEventRequest} obj
  3107. * @return {!Promise<!Protocol.InputAgent.DispatchMouseEventResponse>} */
  3108. Protocol.InputAgent.prototype.invoke_dispatchMouseEvent = function(obj) {};
  3109. /**
  3110. * @param {string} type
  3111. * @param {!Array<Protocol.Input.TouchPoint>} touchPoints
  3112. * @param {number=} opt_modifiers
  3113. * @param {Protocol.Input.TimeSinceEpoch=} opt_timestamp
  3114. * @return {!Promise<undefined>}
  3115. */
  3116. Protocol.InputAgent.prototype.dispatchTouchEvent = function(type, touchPoints, opt_modifiers, opt_timestamp) {};
  3117. /** @typedef {!{timestamp: (Protocol.Input.TimeSinceEpoch|undefined), modifiers: (number|undefined), type: string, touchPoints: !Array<Protocol.Input.TouchPoint>}} */
  3118. Protocol.InputAgent.DispatchTouchEventRequest;
  3119. /** @typedef {Object|undefined} */
  3120. Protocol.InputAgent.DispatchTouchEventResponse;
  3121. /**
  3122. * @param {!Protocol.InputAgent.DispatchTouchEventRequest} obj
  3123. * @return {!Promise<!Protocol.InputAgent.DispatchTouchEventResponse>} */
  3124. Protocol.InputAgent.prototype.invoke_dispatchTouchEvent = function(obj) {};
  3125. /**
  3126. * @param {string} type
  3127. * @param {number} x
  3128. * @param {number} y
  3129. * @param {string} button
  3130. * @param {Protocol.Input.TimeSinceEpoch=} opt_timestamp
  3131. * @param {number=} opt_deltaX
  3132. * @param {number=} opt_deltaY
  3133. * @param {number=} opt_modifiers
  3134. * @param {number=} opt_clickCount
  3135. * @return {!Promise<undefined>}
  3136. */
  3137. Protocol.InputAgent.prototype.emulateTouchFromMouseEvent = function(type, x, y, button, opt_timestamp, opt_deltaX, opt_deltaY, opt_modifiers, opt_clickCount) {};
  3138. /** @typedef {!{modifiers: (number|undefined), clickCount: (number|undefined), deltaX: (number|undefined), timestamp: (Protocol.Input.TimeSinceEpoch|undefined), button: string, deltaY: (number|undefined), y: number, x: number, type: string}} */
  3139. Protocol.InputAgent.EmulateTouchFromMouseEventRequest;
  3140. /** @typedef {Object|undefined} */
  3141. Protocol.InputAgent.EmulateTouchFromMouseEventResponse;
  3142. /**
  3143. * @param {!Protocol.InputAgent.EmulateTouchFromMouseEventRequest} obj
  3144. * @return {!Promise<!Protocol.InputAgent.EmulateTouchFromMouseEventResponse>} */
  3145. Protocol.InputAgent.prototype.invoke_emulateTouchFromMouseEvent = function(obj) {};
  3146. /**
  3147. * @param {boolean} ignore
  3148. * @return {!Promise<undefined>}
  3149. */
  3150. Protocol.InputAgent.prototype.setIgnoreInputEvents = function(ignore) {};
  3151. /** @typedef {!{ignore: boolean}} */
  3152. Protocol.InputAgent.SetIgnoreInputEventsRequest;
  3153. /** @typedef {Object|undefined} */
  3154. Protocol.InputAgent.SetIgnoreInputEventsResponse;
  3155. /**
  3156. * @param {!Protocol.InputAgent.SetIgnoreInputEventsRequest} obj
  3157. * @return {!Promise<!Protocol.InputAgent.SetIgnoreInputEventsResponse>} */
  3158. Protocol.InputAgent.prototype.invoke_setIgnoreInputEvents = function(obj) {};
  3159. /**
  3160. * @param {number} x
  3161. * @param {number} y
  3162. * @param {number} scaleFactor
  3163. * @param {number=} opt_relativeSpeed
  3164. * @param {Protocol.Input.GestureSourceType=} opt_gestureSourceType
  3165. * @return {!Promise<undefined>}
  3166. */
  3167. Protocol.InputAgent.prototype.synthesizePinchGesture = function(x, y, scaleFactor, opt_relativeSpeed, opt_gestureSourceType) {};
  3168. /** @typedef {!{y: number, x: number, gestureSourceType: (Protocol.Input.GestureSourceType|undefined), relativeSpeed: (number|undefined), scaleFactor: number}} */
  3169. Protocol.InputAgent.SynthesizePinchGestureRequest;
  3170. /** @typedef {Object|undefined} */
  3171. Protocol.InputAgent.SynthesizePinchGestureResponse;
  3172. /**
  3173. * @param {!Protocol.InputAgent.SynthesizePinchGestureRequest} obj
  3174. * @return {!Promise<!Protocol.InputAgent.SynthesizePinchGestureResponse>} */
  3175. Protocol.InputAgent.prototype.invoke_synthesizePinchGesture = function(obj) {};
  3176. /**
  3177. * @param {number} x
  3178. * @param {number} y
  3179. * @param {number=} opt_xDistance
  3180. * @param {number=} opt_yDistance
  3181. * @param {number=} opt_xOverscroll
  3182. * @param {number=} opt_yOverscroll
  3183. * @param {boolean=} opt_preventFling
  3184. * @param {number=} opt_speed
  3185. * @param {Protocol.Input.GestureSourceType=} opt_gestureSourceType
  3186. * @param {number=} opt_repeatCount
  3187. * @param {number=} opt_repeatDelayMs
  3188. * @param {string=} opt_interactionMarkerName
  3189. * @return {!Promise<undefined>}
  3190. */
  3191. Protocol.InputAgent.prototype.synthesizeScrollGesture = function(x, y, opt_xDistance, opt_yDistance, opt_xOverscroll, opt_yOverscroll, opt_preventFling, opt_speed, opt_gestureSourceType, opt_repeatCount, opt_repeatDelayMs, opt_interactionMarkerName) {};
  3192. /** @typedef {!{xOverscroll: (number|undefined), yOverscroll: (number|undefined), preventFling: (boolean|undefined), yDistance: (number|undefined), interactionMarkerName: (string|undefined), xDistance: (number|undefined), repeatCount: (number|undefined), gestureSourceType: (Protocol.Input.GestureSourceType|undefined), repeatDelayMs: (number|undefined), y: number, x: number, speed: (number|undefined)}} */
  3193. Protocol.InputAgent.SynthesizeScrollGestureRequest;
  3194. /** @typedef {Object|undefined} */
  3195. Protocol.InputAgent.SynthesizeScrollGestureResponse;
  3196. /**
  3197. * @param {!Protocol.InputAgent.SynthesizeScrollGestureRequest} obj
  3198. * @return {!Promise<!Protocol.InputAgent.SynthesizeScrollGestureResponse>} */
  3199. Protocol.InputAgent.prototype.invoke_synthesizeScrollGesture = function(obj) {};
  3200. /**
  3201. * @param {number} x
  3202. * @param {number} y
  3203. * @param {number=} opt_duration
  3204. * @param {number=} opt_tapCount
  3205. * @param {Protocol.Input.GestureSourceType=} opt_gestureSourceType
  3206. * @return {!Promise<undefined>}
  3207. */
  3208. Protocol.InputAgent.prototype.synthesizeTapGesture = function(x, y, opt_duration, opt_tapCount, opt_gestureSourceType) {};
  3209. /** @typedef {!{y: number, x: number, duration: (number|undefined), gestureSourceType: (Protocol.Input.GestureSourceType|undefined), tapCount: (number|undefined)}} */
  3210. Protocol.InputAgent.SynthesizeTapGestureRequest;
  3211. /** @typedef {Object|undefined} */
  3212. Protocol.InputAgent.SynthesizeTapGestureResponse;
  3213. /**
  3214. * @param {!Protocol.InputAgent.SynthesizeTapGestureRequest} obj
  3215. * @return {!Promise<!Protocol.InputAgent.SynthesizeTapGestureResponse>} */
  3216. Protocol.InputAgent.prototype.invoke_synthesizeTapGesture = function(obj) {};
  3217. /** @typedef {!{x:(number), y:(number), radiusX:(number|undefined), radiusY:(number|undefined), rotationAngle:(number|undefined), force:(number|undefined), id:(number|undefined)}} */
  3218. Protocol.Input.TouchPoint;
  3219. /** @enum {string} */
  3220. Protocol.Input.GestureSourceType = {
  3221. Default: "default",
  3222. Touch: "touch",
  3223. Mouse: "mouse"
  3224. };
  3225. /** @typedef {number} */
  3226. Protocol.Input.TimeSinceEpoch;
  3227. /** @interface */
  3228. Protocol.InputDispatcher = function() {};
  3229. Protocol.Inspector = {};
  3230. /**
  3231. * @constructor
  3232. */
  3233. Protocol.InspectorAgent = function(){};
  3234. /**
  3235. * @return {!Promise<undefined>}
  3236. */
  3237. Protocol.InspectorAgent.prototype.disable = function() {};
  3238. /** @typedef {Object|undefined} */
  3239. Protocol.InspectorAgent.DisableRequest;
  3240. /** @typedef {Object|undefined} */
  3241. Protocol.InspectorAgent.DisableResponse;
  3242. /**
  3243. * @param {!Protocol.InspectorAgent.DisableRequest} obj
  3244. * @return {!Promise<!Protocol.InspectorAgent.DisableResponse>} */
  3245. Protocol.InspectorAgent.prototype.invoke_disable = function(obj) {};
  3246. /**
  3247. * @return {!Promise<undefined>}
  3248. */
  3249. Protocol.InspectorAgent.prototype.enable = function() {};
  3250. /** @typedef {Object|undefined} */
  3251. Protocol.InspectorAgent.EnableRequest;
  3252. /** @typedef {Object|undefined} */
  3253. Protocol.InspectorAgent.EnableResponse;
  3254. /**
  3255. * @param {!Protocol.InspectorAgent.EnableRequest} obj
  3256. * @return {!Promise<!Protocol.InspectorAgent.EnableResponse>} */
  3257. Protocol.InspectorAgent.prototype.invoke_enable = function(obj) {};
  3258. /** @interface */
  3259. Protocol.InspectorDispatcher = function() {};
  3260. /**
  3261. * @param {string} reason
  3262. */
  3263. Protocol.InspectorDispatcher.prototype.detached = function(reason) {};
  3264. Protocol.InspectorDispatcher.prototype.targetCrashed = function() {};
  3265. Protocol.InspectorDispatcher.prototype.targetReloadedAfterCrash = function() {};
  3266. Protocol.LayerTree = {};
  3267. /**
  3268. * @constructor
  3269. */
  3270. Protocol.LayerTreeAgent = function(){};
  3271. /**
  3272. * @param {Protocol.LayerTree.LayerId} layerId
  3273. * @return {!Promise<?Array<string>>}
  3274. */
  3275. Protocol.LayerTreeAgent.prototype.compositingReasons = function(layerId) {};
  3276. /** @typedef {!{layerId: Protocol.LayerTree.LayerId}} */
  3277. Protocol.LayerTreeAgent.CompositingReasonsRequest;
  3278. /** @typedef {!{compositingReasons: !Array<string>}} */
  3279. Protocol.LayerTreeAgent.CompositingReasonsResponse;
  3280. /**
  3281. * @param {!Protocol.LayerTreeAgent.CompositingReasonsRequest} obj
  3282. * @return {!Promise<!Protocol.LayerTreeAgent.CompositingReasonsResponse>} */
  3283. Protocol.LayerTreeAgent.prototype.invoke_compositingReasons = function(obj) {};
  3284. /**
  3285. * @return {!Promise<undefined>}
  3286. */
  3287. Protocol.LayerTreeAgent.prototype.disable = function() {};
  3288. /** @typedef {Object|undefined} */
  3289. Protocol.LayerTreeAgent.DisableRequest;
  3290. /** @typedef {Object|undefined} */
  3291. Protocol.LayerTreeAgent.DisableResponse;
  3292. /**
  3293. * @param {!Protocol.LayerTreeAgent.DisableRequest} obj
  3294. * @return {!Promise<!Protocol.LayerTreeAgent.DisableResponse>} */
  3295. Protocol.LayerTreeAgent.prototype.invoke_disable = function(obj) {};
  3296. /**
  3297. * @return {!Promise<undefined>}
  3298. */
  3299. Protocol.LayerTreeAgent.prototype.enable = function() {};
  3300. /** @typedef {Object|undefined} */
  3301. Protocol.LayerTreeAgent.EnableRequest;
  3302. /** @typedef {Object|undefined} */
  3303. Protocol.LayerTreeAgent.EnableResponse;
  3304. /**
  3305. * @param {!Protocol.LayerTreeAgent.EnableRequest} obj
  3306. * @return {!Promise<!Protocol.LayerTreeAgent.EnableResponse>} */
  3307. Protocol.LayerTreeAgent.prototype.invoke_enable = function(obj) {};
  3308. /**
  3309. * @param {!Array<Protocol.LayerTree.PictureTile>} tiles
  3310. * @return {!Promise<?Protocol.LayerTree.SnapshotId>}
  3311. */
  3312. Protocol.LayerTreeAgent.prototype.loadSnapshot = function(tiles) {};
  3313. /** @typedef {!{tiles: !Array<Protocol.LayerTree.PictureTile>}} */
  3314. Protocol.LayerTreeAgent.LoadSnapshotRequest;
  3315. /** @typedef {!{snapshotId: Protocol.LayerTree.SnapshotId}} */
  3316. Protocol.LayerTreeAgent.LoadSnapshotResponse;
  3317. /**
  3318. * @param {!Protocol.LayerTreeAgent.LoadSnapshotRequest} obj
  3319. * @return {!Promise<!Protocol.LayerTreeAgent.LoadSnapshotResponse>} */
  3320. Protocol.LayerTreeAgent.prototype.invoke_loadSnapshot = function(obj) {};
  3321. /**
  3322. * @param {Protocol.LayerTree.LayerId} layerId
  3323. * @return {!Promise<?Protocol.LayerTree.SnapshotId>}
  3324. */
  3325. Protocol.LayerTreeAgent.prototype.makeSnapshot = function(layerId) {};
  3326. /** @typedef {!{layerId: Protocol.LayerTree.LayerId}} */
  3327. Protocol.LayerTreeAgent.MakeSnapshotRequest;
  3328. /** @typedef {!{snapshotId: Protocol.LayerTree.SnapshotId}} */
  3329. Protocol.LayerTreeAgent.MakeSnapshotResponse;
  3330. /**
  3331. * @param {!Protocol.LayerTreeAgent.MakeSnapshotRequest} obj
  3332. * @return {!Promise<!Protocol.LayerTreeAgent.MakeSnapshotResponse>} */
  3333. Protocol.LayerTreeAgent.prototype.invoke_makeSnapshot = function(obj) {};
  3334. /**
  3335. * @param {Protocol.LayerTree.SnapshotId} snapshotId
  3336. * @param {number=} opt_minRepeatCount
  3337. * @param {number=} opt_minDuration
  3338. * @param {Protocol.DOM.Rect=} opt_clipRect
  3339. * @return {!Promise<?Array<Protocol.LayerTree.PaintProfile>>}
  3340. */
  3341. Protocol.LayerTreeAgent.prototype.profileSnapshot = function(snapshotId, opt_minRepeatCount, opt_minDuration, opt_clipRect) {};
  3342. /** @typedef {!{minRepeatCount: (number|undefined), snapshotId: Protocol.LayerTree.SnapshotId, clipRect: (Protocol.DOM.Rect|undefined), minDuration: (number|undefined)}} */
  3343. Protocol.LayerTreeAgent.ProfileSnapshotRequest;
  3344. /** @typedef {!{timings: !Array<Protocol.LayerTree.PaintProfile>}} */
  3345. Protocol.LayerTreeAgent.ProfileSnapshotResponse;
  3346. /**
  3347. * @param {!Protocol.LayerTreeAgent.ProfileSnapshotRequest} obj
  3348. * @return {!Promise<!Protocol.LayerTreeAgent.ProfileSnapshotResponse>} */
  3349. Protocol.LayerTreeAgent.prototype.invoke_profileSnapshot = function(obj) {};
  3350. /**
  3351. * @param {Protocol.LayerTree.SnapshotId} snapshotId
  3352. * @return {!Promise<undefined>}
  3353. */
  3354. Protocol.LayerTreeAgent.prototype.releaseSnapshot = function(snapshotId) {};
  3355. /** @typedef {!{snapshotId: Protocol.LayerTree.SnapshotId}} */
  3356. Protocol.LayerTreeAgent.ReleaseSnapshotRequest;
  3357. /** @typedef {Object|undefined} */
  3358. Protocol.LayerTreeAgent.ReleaseSnapshotResponse;
  3359. /**
  3360. * @param {!Protocol.LayerTreeAgent.ReleaseSnapshotRequest} obj
  3361. * @return {!Promise<!Protocol.LayerTreeAgent.ReleaseSnapshotResponse>} */
  3362. Protocol.LayerTreeAgent.prototype.invoke_releaseSnapshot = function(obj) {};
  3363. /**
  3364. * @param {Protocol.LayerTree.SnapshotId} snapshotId
  3365. * @param {number=} opt_fromStep
  3366. * @param {number=} opt_toStep
  3367. * @param {number=} opt_scale
  3368. * @return {!Promise<?string>}
  3369. */
  3370. Protocol.LayerTreeAgent.prototype.replaySnapshot = function(snapshotId, opt_fromStep, opt_toStep, opt_scale) {};
  3371. /** @typedef {!{snapshotId: Protocol.LayerTree.SnapshotId, scale: (number|undefined), fromStep: (number|undefined), toStep: (number|undefined)}} */
  3372. Protocol.LayerTreeAgent.ReplaySnapshotRequest;
  3373. /** @typedef {!{dataURL: string}} */
  3374. Protocol.LayerTreeAgent.ReplaySnapshotResponse;
  3375. /**
  3376. * @param {!Protocol.LayerTreeAgent.ReplaySnapshotRequest} obj
  3377. * @return {!Promise<!Protocol.LayerTreeAgent.ReplaySnapshotResponse>} */
  3378. Protocol.LayerTreeAgent.prototype.invoke_replaySnapshot = function(obj) {};
  3379. /**
  3380. * @param {Protocol.LayerTree.SnapshotId} snapshotId
  3381. * @return {!Promise<?Array<!Object>>}
  3382. */
  3383. Protocol.LayerTreeAgent.prototype.snapshotCommandLog = function(snapshotId) {};
  3384. /** @typedef {!{snapshotId: Protocol.LayerTree.SnapshotId}} */
  3385. Protocol.LayerTreeAgent.SnapshotCommandLogRequest;
  3386. /** @typedef {!{commandLog: !Array<!Object>}} */
  3387. Protocol.LayerTreeAgent.SnapshotCommandLogResponse;
  3388. /**
  3389. * @param {!Protocol.LayerTreeAgent.SnapshotCommandLogRequest} obj
  3390. * @return {!Promise<!Protocol.LayerTreeAgent.SnapshotCommandLogResponse>} */
  3391. Protocol.LayerTreeAgent.prototype.invoke_snapshotCommandLog = function(obj) {};
  3392. /** @typedef {string} */
  3393. Protocol.LayerTree.LayerId;
  3394. /** @typedef {string} */
  3395. Protocol.LayerTree.SnapshotId;
  3396. /** @enum {string} */
  3397. Protocol.LayerTree.ScrollRectType = {
  3398. RepaintsOnScroll: "RepaintsOnScroll",
  3399. TouchEventHandler: "TouchEventHandler",
  3400. WheelEventHandler: "WheelEventHandler"
  3401. };
  3402. /** @typedef {!{rect:(Protocol.DOM.Rect), type:(Protocol.LayerTree.ScrollRectType)}} */
  3403. Protocol.LayerTree.ScrollRect;
  3404. /** @typedef {!{stickyBoxRect:(Protocol.DOM.Rect), containingBlockRect:(Protocol.DOM.Rect), nearestLayerShiftingStickyBox:(Protocol.LayerTree.LayerId|undefined), nearestLayerShiftingContainingBlock:(Protocol.LayerTree.LayerId|undefined)}} */
  3405. Protocol.LayerTree.StickyPositionConstraint;
  3406. /** @typedef {!{x:(number), y:(number), picture:(string)}} */
  3407. Protocol.LayerTree.PictureTile;
  3408. /** @typedef {!{layerId:(Protocol.LayerTree.LayerId), parentLayerId:(Protocol.LayerTree.LayerId|undefined), backendNodeId:(Protocol.DOM.BackendNodeId|undefined), offsetX:(number), offsetY:(number), width:(number), height:(number), transform:(!Array<number>|undefined), anchorX:(number|undefined), anchorY:(number|undefined), anchorZ:(number|undefined), paintCount:(number), drawsContent:(boolean), invisible:(boolean|undefined), scrollRects:(!Array<Protocol.LayerTree.ScrollRect>|undefined), stickyPositionConstraint:(Protocol.LayerTree.StickyPositionConstraint|undefined)}} */
  3409. Protocol.LayerTree.Layer;
  3410. /** @typedef {!Array<!number>} */
  3411. Protocol.LayerTree.PaintProfile;
  3412. /** @interface */
  3413. Protocol.LayerTreeDispatcher = function() {};
  3414. /**
  3415. * @param {Protocol.LayerTree.LayerId} layerId
  3416. * @param {Protocol.DOM.Rect} clip
  3417. */
  3418. Protocol.LayerTreeDispatcher.prototype.layerPainted = function(layerId, clip) {};
  3419. /**
  3420. * @param {!Array<Protocol.LayerTree.Layer>=} opt_layers
  3421. */
  3422. Protocol.LayerTreeDispatcher.prototype.layerTreeDidChange = function(opt_layers) {};
  3423. Protocol.Log = {};
  3424. /**
  3425. * @constructor
  3426. */
  3427. Protocol.LogAgent = function(){};
  3428. /**
  3429. * @return {!Promise<undefined>}
  3430. */
  3431. Protocol.LogAgent.prototype.clear = function() {};
  3432. /** @typedef {Object|undefined} */
  3433. Protocol.LogAgent.ClearRequest;
  3434. /** @typedef {Object|undefined} */
  3435. Protocol.LogAgent.ClearResponse;
  3436. /**
  3437. * @param {!Protocol.LogAgent.ClearRequest} obj
  3438. * @return {!Promise<!Protocol.LogAgent.ClearResponse>} */
  3439. Protocol.LogAgent.prototype.invoke_clear = function(obj) {};
  3440. /**
  3441. * @return {!Promise<undefined>}
  3442. */
  3443. Protocol.LogAgent.prototype.disable = function() {};
  3444. /** @typedef {Object|undefined} */
  3445. Protocol.LogAgent.DisableRequest;
  3446. /** @typedef {Object|undefined} */
  3447. Protocol.LogAgent.DisableResponse;
  3448. /**
  3449. * @param {!Protocol.LogAgent.DisableRequest} obj
  3450. * @return {!Promise<!Protocol.LogAgent.DisableResponse>} */
  3451. Protocol.LogAgent.prototype.invoke_disable = function(obj) {};
  3452. /**
  3453. * @return {!Promise<undefined>}
  3454. */
  3455. Protocol.LogAgent.prototype.enable = function() {};
  3456. /** @typedef {Object|undefined} */
  3457. Protocol.LogAgent.EnableRequest;
  3458. /** @typedef {Object|undefined} */
  3459. Protocol.LogAgent.EnableResponse;
  3460. /**
  3461. * @param {!Protocol.LogAgent.EnableRequest} obj
  3462. * @return {!Promise<!Protocol.LogAgent.EnableResponse>} */
  3463. Protocol.LogAgent.prototype.invoke_enable = function(obj) {};
  3464. /**
  3465. * @param {!Array<Protocol.Log.ViolationSetting>} config
  3466. * @return {!Promise<undefined>}
  3467. */
  3468. Protocol.LogAgent.prototype.startViolationsReport = function(config) {};
  3469. /** @typedef {!{config: !Array<Protocol.Log.ViolationSetting>}} */
  3470. Protocol.LogAgent.StartViolationsReportRequest;
  3471. /** @typedef {Object|undefined} */
  3472. Protocol.LogAgent.StartViolationsReportResponse;
  3473. /**
  3474. * @param {!Protocol.LogAgent.StartViolationsReportRequest} obj
  3475. * @return {!Promise<!Protocol.LogAgent.StartViolationsReportResponse>} */
  3476. Protocol.LogAgent.prototype.invoke_startViolationsReport = function(obj) {};
  3477. /**
  3478. * @return {!Promise<undefined>}
  3479. */
  3480. Protocol.LogAgent.prototype.stopViolationsReport = function() {};
  3481. /** @typedef {Object|undefined} */
  3482. Protocol.LogAgent.StopViolationsReportRequest;
  3483. /** @typedef {Object|undefined} */
  3484. Protocol.LogAgent.StopViolationsReportResponse;
  3485. /**
  3486. * @param {!Protocol.LogAgent.StopViolationsReportRequest} obj
  3487. * @return {!Promise<!Protocol.LogAgent.StopViolationsReportResponse>} */
  3488. Protocol.LogAgent.prototype.invoke_stopViolationsReport = function(obj) {};
  3489. /** @enum {string} */
  3490. Protocol.Log.LogEntrySource = {
  3491. XML: "xml",
  3492. Javascript: "javascript",
  3493. Network: "network",
  3494. Storage: "storage",
  3495. Appcache: "appcache",
  3496. Rendering: "rendering",
  3497. Security: "security",
  3498. Deprecation: "deprecation",
  3499. Worker: "worker",
  3500. Violation: "violation",
  3501. Intervention: "intervention",
  3502. Recommendation: "recommendation",
  3503. Other: "other"
  3504. };
  3505. /** @enum {string} */
  3506. Protocol.Log.LogEntryLevel = {
  3507. Verbose: "verbose",
  3508. Info: "info",
  3509. Warning: "warning",
  3510. Error: "error"
  3511. };
  3512. /** @typedef {!{source:(Protocol.Log.LogEntrySource), level:(Protocol.Log.LogEntryLevel), text:(string), timestamp:(Protocol.Runtime.Timestamp), url:(string|undefined), lineNumber:(number|undefined), stackTrace:(Protocol.Runtime.StackTrace|undefined), networkRequestId:(Protocol.Network.RequestId|undefined), workerId:(string|undefined), args:(!Array<Protocol.Runtime.RemoteObject>|undefined)}} */
  3513. Protocol.Log.LogEntry;
  3514. /** @enum {string} */
  3515. Protocol.Log.ViolationSettingName = {
  3516. LongTask: "longTask",
  3517. LongLayout: "longLayout",
  3518. BlockedEvent: "blockedEvent",
  3519. BlockedParser: "blockedParser",
  3520. DiscouragedAPIUse: "discouragedAPIUse",
  3521. Handler: "handler",
  3522. RecurringHandler: "recurringHandler"
  3523. };
  3524. /** @typedef {!{name:(Protocol.Log.ViolationSettingName), threshold:(number)}} */
  3525. Protocol.Log.ViolationSetting;
  3526. /** @interface */
  3527. Protocol.LogDispatcher = function() {};
  3528. /**
  3529. * @param {Protocol.Log.LogEntry} entry
  3530. */
  3531. Protocol.LogDispatcher.prototype.entryAdded = function(entry) {};
  3532. Protocol.Memory = {};
  3533. /**
  3534. * @constructor
  3535. */
  3536. Protocol.MemoryAgent = function(){};
  3537. /**
  3538. * @return {!Promise<?number>}
  3539. */
  3540. Protocol.MemoryAgent.prototype.getDOMCounters = function() {};
  3541. /** @typedef {Object|undefined} */
  3542. Protocol.MemoryAgent.GetDOMCountersRequest;
  3543. /** @typedef {!{nodes: number, documents: number, jsEventListeners: number}} */
  3544. Protocol.MemoryAgent.GetDOMCountersResponse;
  3545. /**
  3546. * @param {!Protocol.MemoryAgent.GetDOMCountersRequest} obj
  3547. * @return {!Promise<!Protocol.MemoryAgent.GetDOMCountersResponse>} */
  3548. Protocol.MemoryAgent.prototype.invoke_getDOMCounters = function(obj) {};
  3549. /**
  3550. * @return {!Promise<undefined>}
  3551. */
  3552. Protocol.MemoryAgent.prototype.prepareForLeakDetection = function() {};
  3553. /** @typedef {Object|undefined} */
  3554. Protocol.MemoryAgent.PrepareForLeakDetectionRequest;
  3555. /** @typedef {Object|undefined} */
  3556. Protocol.MemoryAgent.PrepareForLeakDetectionResponse;
  3557. /**
  3558. * @param {!Protocol.MemoryAgent.PrepareForLeakDetectionRequest} obj
  3559. * @return {!Promise<!Protocol.MemoryAgent.PrepareForLeakDetectionResponse>} */
  3560. Protocol.MemoryAgent.prototype.invoke_prepareForLeakDetection = function(obj) {};
  3561. /**
  3562. * @return {!Promise<undefined>}
  3563. */
  3564. Protocol.MemoryAgent.prototype.forciblyPurgeJavaScriptMemory = function() {};
  3565. /** @typedef {Object|undefined} */
  3566. Protocol.MemoryAgent.ForciblyPurgeJavaScriptMemoryRequest;
  3567. /** @typedef {Object|undefined} */
  3568. Protocol.MemoryAgent.ForciblyPurgeJavaScriptMemoryResponse;
  3569. /**
  3570. * @param {!Protocol.MemoryAgent.ForciblyPurgeJavaScriptMemoryRequest} obj
  3571. * @return {!Promise<!Protocol.MemoryAgent.ForciblyPurgeJavaScriptMemoryResponse>} */
  3572. Protocol.MemoryAgent.prototype.invoke_forciblyPurgeJavaScriptMemory = function(obj) {};
  3573. /**
  3574. * @param {boolean} suppressed
  3575. * @return {!Promise<undefined>}
  3576. */
  3577. Protocol.MemoryAgent.prototype.setPressureNotificationsSuppressed = function(suppressed) {};
  3578. /** @typedef {!{suppressed: boolean}} */
  3579. Protocol.MemoryAgent.SetPressureNotificationsSuppressedRequest;
  3580. /** @typedef {Object|undefined} */
  3581. Protocol.MemoryAgent.SetPressureNotificationsSuppressedResponse;
  3582. /**
  3583. * @param {!Protocol.MemoryAgent.SetPressureNotificationsSuppressedRequest} obj
  3584. * @return {!Promise<!Protocol.MemoryAgent.SetPressureNotificationsSuppressedResponse>} */
  3585. Protocol.MemoryAgent.prototype.invoke_setPressureNotificationsSuppressed = function(obj) {};
  3586. /**
  3587. * @param {Protocol.Memory.PressureLevel} level
  3588. * @return {!Promise<undefined>}
  3589. */
  3590. Protocol.MemoryAgent.prototype.simulatePressureNotification = function(level) {};
  3591. /** @typedef {!{level: Protocol.Memory.PressureLevel}} */
  3592. Protocol.MemoryAgent.SimulatePressureNotificationRequest;
  3593. /** @typedef {Object|undefined} */
  3594. Protocol.MemoryAgent.SimulatePressureNotificationResponse;
  3595. /**
  3596. * @param {!Protocol.MemoryAgent.SimulatePressureNotificationRequest} obj
  3597. * @return {!Promise<!Protocol.MemoryAgent.SimulatePressureNotificationResponse>} */
  3598. Protocol.MemoryAgent.prototype.invoke_simulatePressureNotification = function(obj) {};
  3599. /**
  3600. * @param {number=} opt_samplingInterval
  3601. * @param {boolean=} opt_suppressRandomness
  3602. * @return {!Promise<undefined>}
  3603. */
  3604. Protocol.MemoryAgent.prototype.startSampling = function(opt_samplingInterval, opt_suppressRandomness) {};
  3605. /** @typedef {!{samplingInterval: (number|undefined), suppressRandomness: (boolean|undefined)}} */
  3606. Protocol.MemoryAgent.StartSamplingRequest;
  3607. /** @typedef {Object|undefined} */
  3608. Protocol.MemoryAgent.StartSamplingResponse;
  3609. /**
  3610. * @param {!Protocol.MemoryAgent.StartSamplingRequest} obj
  3611. * @return {!Promise<!Protocol.MemoryAgent.StartSamplingResponse>} */
  3612. Protocol.MemoryAgent.prototype.invoke_startSampling = function(obj) {};
  3613. /**
  3614. * @return {!Promise<undefined>}
  3615. */
  3616. Protocol.MemoryAgent.prototype.stopSampling = function() {};
  3617. /** @typedef {Object|undefined} */
  3618. Protocol.MemoryAgent.StopSamplingRequest;
  3619. /** @typedef {Object|undefined} */
  3620. Protocol.MemoryAgent.StopSamplingResponse;
  3621. /**
  3622. * @param {!Protocol.MemoryAgent.StopSamplingRequest} obj
  3623. * @return {!Promise<!Protocol.MemoryAgent.StopSamplingResponse>} */
  3624. Protocol.MemoryAgent.prototype.invoke_stopSampling = function(obj) {};
  3625. /**
  3626. * @return {!Promise<?Protocol.Memory.SamplingProfile>}
  3627. */
  3628. Protocol.MemoryAgent.prototype.getAllTimeSamplingProfile = function() {};
  3629. /** @typedef {Object|undefined} */
  3630. Protocol.MemoryAgent.GetAllTimeSamplingProfileRequest;
  3631. /** @typedef {!{profile: Protocol.Memory.SamplingProfile}} */
  3632. Protocol.MemoryAgent.GetAllTimeSamplingProfileResponse;
  3633. /**
  3634. * @param {!Protocol.MemoryAgent.GetAllTimeSamplingProfileRequest} obj
  3635. * @return {!Promise<!Protocol.MemoryAgent.GetAllTimeSamplingProfileResponse>} */
  3636. Protocol.MemoryAgent.prototype.invoke_getAllTimeSamplingProfile = function(obj) {};
  3637. /**
  3638. * @return {!Promise<?Protocol.Memory.SamplingProfile>}
  3639. */
  3640. Protocol.MemoryAgent.prototype.getBrowserSamplingProfile = function() {};
  3641. /** @typedef {Object|undefined} */
  3642. Protocol.MemoryAgent.GetBrowserSamplingProfileRequest;
  3643. /** @typedef {!{profile: Protocol.Memory.SamplingProfile}} */
  3644. Protocol.MemoryAgent.GetBrowserSamplingProfileResponse;
  3645. /**
  3646. * @param {!Protocol.MemoryAgent.GetBrowserSamplingProfileRequest} obj
  3647. * @return {!Promise<!Protocol.MemoryAgent.GetBrowserSamplingProfileResponse>} */
  3648. Protocol.MemoryAgent.prototype.invoke_getBrowserSamplingProfile = function(obj) {};
  3649. /**
  3650. * @return {!Promise<?Protocol.Memory.SamplingProfile>}
  3651. */
  3652. Protocol.MemoryAgent.prototype.getSamplingProfile = function() {};
  3653. /** @typedef {Object|undefined} */
  3654. Protocol.MemoryAgent.GetSamplingProfileRequest;
  3655. /** @typedef {!{profile: Protocol.Memory.SamplingProfile}} */
  3656. Protocol.MemoryAgent.GetSamplingProfileResponse;
  3657. /**
  3658. * @param {!Protocol.MemoryAgent.GetSamplingProfileRequest} obj
  3659. * @return {!Promise<!Protocol.MemoryAgent.GetSamplingProfileResponse>} */
  3660. Protocol.MemoryAgent.prototype.invoke_getSamplingProfile = function(obj) {};
  3661. /** @enum {string} */
  3662. Protocol.Memory.PressureLevel = {
  3663. Moderate: "moderate",
  3664. Critical: "critical"
  3665. };
  3666. /** @typedef {!{size:(number), total:(number), stack:(!Array<string>)}} */
  3667. Protocol.Memory.SamplingProfileNode;
  3668. /** @typedef {!{samples:(!Array<Protocol.Memory.SamplingProfileNode>), modules:(!Array<Protocol.Memory.Module>)}} */
  3669. Protocol.Memory.SamplingProfile;
  3670. /** @typedef {!{name:(string), uuid:(string), baseAddress:(string), size:(number)}} */
  3671. Protocol.Memory.Module;
  3672. /** @interface */
  3673. Protocol.MemoryDispatcher = function() {};
  3674. Protocol.Network = {};
  3675. /**
  3676. * @constructor
  3677. */
  3678. Protocol.NetworkAgent = function(){};
  3679. /**
  3680. * @return {!Promise<?boolean>}
  3681. */
  3682. Protocol.NetworkAgent.prototype.canClearBrowserCache = function() {};
  3683. /** @typedef {Object|undefined} */
  3684. Protocol.NetworkAgent.CanClearBrowserCacheRequest;
  3685. /** @typedef {!{result: boolean}} */
  3686. Protocol.NetworkAgent.CanClearBrowserCacheResponse;
  3687. /**
  3688. * @param {!Protocol.NetworkAgent.CanClearBrowserCacheRequest} obj
  3689. * @return {!Promise<!Protocol.NetworkAgent.CanClearBrowserCacheResponse>} */
  3690. Protocol.NetworkAgent.prototype.invoke_canClearBrowserCache = function(obj) {};
  3691. /**
  3692. * @return {!Promise<?boolean>}
  3693. */
  3694. Protocol.NetworkAgent.prototype.canClearBrowserCookies = function() {};
  3695. /** @typedef {Object|undefined} */
  3696. Protocol.NetworkAgent.CanClearBrowserCookiesRequest;
  3697. /** @typedef {!{result: boolean}} */
  3698. Protocol.NetworkAgent.CanClearBrowserCookiesResponse;
  3699. /**
  3700. * @param {!Protocol.NetworkAgent.CanClearBrowserCookiesRequest} obj
  3701. * @return {!Promise<!Protocol.NetworkAgent.CanClearBrowserCookiesResponse>} */
  3702. Protocol.NetworkAgent.prototype.invoke_canClearBrowserCookies = function(obj) {};
  3703. /**
  3704. * @return {!Promise<?boolean>}
  3705. */
  3706. Protocol.NetworkAgent.prototype.canEmulateNetworkConditions = function() {};
  3707. /** @typedef {Object|undefined} */
  3708. Protocol.NetworkAgent.CanEmulateNetworkConditionsRequest;
  3709. /** @typedef {!{result: boolean}} */
  3710. Protocol.NetworkAgent.CanEmulateNetworkConditionsResponse;
  3711. /**
  3712. * @param {!Protocol.NetworkAgent.CanEmulateNetworkConditionsRequest} obj
  3713. * @return {!Promise<!Protocol.NetworkAgent.CanEmulateNetworkConditionsResponse>} */
  3714. Protocol.NetworkAgent.prototype.invoke_canEmulateNetworkConditions = function(obj) {};
  3715. /**
  3716. * @return {!Promise<undefined>}
  3717. */
  3718. Protocol.NetworkAgent.prototype.clearBrowserCache = function() {};
  3719. /** @typedef {Object|undefined} */
  3720. Protocol.NetworkAgent.ClearBrowserCacheRequest;
  3721. /** @typedef {Object|undefined} */
  3722. Protocol.NetworkAgent.ClearBrowserCacheResponse;
  3723. /**
  3724. * @param {!Protocol.NetworkAgent.ClearBrowserCacheRequest} obj
  3725. * @return {!Promise<!Protocol.NetworkAgent.ClearBrowserCacheResponse>} */
  3726. Protocol.NetworkAgent.prototype.invoke_clearBrowserCache = function(obj) {};
  3727. /**
  3728. * @return {!Promise<undefined>}
  3729. */
  3730. Protocol.NetworkAgent.prototype.clearBrowserCookies = function() {};
  3731. /** @typedef {Object|undefined} */
  3732. Protocol.NetworkAgent.ClearBrowserCookiesRequest;
  3733. /** @typedef {Object|undefined} */
  3734. Protocol.NetworkAgent.ClearBrowserCookiesResponse;
  3735. /**
  3736. * @param {!Protocol.NetworkAgent.ClearBrowserCookiesRequest} obj
  3737. * @return {!Promise<!Protocol.NetworkAgent.ClearBrowserCookiesResponse>} */
  3738. Protocol.NetworkAgent.prototype.invoke_clearBrowserCookies = function(obj) {};
  3739. /**
  3740. * @param {Protocol.Network.InterceptionId} interceptionId
  3741. * @param {Protocol.Network.ErrorReason=} opt_errorReason
  3742. * @param {string=} opt_rawResponse
  3743. * @param {string=} opt_url
  3744. * @param {string=} opt_method
  3745. * @param {string=} opt_postData
  3746. * @param {Protocol.Network.Headers=} opt_headers
  3747. * @param {Protocol.Network.AuthChallengeResponse=} opt_authChallengeResponse
  3748. * @return {!Promise<undefined>}
  3749. */
  3750. Protocol.NetworkAgent.prototype.continueInterceptedRequest = function(interceptionId, opt_errorReason, opt_rawResponse, opt_url, opt_method, opt_postData, opt_headers, opt_authChallengeResponse) {};
  3751. /** @typedef {!{postData: (string|undefined), headers: (Protocol.Network.Headers|undefined), url: (string|undefined), authChallengeResponse: (Protocol.Network.AuthChallengeResponse|undefined), errorReason: (Protocol.Network.ErrorReason|undefined), interceptionId: Protocol.Network.InterceptionId, rawResponse: (string|undefined), method: (string|undefined)}} */
  3752. Protocol.NetworkAgent.ContinueInterceptedRequestRequest;
  3753. /** @typedef {Object|undefined} */
  3754. Protocol.NetworkAgent.ContinueInterceptedRequestResponse;
  3755. /**
  3756. * @param {!Protocol.NetworkAgent.ContinueInterceptedRequestRequest} obj
  3757. * @return {!Promise<!Protocol.NetworkAgent.ContinueInterceptedRequestResponse>} */
  3758. Protocol.NetworkAgent.prototype.invoke_continueInterceptedRequest = function(obj) {};
  3759. /**
  3760. * @param {string} name
  3761. * @param {string=} opt_url
  3762. * @param {string=} opt_domain
  3763. * @param {string=} opt_path
  3764. * @return {!Promise<undefined>}
  3765. */
  3766. Protocol.NetworkAgent.prototype.deleteCookies = function(name, opt_url, opt_domain, opt_path) {};
  3767. /** @typedef {!{url: (string|undefined), path: (string|undefined), domain: (string|undefined), name: string}} */
  3768. Protocol.NetworkAgent.DeleteCookiesRequest;
  3769. /** @typedef {Object|undefined} */
  3770. Protocol.NetworkAgent.DeleteCookiesResponse;
  3771. /**
  3772. * @param {!Protocol.NetworkAgent.DeleteCookiesRequest} obj
  3773. * @return {!Promise<!Protocol.NetworkAgent.DeleteCookiesResponse>} */
  3774. Protocol.NetworkAgent.prototype.invoke_deleteCookies = function(obj) {};
  3775. /**
  3776. * @return {!Promise<undefined>}
  3777. */
  3778. Protocol.NetworkAgent.prototype.disable = function() {};
  3779. /** @typedef {Object|undefined} */
  3780. Protocol.NetworkAgent.DisableRequest;
  3781. /** @typedef {Object|undefined} */
  3782. Protocol.NetworkAgent.DisableResponse;
  3783. /**
  3784. * @param {!Protocol.NetworkAgent.DisableRequest} obj
  3785. * @return {!Promise<!Protocol.NetworkAgent.DisableResponse>} */
  3786. Protocol.NetworkAgent.prototype.invoke_disable = function(obj) {};
  3787. /**
  3788. * @param {boolean} offline
  3789. * @param {number} latency
  3790. * @param {number} downloadThroughput
  3791. * @param {number} uploadThroughput
  3792. * @param {Protocol.Network.ConnectionType=} opt_connectionType
  3793. * @return {!Promise<undefined>}
  3794. */
  3795. Protocol.NetworkAgent.prototype.emulateNetworkConditions = function(offline, latency, downloadThroughput, uploadThroughput, opt_connectionType) {};
  3796. /** @typedef {!{latency: number, offline: boolean, downloadThroughput: number, connectionType: (Protocol.Network.ConnectionType|undefined), uploadThroughput: number}} */
  3797. Protocol.NetworkAgent.EmulateNetworkConditionsRequest;
  3798. /** @typedef {Object|undefined} */
  3799. Protocol.NetworkAgent.EmulateNetworkConditionsResponse;
  3800. /**
  3801. * @param {!Protocol.NetworkAgent.EmulateNetworkConditionsRequest} obj
  3802. * @return {!Promise<!Protocol.NetworkAgent.EmulateNetworkConditionsResponse>} */
  3803. Protocol.NetworkAgent.prototype.invoke_emulateNetworkConditions = function(obj) {};
  3804. /**
  3805. * @param {number=} opt_maxTotalBufferSize
  3806. * @param {number=} opt_maxResourceBufferSize
  3807. * @param {number=} opt_maxPostDataSize
  3808. * @return {!Promise<undefined>}
  3809. */
  3810. Protocol.NetworkAgent.prototype.enable = function(opt_maxTotalBufferSize, opt_maxResourceBufferSize, opt_maxPostDataSize) {};
  3811. /** @typedef {!{maxTotalBufferSize: (number|undefined), maxPostDataSize: (number|undefined), maxResourceBufferSize: (number|undefined)}} */
  3812. Protocol.NetworkAgent.EnableRequest;
  3813. /** @typedef {Object|undefined} */
  3814. Protocol.NetworkAgent.EnableResponse;
  3815. /**
  3816. * @param {!Protocol.NetworkAgent.EnableRequest} obj
  3817. * @return {!Promise<!Protocol.NetworkAgent.EnableResponse>} */
  3818. Protocol.NetworkAgent.prototype.invoke_enable = function(obj) {};
  3819. /**
  3820. * @return {!Promise<?Array<Protocol.Network.Cookie>>}
  3821. */
  3822. Protocol.NetworkAgent.prototype.getAllCookies = function() {};
  3823. /** @typedef {Object|undefined} */
  3824. Protocol.NetworkAgent.GetAllCookiesRequest;
  3825. /** @typedef {!{cookies: !Array<Protocol.Network.Cookie>}} */
  3826. Protocol.NetworkAgent.GetAllCookiesResponse;
  3827. /**
  3828. * @param {!Protocol.NetworkAgent.GetAllCookiesRequest} obj
  3829. * @return {!Promise<!Protocol.NetworkAgent.GetAllCookiesResponse>} */
  3830. Protocol.NetworkAgent.prototype.invoke_getAllCookies = function(obj) {};
  3831. /**
  3832. * @param {string} origin
  3833. * @return {!Promise<?Array<string>>}
  3834. */
  3835. Protocol.NetworkAgent.prototype.getCertificate = function(origin) {};
  3836. /** @typedef {!{origin: string}} */
  3837. Protocol.NetworkAgent.GetCertificateRequest;
  3838. /** @typedef {!{tableNames: !Array<string>}} */
  3839. Protocol.NetworkAgent.GetCertificateResponse;
  3840. /**
  3841. * @param {!Protocol.NetworkAgent.GetCertificateRequest} obj
  3842. * @return {!Promise<!Protocol.NetworkAgent.GetCertificateResponse>} */
  3843. Protocol.NetworkAgent.prototype.invoke_getCertificate = function(obj) {};
  3844. /**
  3845. * @param {!Array<string>=} opt_urls
  3846. * @return {!Promise<?Array<Protocol.Network.Cookie>>}
  3847. */
  3848. Protocol.NetworkAgent.prototype.getCookies = function(opt_urls) {};
  3849. /** @typedef {!{urls: (!Array<string>|undefined)}} */
  3850. Protocol.NetworkAgent.GetCookiesRequest;
  3851. /** @typedef {!{cookies: !Array<Protocol.Network.Cookie>}} */
  3852. Protocol.NetworkAgent.GetCookiesResponse;
  3853. /**
  3854. * @param {!Protocol.NetworkAgent.GetCookiesRequest} obj
  3855. * @return {!Promise<!Protocol.NetworkAgent.GetCookiesResponse>} */
  3856. Protocol.NetworkAgent.prototype.invoke_getCookies = function(obj) {};
  3857. /**
  3858. * @param {Protocol.Network.RequestId} requestId
  3859. * @return {!Promise<?string>}
  3860. */
  3861. Protocol.NetworkAgent.prototype.getResponseBody = function(requestId) {};
  3862. /** @typedef {!{requestId: Protocol.Network.RequestId}} */
  3863. Protocol.NetworkAgent.GetResponseBodyRequest;
  3864. /** @typedef {!{body: string, base64Encoded: boolean}} */
  3865. Protocol.NetworkAgent.GetResponseBodyResponse;
  3866. /**
  3867. * @param {!Protocol.NetworkAgent.GetResponseBodyRequest} obj
  3868. * @return {!Promise<!Protocol.NetworkAgent.GetResponseBodyResponse>} */
  3869. Protocol.NetworkAgent.prototype.invoke_getResponseBody = function(obj) {};
  3870. /**
  3871. * @param {Protocol.Network.RequestId} requestId
  3872. * @return {!Promise<?string>}
  3873. */
  3874. Protocol.NetworkAgent.prototype.getRequestPostData = function(requestId) {};
  3875. /** @typedef {!{requestId: Protocol.Network.RequestId}} */
  3876. Protocol.NetworkAgent.GetRequestPostDataRequest;
  3877. /** @typedef {!{postData: string}} */
  3878. Protocol.NetworkAgent.GetRequestPostDataResponse;
  3879. /**
  3880. * @param {!Protocol.NetworkAgent.GetRequestPostDataRequest} obj
  3881. * @return {!Promise<!Protocol.NetworkAgent.GetRequestPostDataResponse>} */
  3882. Protocol.NetworkAgent.prototype.invoke_getRequestPostData = function(obj) {};
  3883. /**
  3884. * @param {Protocol.Network.InterceptionId} interceptionId
  3885. * @return {!Promise<?string>}
  3886. */
  3887. Protocol.NetworkAgent.prototype.getResponseBodyForInterception = function(interceptionId) {};
  3888. /** @typedef {!{interceptionId: Protocol.Network.InterceptionId}} */
  3889. Protocol.NetworkAgent.GetResponseBodyForInterceptionRequest;
  3890. /** @typedef {!{body: string, base64Encoded: boolean}} */
  3891. Protocol.NetworkAgent.GetResponseBodyForInterceptionResponse;
  3892. /**
  3893. * @param {!Protocol.NetworkAgent.GetResponseBodyForInterceptionRequest} obj
  3894. * @return {!Promise<!Protocol.NetworkAgent.GetResponseBodyForInterceptionResponse>} */
  3895. Protocol.NetworkAgent.prototype.invoke_getResponseBodyForInterception = function(obj) {};
  3896. /**
  3897. * @param {Protocol.Network.InterceptionId} interceptionId
  3898. * @return {!Promise<?Protocol.IO.StreamHandle>}
  3899. */
  3900. Protocol.NetworkAgent.prototype.takeResponseBodyForInterceptionAsStream = function(interceptionId) {};
  3901. /** @typedef {!{interceptionId: Protocol.Network.InterceptionId}} */
  3902. Protocol.NetworkAgent.TakeResponseBodyForInterceptionAsStreamRequest;
  3903. /** @typedef {!{stream: Protocol.IO.StreamHandle}} */
  3904. Protocol.NetworkAgent.TakeResponseBodyForInterceptionAsStreamResponse;
  3905. /**
  3906. * @param {!Protocol.NetworkAgent.TakeResponseBodyForInterceptionAsStreamRequest} obj
  3907. * @return {!Promise<!Protocol.NetworkAgent.TakeResponseBodyForInterceptionAsStreamResponse>} */
  3908. Protocol.NetworkAgent.prototype.invoke_takeResponseBodyForInterceptionAsStream = function(obj) {};
  3909. /**
  3910. * @param {Protocol.Network.RequestId} requestId
  3911. * @return {!Promise<undefined>}
  3912. */
  3913. Protocol.NetworkAgent.prototype.replayXHR = function(requestId) {};
  3914. /** @typedef {!{requestId: Protocol.Network.RequestId}} */
  3915. Protocol.NetworkAgent.ReplayXHRRequest;
  3916. /** @typedef {Object|undefined} */
  3917. Protocol.NetworkAgent.ReplayXHRResponse;
  3918. /**
  3919. * @param {!Protocol.NetworkAgent.ReplayXHRRequest} obj
  3920. * @return {!Promise<!Protocol.NetworkAgent.ReplayXHRResponse>} */
  3921. Protocol.NetworkAgent.prototype.invoke_replayXHR = function(obj) {};
  3922. /**
  3923. * @param {Protocol.Network.RequestId} requestId
  3924. * @param {string} query
  3925. * @param {boolean=} opt_caseSensitive
  3926. * @param {boolean=} opt_isRegex
  3927. * @return {!Promise<?Array<Protocol.Debugger.SearchMatch>>}
  3928. */
  3929. Protocol.NetworkAgent.prototype.searchInResponseBody = function(requestId, query, opt_caseSensitive, opt_isRegex) {};
  3930. /** @typedef {!{query: string, isRegex: (boolean|undefined), requestId: Protocol.Network.RequestId, caseSensitive: (boolean|undefined)}} */
  3931. Protocol.NetworkAgent.SearchInResponseBodyRequest;
  3932. /** @typedef {!{result: !Array<Protocol.Debugger.SearchMatch>}} */
  3933. Protocol.NetworkAgent.SearchInResponseBodyResponse;
  3934. /**
  3935. * @param {!Protocol.NetworkAgent.SearchInResponseBodyRequest} obj
  3936. * @return {!Promise<!Protocol.NetworkAgent.SearchInResponseBodyResponse>} */
  3937. Protocol.NetworkAgent.prototype.invoke_searchInResponseBody = function(obj) {};
  3938. /**
  3939. * @param {!Array<string>} urls
  3940. * @return {!Promise<undefined>}
  3941. */
  3942. Protocol.NetworkAgent.prototype.setBlockedURLs = function(urls) {};
  3943. /** @typedef {!{urls: !Array<string>}} */
  3944. Protocol.NetworkAgent.SetBlockedURLsRequest;
  3945. /** @typedef {Object|undefined} */
  3946. Protocol.NetworkAgent.SetBlockedURLsResponse;
  3947. /**
  3948. * @param {!Protocol.NetworkAgent.SetBlockedURLsRequest} obj
  3949. * @return {!Promise<!Protocol.NetworkAgent.SetBlockedURLsResponse>} */
  3950. Protocol.NetworkAgent.prototype.invoke_setBlockedURLs = function(obj) {};
  3951. /**
  3952. * @param {boolean} bypass
  3953. * @return {!Promise<undefined>}
  3954. */
  3955. Protocol.NetworkAgent.prototype.setBypassServiceWorker = function(bypass) {};
  3956. /** @typedef {!{bypass: boolean}} */
  3957. Protocol.NetworkAgent.SetBypassServiceWorkerRequest;
  3958. /** @typedef {Object|undefined} */
  3959. Protocol.NetworkAgent.SetBypassServiceWorkerResponse;
  3960. /**
  3961. * @param {!Protocol.NetworkAgent.SetBypassServiceWorkerRequest} obj
  3962. * @return {!Promise<!Protocol.NetworkAgent.SetBypassServiceWorkerResponse>} */
  3963. Protocol.NetworkAgent.prototype.invoke_setBypassServiceWorker = function(obj) {};
  3964. /**
  3965. * @param {boolean} cacheDisabled
  3966. * @return {!Promise<undefined>}
  3967. */
  3968. Protocol.NetworkAgent.prototype.setCacheDisabled = function(cacheDisabled) {};
  3969. /** @typedef {!{cacheDisabled: boolean}} */
  3970. Protocol.NetworkAgent.SetCacheDisabledRequest;
  3971. /** @typedef {Object|undefined} */
  3972. Protocol.NetworkAgent.SetCacheDisabledResponse;
  3973. /**
  3974. * @param {!Protocol.NetworkAgent.SetCacheDisabledRequest} obj
  3975. * @return {!Promise<!Protocol.NetworkAgent.SetCacheDisabledResponse>} */
  3976. Protocol.NetworkAgent.prototype.invoke_setCacheDisabled = function(obj) {};
  3977. /**
  3978. * @param {string} name
  3979. * @param {string} value
  3980. * @param {string=} opt_url
  3981. * @param {string=} opt_domain
  3982. * @param {string=} opt_path
  3983. * @param {boolean=} opt_secure
  3984. * @param {boolean=} opt_httpOnly
  3985. * @param {Protocol.Network.CookieSameSite=} opt_sameSite
  3986. * @param {Protocol.Network.TimeSinceEpoch=} opt_expires
  3987. * @return {!Promise<?boolean>}
  3988. */
  3989. Protocol.NetworkAgent.prototype.setCookie = function(name, value, opt_url, opt_domain, opt_path, opt_secure, opt_httpOnly, opt_sameSite, opt_expires) {};
  3990. /** @typedef {!{domain: (string|undefined), name: string, url: (string|undefined), expires: (Protocol.Network.TimeSinceEpoch|undefined), value: string, sameSite: (Protocol.Network.CookieSameSite|undefined), path: (string|undefined), httpOnly: (boolean|undefined), secure: (boolean|undefined)}} */
  3991. Protocol.NetworkAgent.SetCookieRequest;
  3992. /** @typedef {!{success: boolean}} */
  3993. Protocol.NetworkAgent.SetCookieResponse;
  3994. /**
  3995. * @param {!Protocol.NetworkAgent.SetCookieRequest} obj
  3996. * @return {!Promise<!Protocol.NetworkAgent.SetCookieResponse>} */
  3997. Protocol.NetworkAgent.prototype.invoke_setCookie = function(obj) {};
  3998. /**
  3999. * @param {!Array<Protocol.Network.CookieParam>} cookies
  4000. * @return {!Promise<undefined>}
  4001. */
  4002. Protocol.NetworkAgent.prototype.setCookies = function(cookies) {};
  4003. /** @typedef {!{cookies: !Array<Protocol.Network.CookieParam>}} */
  4004. Protocol.NetworkAgent.SetCookiesRequest;
  4005. /** @typedef {Object|undefined} */
  4006. Protocol.NetworkAgent.SetCookiesResponse;
  4007. /**
  4008. * @param {!Protocol.NetworkAgent.SetCookiesRequest} obj
  4009. * @return {!Promise<!Protocol.NetworkAgent.SetCookiesResponse>} */
  4010. Protocol.NetworkAgent.prototype.invoke_setCookies = function(obj) {};
  4011. /**
  4012. * @param {number} maxTotalSize
  4013. * @param {number} maxResourceSize
  4014. * @return {!Promise<undefined>}
  4015. */
  4016. Protocol.NetworkAgent.prototype.setDataSizeLimitsForTest = function(maxTotalSize, maxResourceSize) {};
  4017. /** @typedef {!{maxResourceSize: number, maxTotalSize: number}} */
  4018. Protocol.NetworkAgent.SetDataSizeLimitsForTestRequest;
  4019. /** @typedef {Object|undefined} */
  4020. Protocol.NetworkAgent.SetDataSizeLimitsForTestResponse;
  4021. /**
  4022. * @param {!Protocol.NetworkAgent.SetDataSizeLimitsForTestRequest} obj
  4023. * @return {!Promise<!Protocol.NetworkAgent.SetDataSizeLimitsForTestResponse>} */
  4024. Protocol.NetworkAgent.prototype.invoke_setDataSizeLimitsForTest = function(obj) {};
  4025. /**
  4026. * @param {Protocol.Network.Headers} headers
  4027. * @return {!Promise<undefined>}
  4028. */
  4029. Protocol.NetworkAgent.prototype.setExtraHTTPHeaders = function(headers) {};
  4030. /** @typedef {!{headers: Protocol.Network.Headers}} */
  4031. Protocol.NetworkAgent.SetExtraHTTPHeadersRequest;
  4032. /** @typedef {Object|undefined} */
  4033. Protocol.NetworkAgent.SetExtraHTTPHeadersResponse;
  4034. /**
  4035. * @param {!Protocol.NetworkAgent.SetExtraHTTPHeadersRequest} obj
  4036. * @return {!Promise<!Protocol.NetworkAgent.SetExtraHTTPHeadersResponse>} */
  4037. Protocol.NetworkAgent.prototype.invoke_setExtraHTTPHeaders = function(obj) {};
  4038. /**
  4039. * @param {!Array<Protocol.Network.RequestPattern>} patterns
  4040. * @return {!Promise<undefined>}
  4041. */
  4042. Protocol.NetworkAgent.prototype.setRequestInterception = function(patterns) {};
  4043. /** @typedef {!{patterns: !Array<Protocol.Network.RequestPattern>}} */
  4044. Protocol.NetworkAgent.SetRequestInterceptionRequest;
  4045. /** @typedef {Object|undefined} */
  4046. Protocol.NetworkAgent.SetRequestInterceptionResponse;
  4047. /**
  4048. * @param {!Protocol.NetworkAgent.SetRequestInterceptionRequest} obj
  4049. * @return {!Promise<!Protocol.NetworkAgent.SetRequestInterceptionResponse>} */
  4050. Protocol.NetworkAgent.prototype.invoke_setRequestInterception = function(obj) {};
  4051. /**
  4052. * @param {string} userAgent
  4053. * @param {string=} opt_acceptLanguage
  4054. * @param {string=} opt_platform
  4055. * @return {!Promise<undefined>}
  4056. */
  4057. Protocol.NetworkAgent.prototype.setUserAgentOverride = function(userAgent, opt_acceptLanguage, opt_platform) {};
  4058. /** @typedef {!{acceptLanguage: (string|undefined), userAgent: string, platform: (string|undefined)}} */
  4059. Protocol.NetworkAgent.SetUserAgentOverrideRequest;
  4060. /** @typedef {Object|undefined} */
  4061. Protocol.NetworkAgent.SetUserAgentOverrideResponse;
  4062. /**
  4063. * @param {!Protocol.NetworkAgent.SetUserAgentOverrideRequest} obj
  4064. * @return {!Promise<!Protocol.NetworkAgent.SetUserAgentOverrideResponse>} */
  4065. Protocol.NetworkAgent.prototype.invoke_setUserAgentOverride = function(obj) {};
  4066. /** @enum {string} */
  4067. Protocol.Network.ResourceType = {
  4068. Document: "Document",
  4069. Stylesheet: "Stylesheet",
  4070. Image: "Image",
  4071. Media: "Media",
  4072. Font: "Font",
  4073. Script: "Script",
  4074. TextTrack: "TextTrack",
  4075. XHR: "XHR",
  4076. Fetch: "Fetch",
  4077. EventSource: "EventSource",
  4078. WebSocket: "WebSocket",
  4079. Manifest: "Manifest",
  4080. SignedExchange: "SignedExchange",
  4081. Ping: "Ping",
  4082. CSPViolationReport: "CSPViolationReport",
  4083. Other: "Other"
  4084. };
  4085. /** @typedef {string} */
  4086. Protocol.Network.LoaderId;
  4087. /** @typedef {string} */
  4088. Protocol.Network.RequestId;
  4089. /** @typedef {string} */
  4090. Protocol.Network.InterceptionId;
  4091. /** @enum {string} */
  4092. Protocol.Network.ErrorReason = {
  4093. Failed: "Failed",
  4094. Aborted: "Aborted",
  4095. TimedOut: "TimedOut",
  4096. AccessDenied: "AccessDenied",
  4097. ConnectionClosed: "ConnectionClosed",
  4098. ConnectionReset: "ConnectionReset",
  4099. ConnectionRefused: "ConnectionRefused",
  4100. ConnectionAborted: "ConnectionAborted",
  4101. ConnectionFailed: "ConnectionFailed",
  4102. NameNotResolved: "NameNotResolved",
  4103. InternetDisconnected: "InternetDisconnected",
  4104. AddressUnreachable: "AddressUnreachable",
  4105. BlockedByClient: "BlockedByClient",
  4106. BlockedByResponse: "BlockedByResponse"
  4107. };
  4108. /** @typedef {number} */
  4109. Protocol.Network.TimeSinceEpoch;
  4110. /** @typedef {number} */
  4111. Protocol.Network.MonotonicTime;
  4112. /** @typedef {!Object} */
  4113. Protocol.Network.Headers;
  4114. /** @enum {string} */
  4115. Protocol.Network.ConnectionType = {
  4116. None: "none",
  4117. Cellular2g: "cellular2g",
  4118. Cellular3g: "cellular3g",
  4119. Cellular4g: "cellular4g",
  4120. Bluetooth: "bluetooth",
  4121. Ethernet: "ethernet",
  4122. Wifi: "wifi",
  4123. Wimax: "wimax",
  4124. Other: "other"
  4125. };
  4126. /** @enum {string} */
  4127. Protocol.Network.CookieSameSite = {
  4128. Strict: "Strict",
  4129. Lax: "Lax",
  4130. None: "None"
  4131. };
  4132. /** @typedef {!{requestTime:(number), proxyStart:(number), proxyEnd:(number), dnsStart:(number), dnsEnd:(number), connectStart:(number), connectEnd:(number), sslStart:(number), sslEnd:(number), workerStart:(number), workerReady:(number), sendStart:(number), sendEnd:(number), pushStart:(number), pushEnd:(number), receiveHeadersEnd:(number)}} */
  4133. Protocol.Network.ResourceTiming;
  4134. /** @enum {string} */
  4135. Protocol.Network.ResourcePriority = {
  4136. VeryLow: "VeryLow",
  4137. Low: "Low",
  4138. Medium: "Medium",
  4139. High: "High",
  4140. VeryHigh: "VeryHigh"
  4141. };
  4142. /** @enum {string} */
  4143. Protocol.Network.RequestReferrerPolicy = {
  4144. UnsafeUrl: "unsafe-url",
  4145. NoReferrerWhenDowngrade: "no-referrer-when-downgrade",
  4146. NoReferrer: "no-referrer",
  4147. Origin: "origin",
  4148. OriginWhenCrossOrigin: "origin-when-cross-origin",
  4149. SameOrigin: "same-origin",
  4150. StrictOrigin: "strict-origin",
  4151. StrictOriginWhenCrossOrigin: "strict-origin-when-cross-origin"
  4152. };
  4153. /** @typedef {!{url:(string), urlFragment:(string|undefined), method:(string), headers:(Protocol.Network.Headers), postData:(string|undefined), hasPostData:(boolean|undefined), mixedContentType:(Protocol.Security.MixedContentType|undefined), initialPriority:(Protocol.Network.ResourcePriority), referrerPolicy:(Protocol.Network.RequestReferrerPolicy), isLinkPreload:(boolean|undefined)}} */
  4154. Protocol.Network.Request;
  4155. /** @typedef {!{status:(string), origin:(string), logDescription:(string), logId:(string), timestamp:(Protocol.Network.TimeSinceEpoch), hashAlgorithm:(string), signatureAlgorithm:(string), signatureData:(string)}} */
  4156. Protocol.Network.SignedCertificateTimestamp;
  4157. /** @typedef {!{protocol:(string), keyExchange:(string), keyExchangeGroup:(string|undefined), cipher:(string), mac:(string|undefined), certificateId:(Protocol.Security.CertificateId), subjectName:(string), sanList:(!Array<string>), issuer:(string), validFrom:(Protocol.Network.TimeSinceEpoch), validTo:(Protocol.Network.TimeSinceEpoch), signedCertificateTimestampList:(!Array<Protocol.Network.SignedCertificateTimestamp>), certificateTransparencyCompliance:(Protocol.Network.CertificateTransparencyCompliance)}} */
  4158. Protocol.Network.SecurityDetails;
  4159. /** @enum {string} */
  4160. Protocol.Network.CertificateTransparencyCompliance = {
  4161. Unknown: "unknown",
  4162. NotCompliant: "not-compliant",
  4163. Compliant: "compliant"
  4164. };
  4165. /** @enum {string} */
  4166. Protocol.Network.BlockedReason = {
  4167. Other: "other",
  4168. Csp: "csp",
  4169. MixedContent: "mixed-content",
  4170. Origin: "origin",
  4171. Inspector: "inspector",
  4172. SubresourceFilter: "subresource-filter",
  4173. ContentType: "content-type",
  4174. CollapsedByClient: "collapsed-by-client"
  4175. };
  4176. /** @typedef {!{url:(string), status:(number), statusText:(string), headers:(Protocol.Network.Headers), headersText:(string|undefined), mimeType:(string), requestHeaders:(Protocol.Network.Headers|undefined), requestHeadersText:(string|undefined), connectionReused:(boolean), connectionId:(number), remoteIPAddress:(string|undefined), remotePort:(number|undefined), fromDiskCache:(boolean|undefined), fromServiceWorker:(boolean|undefined), fromPrefetchCache:(boolean|undefined), encodedDataLength:(number), timing:(Protocol.Network.ResourceTiming|undefined), protocol:(string|undefined), securityState:(Protocol.Security.SecurityState), securityDetails:(Protocol.Network.SecurityDetails|undefined)}} */
  4177. Protocol.Network.Response;
  4178. /** @typedef {!{headers:(Protocol.Network.Headers)}} */
  4179. Protocol.Network.WebSocketRequest;
  4180. /** @typedef {!{status:(number), statusText:(string), headers:(Protocol.Network.Headers), headersText:(string|undefined), requestHeaders:(Protocol.Network.Headers|undefined), requestHeadersText:(string|undefined)}} */
  4181. Protocol.Network.WebSocketResponse;
  4182. /** @typedef {!{opcode:(number), mask:(boolean), payloadData:(string)}} */
  4183. Protocol.Network.WebSocketFrame;
  4184. /** @typedef {!{url:(string), type:(Protocol.Network.ResourceType), response:(Protocol.Network.Response|undefined), bodySize:(number)}} */
  4185. Protocol.Network.CachedResource;
  4186. /** @enum {string} */
  4187. Protocol.Network.InitiatorType = {
  4188. Parser: "parser",
  4189. Script: "script",
  4190. Preload: "preload",
  4191. SignedExchange: "SignedExchange",
  4192. Other: "other"
  4193. };
  4194. /** @typedef {!{type:(Protocol.Network.InitiatorType), stack:(Protocol.Runtime.StackTrace|undefined), url:(string|undefined), lineNumber:(number|undefined)}} */
  4195. Protocol.Network.Initiator;
  4196. /** @typedef {!{name:(string), value:(string), domain:(string), path:(string), expires:(number), size:(number), httpOnly:(boolean), secure:(boolean), session:(boolean), sameSite:(Protocol.Network.CookieSameSite|undefined)}} */
  4197. Protocol.Network.Cookie;
  4198. /** @enum {string} */
  4199. Protocol.Network.SetCookieBlockedReason = {
  4200. SecureOnly: "SecureOnly",
  4201. SameSiteStrict: "SameSiteStrict",
  4202. SameSiteLax: "SameSiteLax",
  4203. SameSiteExtended: "SameSiteExtended",
  4204. SameSiteUnspecifiedTreatedAsLax: "SameSiteUnspecifiedTreatedAsLax",
  4205. SameSiteNoneInsecure: "SameSiteNoneInsecure",
  4206. UserPreferences: "UserPreferences",
  4207. SyntaxError: "SyntaxError",
  4208. SchemeNotSupported: "SchemeNotSupported",
  4209. OverwriteSecure: "OverwriteSecure",
  4210. InvalidDomain: "InvalidDomain",
  4211. InvalidPrefix: "InvalidPrefix",
  4212. UnknownError: "UnknownError"
  4213. };
  4214. /** @enum {string} */
  4215. Protocol.Network.CookieBlockedReason = {
  4216. SecureOnly: "SecureOnly",
  4217. NotOnPath: "NotOnPath",
  4218. DomainMismatch: "DomainMismatch",
  4219. SameSiteStrict: "SameSiteStrict",
  4220. SameSiteLax: "SameSiteLax",
  4221. SameSiteExtended: "SameSiteExtended",
  4222. SameSiteUnspecifiedTreatedAsLax: "SameSiteUnspecifiedTreatedAsLax",
  4223. SameSiteNoneInsecure: "SameSiteNoneInsecure",
  4224. UserPreferences: "UserPreferences",
  4225. UnknownError: "UnknownError"
  4226. };
  4227. /** @typedef {!{blockedReasons:(!Array<Protocol.Network.SetCookieBlockedReason>), cookieLine:(string), cookie:(Protocol.Network.Cookie|undefined)}} */
  4228. Protocol.Network.BlockedSetCookieWithReason;
  4229. /** @typedef {!{blockedReasons:(!Array<Protocol.Network.CookieBlockedReason>), cookie:(Protocol.Network.Cookie)}} */
  4230. Protocol.Network.BlockedCookieWithReason;
  4231. /** @typedef {!{name:(string), value:(string), url:(string|undefined), domain:(string|undefined), path:(string|undefined), secure:(boolean|undefined), httpOnly:(boolean|undefined), sameSite:(Protocol.Network.CookieSameSite|undefined), expires:(Protocol.Network.TimeSinceEpoch|undefined)}} */
  4232. Protocol.Network.CookieParam;
  4233. /** @enum {string} */
  4234. Protocol.Network.AuthChallengeSource = {
  4235. Server: "Server",
  4236. Proxy: "Proxy"
  4237. };
  4238. /** @typedef {!{source:(Protocol.Network.AuthChallengeSource|undefined), origin:(string), scheme:(string), realm:(string)}} */
  4239. Protocol.Network.AuthChallenge;
  4240. /** @enum {string} */
  4241. Protocol.Network.AuthChallengeResponseResponse = {
  4242. Default: "Default",
  4243. CancelAuth: "CancelAuth",
  4244. ProvideCredentials: "ProvideCredentials"
  4245. };
  4246. /** @typedef {!{response:(Protocol.Network.AuthChallengeResponseResponse), username:(string|undefined), password:(string|undefined)}} */
  4247. Protocol.Network.AuthChallengeResponse;
  4248. /** @enum {string} */
  4249. Protocol.Network.InterceptionStage = {
  4250. Request: "Request",
  4251. HeadersReceived: "HeadersReceived"
  4252. };
  4253. /** @typedef {!{urlPattern:(string|undefined), resourceType:(Protocol.Network.ResourceType|undefined), interceptionStage:(Protocol.Network.InterceptionStage|undefined)}} */
  4254. Protocol.Network.RequestPattern;
  4255. /** @typedef {!{label:(string), signature:(string), integrity:(string), certUrl:(string|undefined), certSha256:(string|undefined), validityUrl:(string), date:(number), expires:(number), certificates:(!Array<string>|undefined)}} */
  4256. Protocol.Network.SignedExchangeSignature;
  4257. /** @typedef {!{requestUrl:(string), responseCode:(number), responseHeaders:(Protocol.Network.Headers), signatures:(!Array<Protocol.Network.SignedExchangeSignature>), headerIntegrity:(string)}} */
  4258. Protocol.Network.SignedExchangeHeader;
  4259. /** @enum {string} */
  4260. Protocol.Network.SignedExchangeErrorField = {
  4261. SignatureSig: "signatureSig",
  4262. SignatureIntegrity: "signatureIntegrity",
  4263. SignatureCertUrl: "signatureCertUrl",
  4264. SignatureCertSha256: "signatureCertSha256",
  4265. SignatureValidityUrl: "signatureValidityUrl",
  4266. SignatureTimestamps: "signatureTimestamps"
  4267. };
  4268. /** @typedef {!{message:(string), signatureIndex:(number|undefined), errorField:(Protocol.Network.SignedExchangeErrorField|undefined)}} */
  4269. Protocol.Network.SignedExchangeError;
  4270. /** @typedef {!{outerResponse:(Protocol.Network.Response), header:(Protocol.Network.SignedExchangeHeader|undefined), securityDetails:(Protocol.Network.SecurityDetails|undefined), errors:(!Array<Protocol.Network.SignedExchangeError>|undefined)}} */
  4271. Protocol.Network.SignedExchangeInfo;
  4272. /** @interface */
  4273. Protocol.NetworkDispatcher = function() {};
  4274. /**
  4275. * @param {Protocol.Network.RequestId} requestId
  4276. * @param {Protocol.Network.MonotonicTime} timestamp
  4277. * @param {number} dataLength
  4278. * @param {number} encodedDataLength
  4279. */
  4280. Protocol.NetworkDispatcher.prototype.dataReceived = function(requestId, timestamp, dataLength, encodedDataLength) {};
  4281. /**
  4282. * @param {Protocol.Network.RequestId} requestId
  4283. * @param {Protocol.Network.MonotonicTime} timestamp
  4284. * @param {string} eventName
  4285. * @param {string} eventId
  4286. * @param {string} data
  4287. */
  4288. Protocol.NetworkDispatcher.prototype.eventSourceMessageReceived = function(requestId, timestamp, eventName, eventId, data) {};
  4289. /**
  4290. * @param {Protocol.Network.RequestId} requestId
  4291. * @param {Protocol.Network.MonotonicTime} timestamp
  4292. * @param {Protocol.Network.ResourceType} type
  4293. * @param {string} errorText
  4294. * @param {boolean=} opt_canceled
  4295. * @param {Protocol.Network.BlockedReason=} opt_blockedReason
  4296. */
  4297. Protocol.NetworkDispatcher.prototype.loadingFailed = function(requestId, timestamp, type, errorText, opt_canceled, opt_blockedReason) {};
  4298. /**
  4299. * @param {Protocol.Network.RequestId} requestId
  4300. * @param {Protocol.Network.MonotonicTime} timestamp
  4301. * @param {number} encodedDataLength
  4302. * @param {boolean=} opt_shouldReportCorbBlocking
  4303. */
  4304. Protocol.NetworkDispatcher.prototype.loadingFinished = function(requestId, timestamp, encodedDataLength, opt_shouldReportCorbBlocking) {};
  4305. /**
  4306. * @param {Protocol.Network.InterceptionId} interceptionId
  4307. * @param {Protocol.Network.Request} request
  4308. * @param {Protocol.Page.FrameId} frameId
  4309. * @param {Protocol.Network.ResourceType} resourceType
  4310. * @param {boolean} isNavigationRequest
  4311. * @param {boolean=} opt_isDownload
  4312. * @param {string=} opt_redirectUrl
  4313. * @param {Protocol.Network.AuthChallenge=} opt_authChallenge
  4314. * @param {Protocol.Network.ErrorReason=} opt_responseErrorReason
  4315. * @param {number=} opt_responseStatusCode
  4316. * @param {Protocol.Network.Headers=} opt_responseHeaders
  4317. * @param {Protocol.Network.RequestId=} opt_requestId
  4318. */
  4319. Protocol.NetworkDispatcher.prototype.requestIntercepted = function(interceptionId, request, frameId, resourceType, isNavigationRequest, opt_isDownload, opt_redirectUrl, opt_authChallenge, opt_responseErrorReason, opt_responseStatusCode, opt_responseHeaders, opt_requestId) {};
  4320. /**
  4321. * @param {Protocol.Network.RequestId} requestId
  4322. */
  4323. Protocol.NetworkDispatcher.prototype.requestServedFromCache = function(requestId) {};
  4324. /**
  4325. * @param {Protocol.Network.RequestId} requestId
  4326. * @param {Protocol.Network.LoaderId} loaderId
  4327. * @param {string} documentURL
  4328. * @param {Protocol.Network.Request} request
  4329. * @param {Protocol.Network.MonotonicTime} timestamp
  4330. * @param {Protocol.Network.TimeSinceEpoch} wallTime
  4331. * @param {Protocol.Network.Initiator} initiator
  4332. * @param {Protocol.Network.Response=} opt_redirectResponse
  4333. * @param {Protocol.Network.ResourceType=} opt_type
  4334. * @param {Protocol.Page.FrameId=} opt_frameId
  4335. * @param {boolean=} opt_hasUserGesture
  4336. */
  4337. Protocol.NetworkDispatcher.prototype.requestWillBeSent = function(requestId, loaderId, documentURL, request, timestamp, wallTime, initiator, opt_redirectResponse, opt_type, opt_frameId, opt_hasUserGesture) {};
  4338. /**
  4339. * @param {Protocol.Network.RequestId} requestId
  4340. * @param {Protocol.Network.ResourcePriority} newPriority
  4341. * @param {Protocol.Network.MonotonicTime} timestamp
  4342. */
  4343. Protocol.NetworkDispatcher.prototype.resourceChangedPriority = function(requestId, newPriority, timestamp) {};
  4344. /**
  4345. * @param {Protocol.Network.RequestId} requestId
  4346. * @param {Protocol.Network.SignedExchangeInfo} info
  4347. */
  4348. Protocol.NetworkDispatcher.prototype.signedExchangeReceived = function(requestId, info) {};
  4349. /**
  4350. * @param {Protocol.Network.RequestId} requestId
  4351. * @param {Protocol.Network.LoaderId} loaderId
  4352. * @param {Protocol.Network.MonotonicTime} timestamp
  4353. * @param {Protocol.Network.ResourceType} type
  4354. * @param {Protocol.Network.Response} response
  4355. * @param {Protocol.Page.FrameId=} opt_frameId
  4356. */
  4357. Protocol.NetworkDispatcher.prototype.responseReceived = function(requestId, loaderId, timestamp, type, response, opt_frameId) {};
  4358. /**
  4359. * @param {Protocol.Network.RequestId} requestId
  4360. * @param {Protocol.Network.MonotonicTime} timestamp
  4361. */
  4362. Protocol.NetworkDispatcher.prototype.webSocketClosed = function(requestId, timestamp) {};
  4363. /**
  4364. * @param {Protocol.Network.RequestId} requestId
  4365. * @param {string} url
  4366. * @param {Protocol.Network.Initiator=} opt_initiator
  4367. */
  4368. Protocol.NetworkDispatcher.prototype.webSocketCreated = function(requestId, url, opt_initiator) {};
  4369. /**
  4370. * @param {Protocol.Network.RequestId} requestId
  4371. * @param {Protocol.Network.MonotonicTime} timestamp
  4372. * @param {string} errorMessage
  4373. */
  4374. Protocol.NetworkDispatcher.prototype.webSocketFrameError = function(requestId, timestamp, errorMessage) {};
  4375. /**
  4376. * @param {Protocol.Network.RequestId} requestId
  4377. * @param {Protocol.Network.MonotonicTime} timestamp
  4378. * @param {Protocol.Network.WebSocketFrame} response
  4379. */
  4380. Protocol.NetworkDispatcher.prototype.webSocketFrameReceived = function(requestId, timestamp, response) {};
  4381. /**
  4382. * @param {Protocol.Network.RequestId} requestId
  4383. * @param {Protocol.Network.MonotonicTime} timestamp
  4384. * @param {Protocol.Network.WebSocketFrame} response
  4385. */
  4386. Protocol.NetworkDispatcher.prototype.webSocketFrameSent = function(requestId, timestamp, response) {};
  4387. /**
  4388. * @param {Protocol.Network.RequestId} requestId
  4389. * @param {Protocol.Network.MonotonicTime} timestamp
  4390. * @param {Protocol.Network.WebSocketResponse} response
  4391. */
  4392. Protocol.NetworkDispatcher.prototype.webSocketHandshakeResponseReceived = function(requestId, timestamp, response) {};
  4393. /**
  4394. * @param {Protocol.Network.RequestId} requestId
  4395. * @param {Protocol.Network.MonotonicTime} timestamp
  4396. * @param {Protocol.Network.TimeSinceEpoch} wallTime
  4397. * @param {Protocol.Network.WebSocketRequest} request
  4398. */
  4399. Protocol.NetworkDispatcher.prototype.webSocketWillSendHandshakeRequest = function(requestId, timestamp, wallTime, request) {};
  4400. /**
  4401. * @param {Protocol.Network.RequestId} requestId
  4402. * @param {!Array<Protocol.Network.BlockedCookieWithReason>} blockedCookies
  4403. * @param {Protocol.Network.Headers} headers
  4404. */
  4405. Protocol.NetworkDispatcher.prototype.requestWillBeSentExtraInfo = function(requestId, blockedCookies, headers) {};
  4406. /**
  4407. * @param {Protocol.Network.RequestId} requestId
  4408. * @param {!Array<Protocol.Network.BlockedSetCookieWithReason>} blockedCookies
  4409. * @param {Protocol.Network.Headers} headers
  4410. * @param {string=} opt_headersText
  4411. */
  4412. Protocol.NetworkDispatcher.prototype.responseReceivedExtraInfo = function(requestId, blockedCookies, headers, opt_headersText) {};
  4413. Protocol.Overlay = {};
  4414. /**
  4415. * @constructor
  4416. */
  4417. Protocol.OverlayAgent = function(){};
  4418. /**
  4419. * @return {!Promise<undefined>}
  4420. */
  4421. Protocol.OverlayAgent.prototype.disable = function() {};
  4422. /** @typedef {Object|undefined} */
  4423. Protocol.OverlayAgent.DisableRequest;
  4424. /** @typedef {Object|undefined} */
  4425. Protocol.OverlayAgent.DisableResponse;
  4426. /**
  4427. * @param {!Protocol.OverlayAgent.DisableRequest} obj
  4428. * @return {!Promise<!Protocol.OverlayAgent.DisableResponse>} */
  4429. Protocol.OverlayAgent.prototype.invoke_disable = function(obj) {};
  4430. /**
  4431. * @return {!Promise<undefined>}
  4432. */
  4433. Protocol.OverlayAgent.prototype.enable = function() {};
  4434. /** @typedef {Object|undefined} */
  4435. Protocol.OverlayAgent.EnableRequest;
  4436. /** @typedef {Object|undefined} */
  4437. Protocol.OverlayAgent.EnableResponse;
  4438. /**
  4439. * @param {!Protocol.OverlayAgent.EnableRequest} obj
  4440. * @return {!Promise<!Protocol.OverlayAgent.EnableResponse>} */
  4441. Protocol.OverlayAgent.prototype.invoke_enable = function(obj) {};
  4442. /**
  4443. * @param {Protocol.DOM.NodeId} nodeId
  4444. * @param {boolean=} opt_includeDistance
  4445. * @param {boolean=} opt_includeStyle
  4446. * @return {!Promise<?Object>}
  4447. */
  4448. Protocol.OverlayAgent.prototype.getHighlightObjectForTest = function(nodeId, opt_includeDistance, opt_includeStyle) {};
  4449. /** @typedef {!{includeDistance: (boolean|undefined), nodeId: Protocol.DOM.NodeId, includeStyle: (boolean|undefined)}} */
  4450. Protocol.OverlayAgent.GetHighlightObjectForTestRequest;
  4451. /** @typedef {!{highlight: !Object}} */
  4452. Protocol.OverlayAgent.GetHighlightObjectForTestResponse;
  4453. /**
  4454. * @param {!Protocol.OverlayAgent.GetHighlightObjectForTestRequest} obj
  4455. * @return {!Promise<!Protocol.OverlayAgent.GetHighlightObjectForTestResponse>} */
  4456. Protocol.OverlayAgent.prototype.invoke_getHighlightObjectForTest = function(obj) {};
  4457. /**
  4458. * @return {!Promise<undefined>}
  4459. */
  4460. Protocol.OverlayAgent.prototype.hideHighlight = function() {};
  4461. /** @typedef {Object|undefined} */
  4462. Protocol.OverlayAgent.HideHighlightRequest;
  4463. /** @typedef {Object|undefined} */
  4464. Protocol.OverlayAgent.HideHighlightResponse;
  4465. /**
  4466. * @param {!Protocol.OverlayAgent.HideHighlightRequest} obj
  4467. * @return {!Promise<!Protocol.OverlayAgent.HideHighlightResponse>} */
  4468. Protocol.OverlayAgent.prototype.invoke_hideHighlight = function(obj) {};
  4469. /**
  4470. * @param {Protocol.Page.FrameId} frameId
  4471. * @param {Protocol.DOM.RGBA=} opt_contentColor
  4472. * @param {Protocol.DOM.RGBA=} opt_contentOutlineColor
  4473. * @return {!Promise<undefined>}
  4474. */
  4475. Protocol.OverlayAgent.prototype.highlightFrame = function(frameId, opt_contentColor, opt_contentOutlineColor) {};
  4476. /** @typedef {!{contentOutlineColor: (Protocol.DOM.RGBA|undefined), contentColor: (Protocol.DOM.RGBA|undefined), frameId: Protocol.Page.FrameId}} */
  4477. Protocol.OverlayAgent.HighlightFrameRequest;
  4478. /** @typedef {Object|undefined} */
  4479. Protocol.OverlayAgent.HighlightFrameResponse;
  4480. /**
  4481. * @param {!Protocol.OverlayAgent.HighlightFrameRequest} obj
  4482. * @return {!Promise<!Protocol.OverlayAgent.HighlightFrameResponse>} */
  4483. Protocol.OverlayAgent.prototype.invoke_highlightFrame = function(obj) {};
  4484. /**
  4485. * @param {Protocol.Overlay.HighlightConfig} highlightConfig
  4486. * @param {Protocol.DOM.NodeId=} opt_nodeId
  4487. * @param {Protocol.DOM.BackendNodeId=} opt_backendNodeId
  4488. * @param {Protocol.Runtime.RemoteObjectId=} opt_objectId
  4489. * @param {string=} opt_selector
  4490. * @return {!Promise<undefined>}
  4491. */
  4492. Protocol.OverlayAgent.prototype.highlightNode = function(highlightConfig, opt_nodeId, opt_backendNodeId, opt_objectId, opt_selector) {};
  4493. /** @typedef {!{selector: (string|undefined), objectId: (Protocol.Runtime.RemoteObjectId|undefined), highlightConfig: Protocol.Overlay.HighlightConfig, backendNodeId: (Protocol.DOM.BackendNodeId|undefined), nodeId: (Protocol.DOM.NodeId|undefined)}} */
  4494. Protocol.OverlayAgent.HighlightNodeRequest;
  4495. /** @typedef {Object|undefined} */
  4496. Protocol.OverlayAgent.HighlightNodeResponse;
  4497. /**
  4498. * @param {!Protocol.OverlayAgent.HighlightNodeRequest} obj
  4499. * @return {!Promise<!Protocol.OverlayAgent.HighlightNodeResponse>} */
  4500. Protocol.OverlayAgent.prototype.invoke_highlightNode = function(obj) {};
  4501. /**
  4502. * @param {Protocol.DOM.Quad} quad
  4503. * @param {Protocol.DOM.RGBA=} opt_color
  4504. * @param {Protocol.DOM.RGBA=} opt_outlineColor
  4505. * @return {!Promise<undefined>}
  4506. */
  4507. Protocol.OverlayAgent.prototype.highlightQuad = function(quad, opt_color, opt_outlineColor) {};
  4508. /** @typedef {!{color: (Protocol.DOM.RGBA|undefined), quad: Protocol.DOM.Quad, outlineColor: (Protocol.DOM.RGBA|undefined)}} */
  4509. Protocol.OverlayAgent.HighlightQuadRequest;
  4510. /** @typedef {Object|undefined} */
  4511. Protocol.OverlayAgent.HighlightQuadResponse;
  4512. /**
  4513. * @param {!Protocol.OverlayAgent.HighlightQuadRequest} obj
  4514. * @return {!Promise<!Protocol.OverlayAgent.HighlightQuadResponse>} */
  4515. Protocol.OverlayAgent.prototype.invoke_highlightQuad = function(obj) {};
  4516. /**
  4517. * @param {number} x
  4518. * @param {number} y
  4519. * @param {number} width
  4520. * @param {number} height
  4521. * @param {Protocol.DOM.RGBA=} opt_color
  4522. * @param {Protocol.DOM.RGBA=} opt_outlineColor
  4523. * @return {!Promise<undefined>}
  4524. */
  4525. Protocol.OverlayAgent.prototype.highlightRect = function(x, y, width, height, opt_color, opt_outlineColor) {};
  4526. /** @typedef {!{color: (Protocol.DOM.RGBA|undefined), height: number, width: number, y: number, x: number, outlineColor: (Protocol.DOM.RGBA|undefined)}} */
  4527. Protocol.OverlayAgent.HighlightRectRequest;
  4528. /** @typedef {Object|undefined} */
  4529. Protocol.OverlayAgent.HighlightRectResponse;
  4530. /**
  4531. * @param {!Protocol.OverlayAgent.HighlightRectRequest} obj
  4532. * @return {!Promise<!Protocol.OverlayAgent.HighlightRectResponse>} */
  4533. Protocol.OverlayAgent.prototype.invoke_highlightRect = function(obj) {};
  4534. /**
  4535. * @param {Protocol.Overlay.InspectMode} mode
  4536. * @param {Protocol.Overlay.HighlightConfig=} opt_highlightConfig
  4537. * @return {!Promise<undefined>}
  4538. */
  4539. Protocol.OverlayAgent.prototype.setInspectMode = function(mode, opt_highlightConfig) {};
  4540. /** @typedef {!{mode: Protocol.Overlay.InspectMode, highlightConfig: (Protocol.Overlay.HighlightConfig|undefined)}} */
  4541. Protocol.OverlayAgent.SetInspectModeRequest;
  4542. /** @typedef {Object|undefined} */
  4543. Protocol.OverlayAgent.SetInspectModeResponse;
  4544. /**
  4545. * @param {!Protocol.OverlayAgent.SetInspectModeRequest} obj
  4546. * @return {!Promise<!Protocol.OverlayAgent.SetInspectModeResponse>} */
  4547. Protocol.OverlayAgent.prototype.invoke_setInspectMode = function(obj) {};
  4548. /**
  4549. * @param {boolean} show
  4550. * @return {!Promise<undefined>}
  4551. */
  4552. Protocol.OverlayAgent.prototype.setShowAdHighlights = function(show) {};
  4553. /** @typedef {!{show: boolean}} */
  4554. Protocol.OverlayAgent.SetShowAdHighlightsRequest;
  4555. /** @typedef {Object|undefined} */
  4556. Protocol.OverlayAgent.SetShowAdHighlightsResponse;
  4557. /**
  4558. * @param {!Protocol.OverlayAgent.SetShowAdHighlightsRequest} obj
  4559. * @return {!Promise<!Protocol.OverlayAgent.SetShowAdHighlightsResponse>} */
  4560. Protocol.OverlayAgent.prototype.invoke_setShowAdHighlights = function(obj) {};
  4561. /**
  4562. * @param {string=} opt_message
  4563. * @return {!Promise<undefined>}
  4564. */
  4565. Protocol.OverlayAgent.prototype.setPausedInDebuggerMessage = function(opt_message) {};
  4566. /** @typedef {!{message: (string|undefined)}} */
  4567. Protocol.OverlayAgent.SetPausedInDebuggerMessageRequest;
  4568. /** @typedef {Object|undefined} */
  4569. Protocol.OverlayAgent.SetPausedInDebuggerMessageResponse;
  4570. /**
  4571. * @param {!Protocol.OverlayAgent.SetPausedInDebuggerMessageRequest} obj
  4572. * @return {!Promise<!Protocol.OverlayAgent.SetPausedInDebuggerMessageResponse>} */
  4573. Protocol.OverlayAgent.prototype.invoke_setPausedInDebuggerMessage = function(obj) {};
  4574. /**
  4575. * @param {boolean} show
  4576. * @return {!Promise<undefined>}
  4577. */
  4578. Protocol.OverlayAgent.prototype.setShowDebugBorders = function(show) {};
  4579. /** @typedef {!{show: boolean}} */
  4580. Protocol.OverlayAgent.SetShowDebugBordersRequest;
  4581. /** @typedef {Object|undefined} */
  4582. Protocol.OverlayAgent.SetShowDebugBordersResponse;
  4583. /**
  4584. * @param {!Protocol.OverlayAgent.SetShowDebugBordersRequest} obj
  4585. * @return {!Promise<!Protocol.OverlayAgent.SetShowDebugBordersResponse>} */
  4586. Protocol.OverlayAgent.prototype.invoke_setShowDebugBorders = function(obj) {};
  4587. /**
  4588. * @param {boolean} show
  4589. * @return {!Promise<undefined>}
  4590. */
  4591. Protocol.OverlayAgent.prototype.setShowFPSCounter = function(show) {};
  4592. /** @typedef {!{show: boolean}} */
  4593. Protocol.OverlayAgent.SetShowFPSCounterRequest;
  4594. /** @typedef {Object|undefined} */
  4595. Protocol.OverlayAgent.SetShowFPSCounterResponse;
  4596. /**
  4597. * @param {!Protocol.OverlayAgent.SetShowFPSCounterRequest} obj
  4598. * @return {!Promise<!Protocol.OverlayAgent.SetShowFPSCounterResponse>} */
  4599. Protocol.OverlayAgent.prototype.invoke_setShowFPSCounter = function(obj) {};
  4600. /**
  4601. * @param {boolean} result
  4602. * @return {!Promise<undefined>}
  4603. */
  4604. Protocol.OverlayAgent.prototype.setShowPaintRects = function(result) {};
  4605. /** @typedef {!{result: boolean}} */
  4606. Protocol.OverlayAgent.SetShowPaintRectsRequest;
  4607. /** @typedef {Object|undefined} */
  4608. Protocol.OverlayAgent.SetShowPaintRectsResponse;
  4609. /**
  4610. * @param {!Protocol.OverlayAgent.SetShowPaintRectsRequest} obj
  4611. * @return {!Promise<!Protocol.OverlayAgent.SetShowPaintRectsResponse>} */
  4612. Protocol.OverlayAgent.prototype.invoke_setShowPaintRects = function(obj) {};
  4613. /**
  4614. * @param {boolean} result
  4615. * @return {!Promise<undefined>}
  4616. */
  4617. Protocol.OverlayAgent.prototype.setShowLayoutShiftRegions = function(result) {};
  4618. /** @typedef {!{result: boolean}} */
  4619. Protocol.OverlayAgent.SetShowLayoutShiftRegionsRequest;
  4620. /** @typedef {Object|undefined} */
  4621. Protocol.OverlayAgent.SetShowLayoutShiftRegionsResponse;
  4622. /**
  4623. * @param {!Protocol.OverlayAgent.SetShowLayoutShiftRegionsRequest} obj
  4624. * @return {!Promise<!Protocol.OverlayAgent.SetShowLayoutShiftRegionsResponse>} */
  4625. Protocol.OverlayAgent.prototype.invoke_setShowLayoutShiftRegions = function(obj) {};
  4626. /**
  4627. * @param {boolean} show
  4628. * @return {!Promise<undefined>}
  4629. */
  4630. Protocol.OverlayAgent.prototype.setShowScrollBottleneckRects = function(show) {};
  4631. /** @typedef {!{show: boolean}} */
  4632. Protocol.OverlayAgent.SetShowScrollBottleneckRectsRequest;
  4633. /** @typedef {Object|undefined} */
  4634. Protocol.OverlayAgent.SetShowScrollBottleneckRectsResponse;
  4635. /**
  4636. * @param {!Protocol.OverlayAgent.SetShowScrollBottleneckRectsRequest} obj
  4637. * @return {!Promise<!Protocol.OverlayAgent.SetShowScrollBottleneckRectsResponse>} */
  4638. Protocol.OverlayAgent.prototype.invoke_setShowScrollBottleneckRects = function(obj) {};
  4639. /**
  4640. * @param {boolean} show
  4641. * @return {!Promise<undefined>}
  4642. */
  4643. Protocol.OverlayAgent.prototype.setShowHitTestBorders = function(show) {};
  4644. /** @typedef {!{show: boolean}} */
  4645. Protocol.OverlayAgent.SetShowHitTestBordersRequest;
  4646. /** @typedef {Object|undefined} */
  4647. Protocol.OverlayAgent.SetShowHitTestBordersResponse;
  4648. /**
  4649. * @param {!Protocol.OverlayAgent.SetShowHitTestBordersRequest} obj
  4650. * @return {!Promise<!Protocol.OverlayAgent.SetShowHitTestBordersResponse>} */
  4651. Protocol.OverlayAgent.prototype.invoke_setShowHitTestBorders = function(obj) {};
  4652. /**
  4653. * @param {boolean} show
  4654. * @return {!Promise<undefined>}
  4655. */
  4656. Protocol.OverlayAgent.prototype.setShowViewportSizeOnResize = function(show) {};
  4657. /** @typedef {!{show: boolean}} */
  4658. Protocol.OverlayAgent.SetShowViewportSizeOnResizeRequest;
  4659. /** @typedef {Object|undefined} */
  4660. Protocol.OverlayAgent.SetShowViewportSizeOnResizeResponse;
  4661. /**
  4662. * @param {!Protocol.OverlayAgent.SetShowViewportSizeOnResizeRequest} obj
  4663. * @return {!Promise<!Protocol.OverlayAgent.SetShowViewportSizeOnResizeResponse>} */
  4664. Protocol.OverlayAgent.prototype.invoke_setShowViewportSizeOnResize = function(obj) {};
  4665. /** @typedef {!{showInfo:(boolean|undefined), showStyles:(boolean|undefined), showRulers:(boolean|undefined), showExtensionLines:(boolean|undefined), contentColor:(Protocol.DOM.RGBA|undefined), paddingColor:(Protocol.DOM.RGBA|undefined), borderColor:(Protocol.DOM.RGBA|undefined), marginColor:(Protocol.DOM.RGBA|undefined), eventTargetColor:(Protocol.DOM.RGBA|undefined), shapeColor:(Protocol.DOM.RGBA|undefined), shapeMarginColor:(Protocol.DOM.RGBA|undefined), cssGridColor:(Protocol.DOM.RGBA|undefined)}} */
  4666. Protocol.Overlay.HighlightConfig;
  4667. /** @enum {string} */
  4668. Protocol.Overlay.InspectMode = {
  4669. SearchForNode: "searchForNode",
  4670. SearchForUAShadowDOM: "searchForUAShadowDOM",
  4671. CaptureAreaScreenshot: "captureAreaScreenshot",
  4672. ShowDistances: "showDistances",
  4673. None: "none"
  4674. };
  4675. /** @interface */
  4676. Protocol.OverlayDispatcher = function() {};
  4677. /**
  4678. * @param {Protocol.DOM.BackendNodeId} backendNodeId
  4679. */
  4680. Protocol.OverlayDispatcher.prototype.inspectNodeRequested = function(backendNodeId) {};
  4681. /**
  4682. * @param {Protocol.DOM.NodeId} nodeId
  4683. */
  4684. Protocol.OverlayDispatcher.prototype.nodeHighlightRequested = function(nodeId) {};
  4685. /**
  4686. * @param {Protocol.Page.Viewport} viewport
  4687. */
  4688. Protocol.OverlayDispatcher.prototype.screenshotRequested = function(viewport) {};
  4689. Protocol.OverlayDispatcher.prototype.inspectModeCanceled = function() {};
  4690. Protocol.Page = {};
  4691. /**
  4692. * @constructor
  4693. */
  4694. Protocol.PageAgent = function(){};
  4695. /**
  4696. * @param {string} scriptSource
  4697. * @return {!Promise<?Protocol.Page.ScriptIdentifier>}
  4698. */
  4699. Protocol.PageAgent.prototype.addScriptToEvaluateOnLoad = function(scriptSource) {};
  4700. /** @typedef {!{scriptSource: string}} */
  4701. Protocol.PageAgent.AddScriptToEvaluateOnLoadRequest;
  4702. /** @typedef {!{identifier: Protocol.Page.ScriptIdentifier}} */
  4703. Protocol.PageAgent.AddScriptToEvaluateOnLoadResponse;
  4704. /**
  4705. * @param {!Protocol.PageAgent.AddScriptToEvaluateOnLoadRequest} obj
  4706. * @return {!Promise<!Protocol.PageAgent.AddScriptToEvaluateOnLoadResponse>} */
  4707. Protocol.PageAgent.prototype.invoke_addScriptToEvaluateOnLoad = function(obj) {};
  4708. /**
  4709. * @param {string} source
  4710. * @param {string=} opt_worldName
  4711. * @return {!Promise<?Protocol.Page.ScriptIdentifier>}
  4712. */
  4713. Protocol.PageAgent.prototype.addScriptToEvaluateOnNewDocument = function(source, opt_worldName) {};
  4714. /** @typedef {!{source: string, worldName: (string|undefined)}} */
  4715. Protocol.PageAgent.AddScriptToEvaluateOnNewDocumentRequest;
  4716. /** @typedef {!{identifier: Protocol.Page.ScriptIdentifier}} */
  4717. Protocol.PageAgent.AddScriptToEvaluateOnNewDocumentResponse;
  4718. /**
  4719. * @param {!Protocol.PageAgent.AddScriptToEvaluateOnNewDocumentRequest} obj
  4720. * @return {!Promise<!Protocol.PageAgent.AddScriptToEvaluateOnNewDocumentResponse>} */
  4721. Protocol.PageAgent.prototype.invoke_addScriptToEvaluateOnNewDocument = function(obj) {};
  4722. /**
  4723. * @return {!Promise<undefined>}
  4724. */
  4725. Protocol.PageAgent.prototype.bringToFront = function() {};
  4726. /** @typedef {Object|undefined} */
  4727. Protocol.PageAgent.BringToFrontRequest;
  4728. /** @typedef {Object|undefined} */
  4729. Protocol.PageAgent.BringToFrontResponse;
  4730. /**
  4731. * @param {!Protocol.PageAgent.BringToFrontRequest} obj
  4732. * @return {!Promise<!Protocol.PageAgent.BringToFrontResponse>} */
  4733. Protocol.PageAgent.prototype.invoke_bringToFront = function(obj) {};
  4734. /**
  4735. * @param {string=} opt_format
  4736. * @param {number=} opt_quality
  4737. * @param {Protocol.Page.Viewport=} opt_clip
  4738. * @param {boolean=} opt_fromSurface
  4739. * @return {!Promise<?string>}
  4740. */
  4741. Protocol.PageAgent.prototype.captureScreenshot = function(opt_format, opt_quality, opt_clip, opt_fromSurface) {};
  4742. /** @typedef {!{fromSurface: (boolean|undefined), quality: (number|undefined), clip: (Protocol.Page.Viewport|undefined), format: (string|undefined)}} */
  4743. Protocol.PageAgent.CaptureScreenshotRequest;
  4744. /** @typedef {!{data: string}} */
  4745. Protocol.PageAgent.CaptureScreenshotResponse;
  4746. /**
  4747. * @param {!Protocol.PageAgent.CaptureScreenshotRequest} obj
  4748. * @return {!Promise<!Protocol.PageAgent.CaptureScreenshotResponse>} */
  4749. Protocol.PageAgent.prototype.invoke_captureScreenshot = function(obj) {};
  4750. /**
  4751. * @param {string=} opt_format
  4752. * @return {!Promise<?string>}
  4753. */
  4754. Protocol.PageAgent.prototype.captureSnapshot = function(opt_format) {};
  4755. /** @typedef {!{format: (string|undefined)}} */
  4756. Protocol.PageAgent.CaptureSnapshotRequest;
  4757. /** @typedef {!{data: string}} */
  4758. Protocol.PageAgent.CaptureSnapshotResponse;
  4759. /**
  4760. * @param {!Protocol.PageAgent.CaptureSnapshotRequest} obj
  4761. * @return {!Promise<!Protocol.PageAgent.CaptureSnapshotResponse>} */
  4762. Protocol.PageAgent.prototype.invoke_captureSnapshot = function(obj) {};
  4763. /**
  4764. * @return {!Promise<undefined>}
  4765. */
  4766. Protocol.PageAgent.prototype.clearDeviceMetricsOverride = function() {};
  4767. /** @typedef {Object|undefined} */
  4768. Protocol.PageAgent.ClearDeviceMetricsOverrideRequest;
  4769. /** @typedef {Object|undefined} */
  4770. Protocol.PageAgent.ClearDeviceMetricsOverrideResponse;
  4771. /**
  4772. * @param {!Protocol.PageAgent.ClearDeviceMetricsOverrideRequest} obj
  4773. * @return {!Promise<!Protocol.PageAgent.ClearDeviceMetricsOverrideResponse>} */
  4774. Protocol.PageAgent.prototype.invoke_clearDeviceMetricsOverride = function(obj) {};
  4775. /**
  4776. * @return {!Promise<undefined>}
  4777. */
  4778. Protocol.PageAgent.prototype.clearDeviceOrientationOverride = function() {};
  4779. /** @typedef {Object|undefined} */
  4780. Protocol.PageAgent.ClearDeviceOrientationOverrideRequest;
  4781. /** @typedef {Object|undefined} */
  4782. Protocol.PageAgent.ClearDeviceOrientationOverrideResponse;
  4783. /**
  4784. * @param {!Protocol.PageAgent.ClearDeviceOrientationOverrideRequest} obj
  4785. * @return {!Promise<!Protocol.PageAgent.ClearDeviceOrientationOverrideResponse>} */
  4786. Protocol.PageAgent.prototype.invoke_clearDeviceOrientationOverride = function(obj) {};
  4787. /**
  4788. * @return {!Promise<undefined>}
  4789. */
  4790. Protocol.PageAgent.prototype.clearGeolocationOverride = function() {};
  4791. /** @typedef {Object|undefined} */
  4792. Protocol.PageAgent.ClearGeolocationOverrideRequest;
  4793. /** @typedef {Object|undefined} */
  4794. Protocol.PageAgent.ClearGeolocationOverrideResponse;
  4795. /**
  4796. * @param {!Protocol.PageAgent.ClearGeolocationOverrideRequest} obj
  4797. * @return {!Promise<!Protocol.PageAgent.ClearGeolocationOverrideResponse>} */
  4798. Protocol.PageAgent.prototype.invoke_clearGeolocationOverride = function(obj) {};
  4799. /**
  4800. * @param {Protocol.Page.FrameId} frameId
  4801. * @param {string=} opt_worldName
  4802. * @param {boolean=} opt_grantUniveralAccess
  4803. * @return {!Promise<?Protocol.Runtime.ExecutionContextId>}
  4804. */
  4805. Protocol.PageAgent.prototype.createIsolatedWorld = function(frameId, opt_worldName, opt_grantUniveralAccess) {};
  4806. /** @typedef {!{grantUniveralAccess: (boolean|undefined), worldName: (string|undefined), frameId: Protocol.Page.FrameId}} */
  4807. Protocol.PageAgent.CreateIsolatedWorldRequest;
  4808. /** @typedef {!{executionContextId: Protocol.Runtime.ExecutionContextId}} */
  4809. Protocol.PageAgent.CreateIsolatedWorldResponse;
  4810. /**
  4811. * @param {!Protocol.PageAgent.CreateIsolatedWorldRequest} obj
  4812. * @return {!Promise<!Protocol.PageAgent.CreateIsolatedWorldResponse>} */
  4813. Protocol.PageAgent.prototype.invoke_createIsolatedWorld = function(obj) {};
  4814. /**
  4815. * @param {string} cookieName
  4816. * @param {string} url
  4817. * @return {!Promise<undefined>}
  4818. */
  4819. Protocol.PageAgent.prototype.deleteCookie = function(cookieName, url) {};
  4820. /** @typedef {!{url: string, cookieName: string}} */
  4821. Protocol.PageAgent.DeleteCookieRequest;
  4822. /** @typedef {Object|undefined} */
  4823. Protocol.PageAgent.DeleteCookieResponse;
  4824. /**
  4825. * @param {!Protocol.PageAgent.DeleteCookieRequest} obj
  4826. * @return {!Promise<!Protocol.PageAgent.DeleteCookieResponse>} */
  4827. Protocol.PageAgent.prototype.invoke_deleteCookie = function(obj) {};
  4828. /**
  4829. * @return {!Promise<undefined>}
  4830. */
  4831. Protocol.PageAgent.prototype.disable = function() {};
  4832. /** @typedef {Object|undefined} */
  4833. Protocol.PageAgent.DisableRequest;
  4834. /** @typedef {Object|undefined} */
  4835. Protocol.PageAgent.DisableResponse;
  4836. /**
  4837. * @param {!Protocol.PageAgent.DisableRequest} obj
  4838. * @return {!Promise<!Protocol.PageAgent.DisableResponse>} */
  4839. Protocol.PageAgent.prototype.invoke_disable = function(obj) {};
  4840. /**
  4841. * @return {!Promise<undefined>}
  4842. */
  4843. Protocol.PageAgent.prototype.enable = function() {};
  4844. /** @typedef {Object|undefined} */
  4845. Protocol.PageAgent.EnableRequest;
  4846. /** @typedef {Object|undefined} */
  4847. Protocol.PageAgent.EnableResponse;
  4848. /**
  4849. * @param {!Protocol.PageAgent.EnableRequest} obj
  4850. * @return {!Promise<!Protocol.PageAgent.EnableResponse>} */
  4851. Protocol.PageAgent.prototype.invoke_enable = function(obj) {};
  4852. /**
  4853. * @return {!Promise<?string>}
  4854. */
  4855. Protocol.PageAgent.prototype.getAppManifest = function() {};
  4856. /** @typedef {Object|undefined} */
  4857. Protocol.PageAgent.GetAppManifestRequest;
  4858. /** @typedef {!{url: string, errors: !Array<Protocol.Page.AppManifestError>, data: string}} */
  4859. Protocol.PageAgent.GetAppManifestResponse;
  4860. /**
  4861. * @param {!Protocol.PageAgent.GetAppManifestRequest} obj
  4862. * @return {!Promise<!Protocol.PageAgent.GetAppManifestResponse>} */
  4863. Protocol.PageAgent.prototype.invoke_getAppManifest = function(obj) {};
  4864. /**
  4865. * @return {!Promise<?Array<string>>}
  4866. */
  4867. Protocol.PageAgent.prototype.getInstallabilityErrors = function() {};
  4868. /** @typedef {Object|undefined} */
  4869. Protocol.PageAgent.GetInstallabilityErrorsRequest;
  4870. /** @typedef {!{errors: !Array<string>}} */
  4871. Protocol.PageAgent.GetInstallabilityErrorsResponse;
  4872. /**
  4873. * @param {!Protocol.PageAgent.GetInstallabilityErrorsRequest} obj
  4874. * @return {!Promise<!Protocol.PageAgent.GetInstallabilityErrorsResponse>} */
  4875. Protocol.PageAgent.prototype.invoke_getInstallabilityErrors = function(obj) {};
  4876. /**
  4877. * @return {!Promise<?Array<Protocol.Network.Cookie>>}
  4878. */
  4879. Protocol.PageAgent.prototype.getCookies = function() {};
  4880. /** @typedef {Object|undefined} */
  4881. Protocol.PageAgent.GetCookiesRequest;
  4882. /** @typedef {!{cookies: !Array<Protocol.Network.Cookie>}} */
  4883. Protocol.PageAgent.GetCookiesResponse;
  4884. /**
  4885. * @param {!Protocol.PageAgent.GetCookiesRequest} obj
  4886. * @return {!Promise<!Protocol.PageAgent.GetCookiesResponse>} */
  4887. Protocol.PageAgent.prototype.invoke_getCookies = function(obj) {};
  4888. /**
  4889. * @return {!Promise<?Protocol.Page.FrameTree>}
  4890. */
  4891. Protocol.PageAgent.prototype.getFrameTree = function() {};
  4892. /** @typedef {Object|undefined} */
  4893. Protocol.PageAgent.GetFrameTreeRequest;
  4894. /** @typedef {!{frameTree: Protocol.Page.FrameTree}} */
  4895. Protocol.PageAgent.GetFrameTreeResponse;
  4896. /**
  4897. * @param {!Protocol.PageAgent.GetFrameTreeRequest} obj
  4898. * @return {!Promise<!Protocol.PageAgent.GetFrameTreeResponse>} */
  4899. Protocol.PageAgent.prototype.invoke_getFrameTree = function(obj) {};
  4900. /**
  4901. * @return {!Promise<?Protocol.Page.LayoutViewport>}
  4902. */
  4903. Protocol.PageAgent.prototype.getLayoutMetrics = function() {};
  4904. /** @typedef {Object|undefined} */
  4905. Protocol.PageAgent.GetLayoutMetricsRequest;
  4906. /** @typedef {!{visualViewport: Protocol.Page.VisualViewport, layoutViewport: Protocol.Page.LayoutViewport, contentSize: Protocol.DOM.Rect}} */
  4907. Protocol.PageAgent.GetLayoutMetricsResponse;
  4908. /**
  4909. * @param {!Protocol.PageAgent.GetLayoutMetricsRequest} obj
  4910. * @return {!Promise<!Protocol.PageAgent.GetLayoutMetricsResponse>} */
  4911. Protocol.PageAgent.prototype.invoke_getLayoutMetrics = function(obj) {};
  4912. /**
  4913. * @return {!Promise<?number>}
  4914. */
  4915. Protocol.PageAgent.prototype.getNavigationHistory = function() {};
  4916. /** @typedef {Object|undefined} */
  4917. Protocol.PageAgent.GetNavigationHistoryRequest;
  4918. /** @typedef {!{currentIndex: number, entries: !Array<Protocol.Page.NavigationEntry>}} */
  4919. Protocol.PageAgent.GetNavigationHistoryResponse;
  4920. /**
  4921. * @param {!Protocol.PageAgent.GetNavigationHistoryRequest} obj
  4922. * @return {!Promise<!Protocol.PageAgent.GetNavigationHistoryResponse>} */
  4923. Protocol.PageAgent.prototype.invoke_getNavigationHistory = function(obj) {};
  4924. /**
  4925. * @return {!Promise<undefined>}
  4926. */
  4927. Protocol.PageAgent.prototype.resetNavigationHistory = function() {};
  4928. /** @typedef {Object|undefined} */
  4929. Protocol.PageAgent.ResetNavigationHistoryRequest;
  4930. /** @typedef {Object|undefined} */
  4931. Protocol.PageAgent.ResetNavigationHistoryResponse;
  4932. /**
  4933. * @param {!Protocol.PageAgent.ResetNavigationHistoryRequest} obj
  4934. * @return {!Promise<!Protocol.PageAgent.ResetNavigationHistoryResponse>} */
  4935. Protocol.PageAgent.prototype.invoke_resetNavigationHistory = function(obj) {};
  4936. /**
  4937. * @param {Protocol.Page.FrameId} frameId
  4938. * @param {string} url
  4939. * @return {!Promise<?string>}
  4940. */
  4941. Protocol.PageAgent.prototype.getResourceContent = function(frameId, url) {};
  4942. /** @typedef {!{url: string, frameId: Protocol.Page.FrameId}} */
  4943. Protocol.PageAgent.GetResourceContentRequest;
  4944. /** @typedef {!{content: string, base64Encoded: boolean}} */
  4945. Protocol.PageAgent.GetResourceContentResponse;
  4946. /**
  4947. * @param {!Protocol.PageAgent.GetResourceContentRequest} obj
  4948. * @return {!Promise<!Protocol.PageAgent.GetResourceContentResponse>} */
  4949. Protocol.PageAgent.prototype.invoke_getResourceContent = function(obj) {};
  4950. /**
  4951. * @return {!Promise<?Protocol.Page.FrameResourceTree>}
  4952. */
  4953. Protocol.PageAgent.prototype.getResourceTree = function() {};
  4954. /** @typedef {Object|undefined} */
  4955. Protocol.PageAgent.GetResourceTreeRequest;
  4956. /** @typedef {!{frameTree: Protocol.Page.FrameResourceTree}} */
  4957. Protocol.PageAgent.GetResourceTreeResponse;
  4958. /**
  4959. * @param {!Protocol.PageAgent.GetResourceTreeRequest} obj
  4960. * @return {!Promise<!Protocol.PageAgent.GetResourceTreeResponse>} */
  4961. Protocol.PageAgent.prototype.invoke_getResourceTree = function(obj) {};
  4962. /**
  4963. * @param {boolean} accept
  4964. * @param {string=} opt_promptText
  4965. * @return {!Promise<undefined>}
  4966. */
  4967. Protocol.PageAgent.prototype.handleJavaScriptDialog = function(accept, opt_promptText) {};
  4968. /** @typedef {!{promptText: (string|undefined), accept: boolean}} */
  4969. Protocol.PageAgent.HandleJavaScriptDialogRequest;
  4970. /** @typedef {Object|undefined} */
  4971. Protocol.PageAgent.HandleJavaScriptDialogResponse;
  4972. /**
  4973. * @param {!Protocol.PageAgent.HandleJavaScriptDialogRequest} obj
  4974. * @return {!Promise<!Protocol.PageAgent.HandleJavaScriptDialogResponse>} */
  4975. Protocol.PageAgent.prototype.invoke_handleJavaScriptDialog = function(obj) {};
  4976. /**
  4977. * @param {string} url
  4978. * @param {string=} opt_referrer
  4979. * @param {Protocol.Page.TransitionType=} opt_transitionType
  4980. * @param {Protocol.Page.FrameId=} opt_frameId
  4981. * @return {!Promise<?Protocol.Page.FrameId>}
  4982. */
  4983. Protocol.PageAgent.prototype.navigate = function(url, opt_referrer, opt_transitionType, opt_frameId) {};
  4984. /** @typedef {!{url: string, referrer: (string|undefined), frameId: (Protocol.Page.FrameId|undefined), transitionType: (Protocol.Page.TransitionType|undefined)}} */
  4985. Protocol.PageAgent.NavigateRequest;
  4986. /** @typedef {!{loaderId: Protocol.Network.LoaderId, errorText: string, frameId: Protocol.Page.FrameId}} */
  4987. Protocol.PageAgent.NavigateResponse;
  4988. /**
  4989. * @param {!Protocol.PageAgent.NavigateRequest} obj
  4990. * @return {!Promise<!Protocol.PageAgent.NavigateResponse>} */
  4991. Protocol.PageAgent.prototype.invoke_navigate = function(obj) {};
  4992. /**
  4993. * @param {number} entryId
  4994. * @return {!Promise<undefined>}
  4995. */
  4996. Protocol.PageAgent.prototype.navigateToHistoryEntry = function(entryId) {};
  4997. /** @typedef {!{entryId: number}} */
  4998. Protocol.PageAgent.NavigateToHistoryEntryRequest;
  4999. /** @typedef {Object|undefined} */
  5000. Protocol.PageAgent.NavigateToHistoryEntryResponse;
  5001. /**
  5002. * @param {!Protocol.PageAgent.NavigateToHistoryEntryRequest} obj
  5003. * @return {!Promise<!Protocol.PageAgent.NavigateToHistoryEntryResponse>} */
  5004. Protocol.PageAgent.prototype.invoke_navigateToHistoryEntry = function(obj) {};
  5005. /**
  5006. * @param {boolean=} opt_landscape
  5007. * @param {boolean=} opt_displayHeaderFooter
  5008. * @param {boolean=} opt_printBackground
  5009. * @param {number=} opt_scale
  5010. * @param {number=} opt_paperWidth
  5011. * @param {number=} opt_paperHeight
  5012. * @param {number=} opt_marginTop
  5013. * @param {number=} opt_marginBottom
  5014. * @param {number=} opt_marginLeft
  5015. * @param {number=} opt_marginRight
  5016. * @param {string=} opt_pageRanges
  5017. * @param {boolean=} opt_ignoreInvalidPageRanges
  5018. * @param {string=} opt_headerTemplate
  5019. * @param {string=} opt_footerTemplate
  5020. * @param {boolean=} opt_preferCSSPageSize
  5021. * @param {string=} opt_transferMode
  5022. * @return {!Promise<?string>}
  5023. */
  5024. Protocol.PageAgent.prototype.printToPDF = function(opt_landscape, opt_displayHeaderFooter, opt_printBackground, opt_scale, opt_paperWidth, opt_paperHeight, opt_marginTop, opt_marginBottom, opt_marginLeft, opt_marginRight, opt_pageRanges, opt_ignoreInvalidPageRanges, opt_headerTemplate, opt_footerTemplate, opt_preferCSSPageSize, opt_transferMode) {};
  5025. /** @typedef {!{paperHeight: (number|undefined), scale: (number|undefined), footerTemplate: (string|undefined), displayHeaderFooter: (boolean|undefined), transferMode: (string|undefined), marginBottom: (number|undefined), paperWidth: (number|undefined), headerTemplate: (string|undefined), marginLeft: (number|undefined), preferCSSPageSize: (boolean|undefined), printBackground: (boolean|undefined), marginRight: (number|undefined), ignoreInvalidPageRanges: (boolean|undefined), pageRanges: (string|undefined), marginTop: (number|undefined), landscape: (boolean|undefined)}} */
  5026. Protocol.PageAgent.PrintToPDFRequest;
  5027. /** @typedef {!{data: string, stream: Protocol.IO.StreamHandle}} */
  5028. Protocol.PageAgent.PrintToPDFResponse;
  5029. /**
  5030. * @param {!Protocol.PageAgent.PrintToPDFRequest} obj
  5031. * @return {!Promise<!Protocol.PageAgent.PrintToPDFResponse>} */
  5032. Protocol.PageAgent.prototype.invoke_printToPDF = function(obj) {};
  5033. /**
  5034. * @param {boolean=} opt_ignoreCache
  5035. * @param {string=} opt_scriptToEvaluateOnLoad
  5036. * @return {!Promise<undefined>}
  5037. */
  5038. Protocol.PageAgent.prototype.reload = function(opt_ignoreCache, opt_scriptToEvaluateOnLoad) {};
  5039. /** @typedef {!{scriptToEvaluateOnLoad: (string|undefined), ignoreCache: (boolean|undefined)}} */
  5040. Protocol.PageAgent.ReloadRequest;
  5041. /** @typedef {Object|undefined} */
  5042. Protocol.PageAgent.ReloadResponse;
  5043. /**
  5044. * @param {!Protocol.PageAgent.ReloadRequest} obj
  5045. * @return {!Promise<!Protocol.PageAgent.ReloadResponse>} */
  5046. Protocol.PageAgent.prototype.invoke_reload = function(obj) {};
  5047. /**
  5048. * @param {Protocol.Page.ScriptIdentifier} identifier
  5049. * @return {!Promise<undefined>}
  5050. */
  5051. Protocol.PageAgent.prototype.removeScriptToEvaluateOnLoad = function(identifier) {};
  5052. /** @typedef {!{identifier: Protocol.Page.ScriptIdentifier}} */
  5053. Protocol.PageAgent.RemoveScriptToEvaluateOnLoadRequest;
  5054. /** @typedef {Object|undefined} */
  5055. Protocol.PageAgent.RemoveScriptToEvaluateOnLoadResponse;
  5056. /**
  5057. * @param {!Protocol.PageAgent.RemoveScriptToEvaluateOnLoadRequest} obj
  5058. * @return {!Promise<!Protocol.PageAgent.RemoveScriptToEvaluateOnLoadResponse>} */
  5059. Protocol.PageAgent.prototype.invoke_removeScriptToEvaluateOnLoad = function(obj) {};
  5060. /**
  5061. * @param {Protocol.Page.ScriptIdentifier} identifier
  5062. * @return {!Promise<undefined>}
  5063. */
  5064. Protocol.PageAgent.prototype.removeScriptToEvaluateOnNewDocument = function(identifier) {};
  5065. /** @typedef {!{identifier: Protocol.Page.ScriptIdentifier}} */
  5066. Protocol.PageAgent.RemoveScriptToEvaluateOnNewDocumentRequest;
  5067. /** @typedef {Object|undefined} */
  5068. Protocol.PageAgent.RemoveScriptToEvaluateOnNewDocumentResponse;
  5069. /**
  5070. * @param {!Protocol.PageAgent.RemoveScriptToEvaluateOnNewDocumentRequest} obj
  5071. * @return {!Promise<!Protocol.PageAgent.RemoveScriptToEvaluateOnNewDocumentResponse>} */
  5072. Protocol.PageAgent.prototype.invoke_removeScriptToEvaluateOnNewDocument = function(obj) {};
  5073. /**
  5074. * @param {number} sessionId
  5075. * @return {!Promise<undefined>}
  5076. */
  5077. Protocol.PageAgent.prototype.screencastFrameAck = function(sessionId) {};
  5078. /** @typedef {!{sessionId: number}} */
  5079. Protocol.PageAgent.ScreencastFrameAckRequest;
  5080. /** @typedef {Object|undefined} */
  5081. Protocol.PageAgent.ScreencastFrameAckResponse;
  5082. /**
  5083. * @param {!Protocol.PageAgent.ScreencastFrameAckRequest} obj
  5084. * @return {!Promise<!Protocol.PageAgent.ScreencastFrameAckResponse>} */
  5085. Protocol.PageAgent.prototype.invoke_screencastFrameAck = function(obj) {};
  5086. /**
  5087. * @param {Protocol.Page.FrameId} frameId
  5088. * @param {string} url
  5089. * @param {string} query
  5090. * @param {boolean=} opt_caseSensitive
  5091. * @param {boolean=} opt_isRegex
  5092. * @return {!Promise<?Array<Protocol.Debugger.SearchMatch>>}
  5093. */
  5094. Protocol.PageAgent.prototype.searchInResource = function(frameId, url, query, opt_caseSensitive, opt_isRegex) {};
  5095. /** @typedef {!{url: string, query: string, caseSensitive: (boolean|undefined), isRegex: (boolean|undefined), frameId: Protocol.Page.FrameId}} */
  5096. Protocol.PageAgent.SearchInResourceRequest;
  5097. /** @typedef {!{result: !Array<Protocol.Debugger.SearchMatch>}} */
  5098. Protocol.PageAgent.SearchInResourceResponse;
  5099. /**
  5100. * @param {!Protocol.PageAgent.SearchInResourceRequest} obj
  5101. * @return {!Promise<!Protocol.PageAgent.SearchInResourceResponse>} */
  5102. Protocol.PageAgent.prototype.invoke_searchInResource = function(obj) {};
  5103. /**
  5104. * @param {boolean} enabled
  5105. * @return {!Promise<undefined>}
  5106. */
  5107. Protocol.PageAgent.prototype.setAdBlockingEnabled = function(enabled) {};
  5108. /** @typedef {!{enabled: boolean}} */
  5109. Protocol.PageAgent.SetAdBlockingEnabledRequest;
  5110. /** @typedef {Object|undefined} */
  5111. Protocol.PageAgent.SetAdBlockingEnabledResponse;
  5112. /**
  5113. * @param {!Protocol.PageAgent.SetAdBlockingEnabledRequest} obj
  5114. * @return {!Promise<!Protocol.PageAgent.SetAdBlockingEnabledResponse>} */
  5115. Protocol.PageAgent.prototype.invoke_setAdBlockingEnabled = function(obj) {};
  5116. /**
  5117. * @param {boolean} enabled
  5118. * @return {!Promise<undefined>}
  5119. */
  5120. Protocol.PageAgent.prototype.setBypassCSP = function(enabled) {};
  5121. /** @typedef {!{enabled: boolean}} */
  5122. Protocol.PageAgent.SetBypassCSPRequest;
  5123. /** @typedef {Object|undefined} */
  5124. Protocol.PageAgent.SetBypassCSPResponse;
  5125. /**
  5126. * @param {!Protocol.PageAgent.SetBypassCSPRequest} obj
  5127. * @return {!Promise<!Protocol.PageAgent.SetBypassCSPResponse>} */
  5128. Protocol.PageAgent.prototype.invoke_setBypassCSP = function(obj) {};
  5129. /**
  5130. * @param {number} width
  5131. * @param {number} height
  5132. * @param {number} deviceScaleFactor
  5133. * @param {boolean} mobile
  5134. * @param {number=} opt_scale
  5135. * @param {number=} opt_screenWidth
  5136. * @param {number=} opt_screenHeight
  5137. * @param {number=} opt_positionX
  5138. * @param {number=} opt_positionY
  5139. * @param {boolean=} opt_dontSetVisibleSize
  5140. * @param {Protocol.Emulation.ScreenOrientation=} opt_screenOrientation
  5141. * @param {Protocol.Page.Viewport=} opt_viewport
  5142. * @return {!Promise<undefined>}
  5143. */
  5144. Protocol.PageAgent.prototype.setDeviceMetricsOverride = function(width, height, deviceScaleFactor, mobile, opt_scale, opt_screenWidth, opt_screenHeight, opt_positionX, opt_positionY, opt_dontSetVisibleSize, opt_screenOrientation, opt_viewport) {};
  5145. /** @typedef {!{deviceScaleFactor: number, positionX: (number|undefined), scale: (number|undefined), screenHeight: (number|undefined), mobile: boolean, screenOrientation: (Protocol.Emulation.ScreenOrientation|undefined), dontSetVisibleSize: (boolean|undefined), height: number, width: number, positionY: (number|undefined), screenWidth: (number|undefined), viewport: (Protocol.Page.Viewport|undefined)}} */
  5146. Protocol.PageAgent.SetDeviceMetricsOverrideRequest;
  5147. /** @typedef {Object|undefined} */
  5148. Protocol.PageAgent.SetDeviceMetricsOverrideResponse;
  5149. /**
  5150. * @param {!Protocol.PageAgent.SetDeviceMetricsOverrideRequest} obj
  5151. * @return {!Promise<!Protocol.PageAgent.SetDeviceMetricsOverrideResponse>} */
  5152. Protocol.PageAgent.prototype.invoke_setDeviceMetricsOverride = function(obj) {};
  5153. /**
  5154. * @param {number} alpha
  5155. * @param {number} beta
  5156. * @param {number} gamma
  5157. * @return {!Promise<undefined>}
  5158. */
  5159. Protocol.PageAgent.prototype.setDeviceOrientationOverride = function(alpha, beta, gamma) {};
  5160. /** @typedef {!{alpha: number, beta: number, gamma: number}} */
  5161. Protocol.PageAgent.SetDeviceOrientationOverrideRequest;
  5162. /** @typedef {Object|undefined} */
  5163. Protocol.PageAgent.SetDeviceOrientationOverrideResponse;
  5164. /**
  5165. * @param {!Protocol.PageAgent.SetDeviceOrientationOverrideRequest} obj
  5166. * @return {!Promise<!Protocol.PageAgent.SetDeviceOrientationOverrideResponse>} */
  5167. Protocol.PageAgent.prototype.invoke_setDeviceOrientationOverride = function(obj) {};
  5168. /**
  5169. * @param {Protocol.Page.FontFamilies} fontFamilies
  5170. * @return {!Promise<undefined>}
  5171. */
  5172. Protocol.PageAgent.prototype.setFontFamilies = function(fontFamilies) {};
  5173. /** @typedef {!{fontFamilies: Protocol.Page.FontFamilies}} */
  5174. Protocol.PageAgent.SetFontFamiliesRequest;
  5175. /** @typedef {Object|undefined} */
  5176. Protocol.PageAgent.SetFontFamiliesResponse;
  5177. /**
  5178. * @param {!Protocol.PageAgent.SetFontFamiliesRequest} obj
  5179. * @return {!Promise<!Protocol.PageAgent.SetFontFamiliesResponse>} */
  5180. Protocol.PageAgent.prototype.invoke_setFontFamilies = function(obj) {};
  5181. /**
  5182. * @param {Protocol.Page.FontSizes} fontSizes
  5183. * @return {!Promise<undefined>}
  5184. */
  5185. Protocol.PageAgent.prototype.setFontSizes = function(fontSizes) {};
  5186. /** @typedef {!{fontSizes: Protocol.Page.FontSizes}} */
  5187. Protocol.PageAgent.SetFontSizesRequest;
  5188. /** @typedef {Object|undefined} */
  5189. Protocol.PageAgent.SetFontSizesResponse;
  5190. /**
  5191. * @param {!Protocol.PageAgent.SetFontSizesRequest} obj
  5192. * @return {!Promise<!Protocol.PageAgent.SetFontSizesResponse>} */
  5193. Protocol.PageAgent.prototype.invoke_setFontSizes = function(obj) {};
  5194. /**
  5195. * @param {Protocol.Page.FrameId} frameId
  5196. * @param {string} html
  5197. * @return {!Promise<undefined>}
  5198. */
  5199. Protocol.PageAgent.prototype.setDocumentContent = function(frameId, html) {};
  5200. /** @typedef {!{html: string, frameId: Protocol.Page.FrameId}} */
  5201. Protocol.PageAgent.SetDocumentContentRequest;
  5202. /** @typedef {Object|undefined} */
  5203. Protocol.PageAgent.SetDocumentContentResponse;
  5204. /**
  5205. * @param {!Protocol.PageAgent.SetDocumentContentRequest} obj
  5206. * @return {!Promise<!Protocol.PageAgent.SetDocumentContentResponse>} */
  5207. Protocol.PageAgent.prototype.invoke_setDocumentContent = function(obj) {};
  5208. /**
  5209. * @param {string} behavior
  5210. * @param {string=} opt_downloadPath
  5211. * @return {!Promise<undefined>}
  5212. */
  5213. Protocol.PageAgent.prototype.setDownloadBehavior = function(behavior, opt_downloadPath) {};
  5214. /** @typedef {!{downloadPath: (string|undefined), behavior: string}} */
  5215. Protocol.PageAgent.SetDownloadBehaviorRequest;
  5216. /** @typedef {Object|undefined} */
  5217. Protocol.PageAgent.SetDownloadBehaviorResponse;
  5218. /**
  5219. * @param {!Protocol.PageAgent.SetDownloadBehaviorRequest} obj
  5220. * @return {!Promise<!Protocol.PageAgent.SetDownloadBehaviorResponse>} */
  5221. Protocol.PageAgent.prototype.invoke_setDownloadBehavior = function(obj) {};
  5222. /**
  5223. * @param {number=} opt_latitude
  5224. * @param {number=} opt_longitude
  5225. * @param {number=} opt_accuracy
  5226. * @return {!Promise<undefined>}
  5227. */
  5228. Protocol.PageAgent.prototype.setGeolocationOverride = function(opt_latitude, opt_longitude, opt_accuracy) {};
  5229. /** @typedef {!{latitude: (number|undefined), longitude: (number|undefined), accuracy: (number|undefined)}} */
  5230. Protocol.PageAgent.SetGeolocationOverrideRequest;
  5231. /** @typedef {Object|undefined} */
  5232. Protocol.PageAgent.SetGeolocationOverrideResponse;
  5233. /**
  5234. * @param {!Protocol.PageAgent.SetGeolocationOverrideRequest} obj
  5235. * @return {!Promise<!Protocol.PageAgent.SetGeolocationOverrideResponse>} */
  5236. Protocol.PageAgent.prototype.invoke_setGeolocationOverride = function(obj) {};
  5237. /**
  5238. * @param {boolean} enabled
  5239. * @return {!Promise<undefined>}
  5240. */
  5241. Protocol.PageAgent.prototype.setLifecycleEventsEnabled = function(enabled) {};
  5242. /** @typedef {!{enabled: boolean}} */
  5243. Protocol.PageAgent.SetLifecycleEventsEnabledRequest;
  5244. /** @typedef {Object|undefined} */
  5245. Protocol.PageAgent.SetLifecycleEventsEnabledResponse;
  5246. /**
  5247. * @param {!Protocol.PageAgent.SetLifecycleEventsEnabledRequest} obj
  5248. * @return {!Promise<!Protocol.PageAgent.SetLifecycleEventsEnabledResponse>} */
  5249. Protocol.PageAgent.prototype.invoke_setLifecycleEventsEnabled = function(obj) {};
  5250. /**
  5251. * @param {boolean} enabled
  5252. * @param {string=} opt_configuration
  5253. * @return {!Promise<undefined>}
  5254. */
  5255. Protocol.PageAgent.prototype.setTouchEmulationEnabled = function(enabled, opt_configuration) {};
  5256. /** @typedef {!{configuration: (string|undefined), enabled: boolean}} */
  5257. Protocol.PageAgent.SetTouchEmulationEnabledRequest;
  5258. /** @typedef {Object|undefined} */
  5259. Protocol.PageAgent.SetTouchEmulationEnabledResponse;
  5260. /**
  5261. * @param {!Protocol.PageAgent.SetTouchEmulationEnabledRequest} obj
  5262. * @return {!Promise<!Protocol.PageAgent.SetTouchEmulationEnabledResponse>} */
  5263. Protocol.PageAgent.prototype.invoke_setTouchEmulationEnabled = function(obj) {};
  5264. /**
  5265. * @param {string=} opt_format
  5266. * @param {number=} opt_quality
  5267. * @param {number=} opt_maxWidth
  5268. * @param {number=} opt_maxHeight
  5269. * @param {number=} opt_everyNthFrame
  5270. * @return {!Promise<undefined>}
  5271. */
  5272. Protocol.PageAgent.prototype.startScreencast = function(opt_format, opt_quality, opt_maxWidth, opt_maxHeight, opt_everyNthFrame) {};
  5273. /** @typedef {!{everyNthFrame: (number|undefined), quality: (number|undefined), maxHeight: (number|undefined), maxWidth: (number|undefined), format: (string|undefined)}} */
  5274. Protocol.PageAgent.StartScreencastRequest;
  5275. /** @typedef {Object|undefined} */
  5276. Protocol.PageAgent.StartScreencastResponse;
  5277. /**
  5278. * @param {!Protocol.PageAgent.StartScreencastRequest} obj
  5279. * @return {!Promise<!Protocol.PageAgent.StartScreencastResponse>} */
  5280. Protocol.PageAgent.prototype.invoke_startScreencast = function(obj) {};
  5281. /**
  5282. * @return {!Promise<undefined>}
  5283. */
  5284. Protocol.PageAgent.prototype.stopLoading = function() {};
  5285. /** @typedef {Object|undefined} */
  5286. Protocol.PageAgent.StopLoadingRequest;
  5287. /** @typedef {Object|undefined} */
  5288. Protocol.PageAgent.StopLoadingResponse;
  5289. /**
  5290. * @param {!Protocol.PageAgent.StopLoadingRequest} obj
  5291. * @return {!Promise<!Protocol.PageAgent.StopLoadingResponse>} */
  5292. Protocol.PageAgent.prototype.invoke_stopLoading = function(obj) {};
  5293. /**
  5294. * @return {!Promise<undefined>}
  5295. */
  5296. Protocol.PageAgent.prototype.crash = function() {};
  5297. /** @typedef {Object|undefined} */
  5298. Protocol.PageAgent.CrashRequest;
  5299. /** @typedef {Object|undefined} */
  5300. Protocol.PageAgent.CrashResponse;
  5301. /**
  5302. * @param {!Protocol.PageAgent.CrashRequest} obj
  5303. * @return {!Promise<!Protocol.PageAgent.CrashResponse>} */
  5304. Protocol.PageAgent.prototype.invoke_crash = function(obj) {};
  5305. /**
  5306. * @return {!Promise<undefined>}
  5307. */
  5308. Protocol.PageAgent.prototype.close = function() {};
  5309. /** @typedef {Object|undefined} */
  5310. Protocol.PageAgent.CloseRequest;
  5311. /** @typedef {Object|undefined} */
  5312. Protocol.PageAgent.CloseResponse;
  5313. /**
  5314. * @param {!Protocol.PageAgent.CloseRequest} obj
  5315. * @return {!Promise<!Protocol.PageAgent.CloseResponse>} */
  5316. Protocol.PageAgent.prototype.invoke_close = function(obj) {};
  5317. /**
  5318. * @param {string} state
  5319. * @return {!Promise<undefined>}
  5320. */
  5321. Protocol.PageAgent.prototype.setWebLifecycleState = function(state) {};
  5322. /** @typedef {!{state: string}} */
  5323. Protocol.PageAgent.SetWebLifecycleStateRequest;
  5324. /** @typedef {Object|undefined} */
  5325. Protocol.PageAgent.SetWebLifecycleStateResponse;
  5326. /**
  5327. * @param {!Protocol.PageAgent.SetWebLifecycleStateRequest} obj
  5328. * @return {!Promise<!Protocol.PageAgent.SetWebLifecycleStateResponse>} */
  5329. Protocol.PageAgent.prototype.invoke_setWebLifecycleState = function(obj) {};
  5330. /**
  5331. * @return {!Promise<undefined>}
  5332. */
  5333. Protocol.PageAgent.prototype.stopScreencast = function() {};
  5334. /** @typedef {Object|undefined} */
  5335. Protocol.PageAgent.StopScreencastRequest;
  5336. /** @typedef {Object|undefined} */
  5337. Protocol.PageAgent.StopScreencastResponse;
  5338. /**
  5339. * @param {!Protocol.PageAgent.StopScreencastRequest} obj
  5340. * @return {!Promise<!Protocol.PageAgent.StopScreencastResponse>} */
  5341. Protocol.PageAgent.prototype.invoke_stopScreencast = function(obj) {};
  5342. /**
  5343. * @param {boolean} enabled
  5344. * @return {!Promise<undefined>}
  5345. */
  5346. Protocol.PageAgent.prototype.setProduceCompilationCache = function(enabled) {};
  5347. /** @typedef {!{enabled: boolean}} */
  5348. Protocol.PageAgent.SetProduceCompilationCacheRequest;
  5349. /** @typedef {Object|undefined} */
  5350. Protocol.PageAgent.SetProduceCompilationCacheResponse;
  5351. /**
  5352. * @param {!Protocol.PageAgent.SetProduceCompilationCacheRequest} obj
  5353. * @return {!Promise<!Protocol.PageAgent.SetProduceCompilationCacheResponse>} */
  5354. Protocol.PageAgent.prototype.invoke_setProduceCompilationCache = function(obj) {};
  5355. /**
  5356. * @param {string} url
  5357. * @param {string} data
  5358. * @return {!Promise<undefined>}
  5359. */
  5360. Protocol.PageAgent.prototype.addCompilationCache = function(url, data) {};
  5361. /** @typedef {!{url: string, data: string}} */
  5362. Protocol.PageAgent.AddCompilationCacheRequest;
  5363. /** @typedef {Object|undefined} */
  5364. Protocol.PageAgent.AddCompilationCacheResponse;
  5365. /**
  5366. * @param {!Protocol.PageAgent.AddCompilationCacheRequest} obj
  5367. * @return {!Promise<!Protocol.PageAgent.AddCompilationCacheResponse>} */
  5368. Protocol.PageAgent.prototype.invoke_addCompilationCache = function(obj) {};
  5369. /**
  5370. * @return {!Promise<undefined>}
  5371. */
  5372. Protocol.PageAgent.prototype.clearCompilationCache = function() {};
  5373. /** @typedef {Object|undefined} */
  5374. Protocol.PageAgent.ClearCompilationCacheRequest;
  5375. /** @typedef {Object|undefined} */
  5376. Protocol.PageAgent.ClearCompilationCacheResponse;
  5377. /**
  5378. * @param {!Protocol.PageAgent.ClearCompilationCacheRequest} obj
  5379. * @return {!Promise<!Protocol.PageAgent.ClearCompilationCacheResponse>} */
  5380. Protocol.PageAgent.prototype.invoke_clearCompilationCache = function(obj) {};
  5381. /**
  5382. * @param {string} message
  5383. * @param {string=} opt_group
  5384. * @return {!Promise<undefined>}
  5385. */
  5386. Protocol.PageAgent.prototype.generateTestReport = function(message, opt_group) {};
  5387. /** @typedef {!{message: string, group: (string|undefined)}} */
  5388. Protocol.PageAgent.GenerateTestReportRequest;
  5389. /** @typedef {Object|undefined} */
  5390. Protocol.PageAgent.GenerateTestReportResponse;
  5391. /**
  5392. * @param {!Protocol.PageAgent.GenerateTestReportRequest} obj
  5393. * @return {!Promise<!Protocol.PageAgent.GenerateTestReportResponse>} */
  5394. Protocol.PageAgent.prototype.invoke_generateTestReport = function(obj) {};
  5395. /**
  5396. * @return {!Promise<undefined>}
  5397. */
  5398. Protocol.PageAgent.prototype.waitForDebugger = function() {};
  5399. /** @typedef {Object|undefined} */
  5400. Protocol.PageAgent.WaitForDebuggerRequest;
  5401. /** @typedef {Object|undefined} */
  5402. Protocol.PageAgent.WaitForDebuggerResponse;
  5403. /**
  5404. * @param {!Protocol.PageAgent.WaitForDebuggerRequest} obj
  5405. * @return {!Promise<!Protocol.PageAgent.WaitForDebuggerResponse>} */
  5406. Protocol.PageAgent.prototype.invoke_waitForDebugger = function(obj) {};
  5407. /**
  5408. * @param {boolean} enabled
  5409. * @return {!Promise<undefined>}
  5410. */
  5411. Protocol.PageAgent.prototype.setInterceptFileChooserDialog = function(enabled) {};
  5412. /** @typedef {!{enabled: boolean}} */
  5413. Protocol.PageAgent.SetInterceptFileChooserDialogRequest;
  5414. /** @typedef {Object|undefined} */
  5415. Protocol.PageAgent.SetInterceptFileChooserDialogResponse;
  5416. /**
  5417. * @param {!Protocol.PageAgent.SetInterceptFileChooserDialogRequest} obj
  5418. * @return {!Promise<!Protocol.PageAgent.SetInterceptFileChooserDialogResponse>} */
  5419. Protocol.PageAgent.prototype.invoke_setInterceptFileChooserDialog = function(obj) {};
  5420. /**
  5421. * @param {string} action
  5422. * @param {!Array<string>=} opt_files
  5423. * @return {!Promise<undefined>}
  5424. */
  5425. Protocol.PageAgent.prototype.handleFileChooser = function(action, opt_files) {};
  5426. /** @typedef {!{action: string, files: (!Array<string>|undefined)}} */
  5427. Protocol.PageAgent.HandleFileChooserRequest;
  5428. /** @typedef {Object|undefined} */
  5429. Protocol.PageAgent.HandleFileChooserResponse;
  5430. /**
  5431. * @param {!Protocol.PageAgent.HandleFileChooserRequest} obj
  5432. * @return {!Promise<!Protocol.PageAgent.HandleFileChooserResponse>} */
  5433. Protocol.PageAgent.prototype.invoke_handleFileChooser = function(obj) {};
  5434. /** @typedef {string} */
  5435. Protocol.Page.FrameId;
  5436. /** @typedef {!{id:(Protocol.Page.FrameId), parentId:(string|undefined), loaderId:(Protocol.Network.LoaderId), name:(string|undefined), url:(string), urlFragment:(string|undefined), securityOrigin:(string), mimeType:(string), unreachableUrl:(string|undefined)}} */
  5437. Protocol.Page.Frame;
  5438. /** @typedef {!{url:(string), type:(Protocol.Network.ResourceType), mimeType:(string), lastModified:(Protocol.Network.TimeSinceEpoch|undefined), contentSize:(number|undefined), failed:(boolean|undefined), canceled:(boolean|undefined)}} */
  5439. Protocol.Page.FrameResource;
  5440. /** @typedef {!{frame:(Protocol.Page.Frame), childFrames:(!Array<Protocol.Page.FrameResourceTree>|undefined), resources:(!Array<Protocol.Page.FrameResource>)}} */
  5441. Protocol.Page.FrameResourceTree;
  5442. /** @typedef {!{frame:(Protocol.Page.Frame), childFrames:(!Array<Protocol.Page.FrameTree>|undefined)}} */
  5443. Protocol.Page.FrameTree;
  5444. /** @typedef {string} */
  5445. Protocol.Page.ScriptIdentifier;
  5446. /** @enum {string} */
  5447. Protocol.Page.TransitionType = {
  5448. Link: "link",
  5449. Typed: "typed",
  5450. Address_bar: "address_bar",
  5451. Auto_bookmark: "auto_bookmark",
  5452. Auto_subframe: "auto_subframe",
  5453. Manual_subframe: "manual_subframe",
  5454. Generated: "generated",
  5455. Auto_toplevel: "auto_toplevel",
  5456. Form_submit: "form_submit",
  5457. Reload: "reload",
  5458. Keyword: "keyword",
  5459. Keyword_generated: "keyword_generated",
  5460. Other: "other"
  5461. };
  5462. /** @typedef {!{id:(number), url:(string), userTypedURL:(string), title:(string), transitionType:(Protocol.Page.TransitionType)}} */
  5463. Protocol.Page.NavigationEntry;
  5464. /** @typedef {!{offsetTop:(number), pageScaleFactor:(number), deviceWidth:(number), deviceHeight:(number), scrollOffsetX:(number), scrollOffsetY:(number), timestamp:(Protocol.Network.TimeSinceEpoch|undefined)}} */
  5465. Protocol.Page.ScreencastFrameMetadata;
  5466. /** @enum {string} */
  5467. Protocol.Page.DialogType = {
  5468. Alert: "alert",
  5469. Confirm: "confirm",
  5470. Prompt: "prompt",
  5471. Beforeunload: "beforeunload"
  5472. };
  5473. /** @typedef {!{message:(string), critical:(number), line:(number), column:(number)}} */
  5474. Protocol.Page.AppManifestError;
  5475. /** @typedef {!{pageX:(number), pageY:(number), clientWidth:(number), clientHeight:(number)}} */
  5476. Protocol.Page.LayoutViewport;
  5477. /** @typedef {!{offsetX:(number), offsetY:(number), pageX:(number), pageY:(number), clientWidth:(number), clientHeight:(number), scale:(number), zoom:(number|undefined)}} */
  5478. Protocol.Page.VisualViewport;
  5479. /** @typedef {!{x:(number), y:(number), width:(number), height:(number), scale:(number)}} */
  5480. Protocol.Page.Viewport;
  5481. /** @typedef {!{standard:(string|undefined), fixed:(string|undefined), serif:(string|undefined), sansSerif:(string|undefined), cursive:(string|undefined), fantasy:(string|undefined), pictograph:(string|undefined)}} */
  5482. Protocol.Page.FontFamilies;
  5483. /** @typedef {!{standard:(number|undefined), fixed:(number|undefined)}} */
  5484. Protocol.Page.FontSizes;
  5485. /** @enum {string} */
  5486. Protocol.Page.ClientNavigationReason = {
  5487. FormSubmissionGet: "formSubmissionGet",
  5488. FormSubmissionPost: "formSubmissionPost",
  5489. HttpHeaderRefresh: "httpHeaderRefresh",
  5490. ScriptInitiated: "scriptInitiated",
  5491. MetaTagRefresh: "metaTagRefresh",
  5492. PageBlockInterstitial: "pageBlockInterstitial",
  5493. Reload: "reload"
  5494. };
  5495. /** @interface */
  5496. Protocol.PageDispatcher = function() {};
  5497. /**
  5498. * @param {Protocol.Network.MonotonicTime} timestamp
  5499. */
  5500. Protocol.PageDispatcher.prototype.domContentEventFired = function(timestamp) {};
  5501. /**
  5502. * @param {string} mode
  5503. */
  5504. Protocol.PageDispatcher.prototype.fileChooserOpened = function(mode) {};
  5505. /**
  5506. * @param {Protocol.Page.FrameId} frameId
  5507. * @param {Protocol.Page.FrameId} parentFrameId
  5508. * @param {Protocol.Runtime.StackTrace=} opt_stack
  5509. */
  5510. Protocol.PageDispatcher.prototype.frameAttached = function(frameId, parentFrameId, opt_stack) {};
  5511. /**
  5512. * @param {Protocol.Page.FrameId} frameId
  5513. */
  5514. Protocol.PageDispatcher.prototype.frameClearedScheduledNavigation = function(frameId) {};
  5515. /**
  5516. * @param {Protocol.Page.FrameId} frameId
  5517. */
  5518. Protocol.PageDispatcher.prototype.frameDetached = function(frameId) {};
  5519. /**
  5520. * @param {Protocol.Page.Frame} frame
  5521. */
  5522. Protocol.PageDispatcher.prototype.frameNavigated = function(frame) {};
  5523. Protocol.PageDispatcher.prototype.frameResized = function() {};
  5524. /**
  5525. * @param {Protocol.Page.FrameId} frameId
  5526. * @param {Protocol.Page.ClientNavigationReason} reason
  5527. * @param {string} url
  5528. */
  5529. Protocol.PageDispatcher.prototype.frameRequestedNavigation = function(frameId, reason, url) {};
  5530. /**
  5531. * @param {Protocol.Page.FrameId} frameId
  5532. * @param {number} delay
  5533. * @param {string} reason
  5534. * @param {string} url
  5535. */
  5536. Protocol.PageDispatcher.prototype.frameScheduledNavigation = function(frameId, delay, reason, url) {};
  5537. /**
  5538. * @param {Protocol.Page.FrameId} frameId
  5539. */
  5540. Protocol.PageDispatcher.prototype.frameStartedLoading = function(frameId) {};
  5541. /**
  5542. * @param {Protocol.Page.FrameId} frameId
  5543. */
  5544. Protocol.PageDispatcher.prototype.frameStoppedLoading = function(frameId) {};
  5545. /**
  5546. * @param {Protocol.Page.FrameId} frameId
  5547. * @param {string} url
  5548. */
  5549. Protocol.PageDispatcher.prototype.downloadWillBegin = function(frameId, url) {};
  5550. Protocol.PageDispatcher.prototype.interstitialHidden = function() {};
  5551. Protocol.PageDispatcher.prototype.interstitialShown = function() {};
  5552. /**
  5553. * @param {boolean} result
  5554. * @param {string} userInput
  5555. */
  5556. Protocol.PageDispatcher.prototype.javascriptDialogClosed = function(result, userInput) {};
  5557. /**
  5558. * @param {string} url
  5559. * @param {string} message
  5560. * @param {Protocol.Page.DialogType} type
  5561. * @param {boolean} hasBrowserHandler
  5562. * @param {string=} opt_defaultPrompt
  5563. */
  5564. Protocol.PageDispatcher.prototype.javascriptDialogOpening = function(url, message, type, hasBrowserHandler, opt_defaultPrompt) {};
  5565. /**
  5566. * @param {Protocol.Page.FrameId} frameId
  5567. * @param {Protocol.Network.LoaderId} loaderId
  5568. * @param {string} name
  5569. * @param {Protocol.Network.MonotonicTime} timestamp
  5570. */
  5571. Protocol.PageDispatcher.prototype.lifecycleEvent = function(frameId, loaderId, name, timestamp) {};
  5572. /**
  5573. * @param {Protocol.Network.MonotonicTime} timestamp
  5574. */
  5575. Protocol.PageDispatcher.prototype.loadEventFired = function(timestamp) {};
  5576. /**
  5577. * @param {Protocol.Page.FrameId} frameId
  5578. * @param {string} url
  5579. */
  5580. Protocol.PageDispatcher.prototype.navigatedWithinDocument = function(frameId, url) {};
  5581. /**
  5582. * @param {string} data
  5583. * @param {Protocol.Page.ScreencastFrameMetadata} metadata
  5584. * @param {number} sessionId
  5585. */
  5586. Protocol.PageDispatcher.prototype.screencastFrame = function(data, metadata, sessionId) {};
  5587. /**
  5588. * @param {boolean} visible
  5589. */
  5590. Protocol.PageDispatcher.prototype.screencastVisibilityChanged = function(visible) {};
  5591. /**
  5592. * @param {string} url
  5593. * @param {string} windowName
  5594. * @param {!Array<string>} windowFeatures
  5595. * @param {boolean} userGesture
  5596. */
  5597. Protocol.PageDispatcher.prototype.windowOpen = function(url, windowName, windowFeatures, userGesture) {};
  5598. /**
  5599. * @param {string} url
  5600. * @param {string} data
  5601. */
  5602. Protocol.PageDispatcher.prototype.compilationCacheProduced = function(url, data) {};
  5603. Protocol.Performance = {};
  5604. /**
  5605. * @constructor
  5606. */
  5607. Protocol.PerformanceAgent = function(){};
  5608. /**
  5609. * @return {!Promise<undefined>}
  5610. */
  5611. Protocol.PerformanceAgent.prototype.disable = function() {};
  5612. /** @typedef {Object|undefined} */
  5613. Protocol.PerformanceAgent.DisableRequest;
  5614. /** @typedef {Object|undefined} */
  5615. Protocol.PerformanceAgent.DisableResponse;
  5616. /**
  5617. * @param {!Protocol.PerformanceAgent.DisableRequest} obj
  5618. * @return {!Promise<!Protocol.PerformanceAgent.DisableResponse>} */
  5619. Protocol.PerformanceAgent.prototype.invoke_disable = function(obj) {};
  5620. /**
  5621. * @return {!Promise<undefined>}
  5622. */
  5623. Protocol.PerformanceAgent.prototype.enable = function() {};
  5624. /** @typedef {Object|undefined} */
  5625. Protocol.PerformanceAgent.EnableRequest;
  5626. /** @typedef {Object|undefined} */
  5627. Protocol.PerformanceAgent.EnableResponse;
  5628. /**
  5629. * @param {!Protocol.PerformanceAgent.EnableRequest} obj
  5630. * @return {!Promise<!Protocol.PerformanceAgent.EnableResponse>} */
  5631. Protocol.PerformanceAgent.prototype.invoke_enable = function(obj) {};
  5632. /**
  5633. * @param {string} timeDomain
  5634. * @return {!Promise<undefined>}
  5635. */
  5636. Protocol.PerformanceAgent.prototype.setTimeDomain = function(timeDomain) {};
  5637. /** @typedef {!{timeDomain: string}} */
  5638. Protocol.PerformanceAgent.SetTimeDomainRequest;
  5639. /** @typedef {Object|undefined} */
  5640. Protocol.PerformanceAgent.SetTimeDomainResponse;
  5641. /**
  5642. * @param {!Protocol.PerformanceAgent.SetTimeDomainRequest} obj
  5643. * @return {!Promise<!Protocol.PerformanceAgent.SetTimeDomainResponse>} */
  5644. Protocol.PerformanceAgent.prototype.invoke_setTimeDomain = function(obj) {};
  5645. /**
  5646. * @return {!Promise<?Array<Protocol.Performance.Metric>>}
  5647. */
  5648. Protocol.PerformanceAgent.prototype.getMetrics = function() {};
  5649. /** @typedef {Object|undefined} */
  5650. Protocol.PerformanceAgent.GetMetricsRequest;
  5651. /** @typedef {!{metrics: !Array<Protocol.Performance.Metric>}} */
  5652. Protocol.PerformanceAgent.GetMetricsResponse;
  5653. /**
  5654. * @param {!Protocol.PerformanceAgent.GetMetricsRequest} obj
  5655. * @return {!Promise<!Protocol.PerformanceAgent.GetMetricsResponse>} */
  5656. Protocol.PerformanceAgent.prototype.invoke_getMetrics = function(obj) {};
  5657. /** @typedef {!{name:(string), value:(number)}} */
  5658. Protocol.Performance.Metric;
  5659. /** @interface */
  5660. Protocol.PerformanceDispatcher = function() {};
  5661. /**
  5662. * @param {!Array<Protocol.Performance.Metric>} metrics
  5663. * @param {string} title
  5664. */
  5665. Protocol.PerformanceDispatcher.prototype.metrics = function(metrics, title) {};
  5666. Protocol.Security = {};
  5667. /**
  5668. * @constructor
  5669. */
  5670. Protocol.SecurityAgent = function(){};
  5671. /**
  5672. * @return {!Promise<undefined>}
  5673. */
  5674. Protocol.SecurityAgent.prototype.disable = function() {};
  5675. /** @typedef {Object|undefined} */
  5676. Protocol.SecurityAgent.DisableRequest;
  5677. /** @typedef {Object|undefined} */
  5678. Protocol.SecurityAgent.DisableResponse;
  5679. /**
  5680. * @param {!Protocol.SecurityAgent.DisableRequest} obj
  5681. * @return {!Promise<!Protocol.SecurityAgent.DisableResponse>} */
  5682. Protocol.SecurityAgent.prototype.invoke_disable = function(obj) {};
  5683. /**
  5684. * @return {!Promise<undefined>}
  5685. */
  5686. Protocol.SecurityAgent.prototype.enable = function() {};
  5687. /** @typedef {Object|undefined} */
  5688. Protocol.SecurityAgent.EnableRequest;
  5689. /** @typedef {Object|undefined} */
  5690. Protocol.SecurityAgent.EnableResponse;
  5691. /**
  5692. * @param {!Protocol.SecurityAgent.EnableRequest} obj
  5693. * @return {!Promise<!Protocol.SecurityAgent.EnableResponse>} */
  5694. Protocol.SecurityAgent.prototype.invoke_enable = function(obj) {};
  5695. /**
  5696. * @param {boolean} ignore
  5697. * @return {!Promise<undefined>}
  5698. */
  5699. Protocol.SecurityAgent.prototype.setIgnoreCertificateErrors = function(ignore) {};
  5700. /** @typedef {!{ignore: boolean}} */
  5701. Protocol.SecurityAgent.SetIgnoreCertificateErrorsRequest;
  5702. /** @typedef {Object|undefined} */
  5703. Protocol.SecurityAgent.SetIgnoreCertificateErrorsResponse;
  5704. /**
  5705. * @param {!Protocol.SecurityAgent.SetIgnoreCertificateErrorsRequest} obj
  5706. * @return {!Promise<!Protocol.SecurityAgent.SetIgnoreCertificateErrorsResponse>} */
  5707. Protocol.SecurityAgent.prototype.invoke_setIgnoreCertificateErrors = function(obj) {};
  5708. /**
  5709. * @param {number} eventId
  5710. * @param {Protocol.Security.CertificateErrorAction} action
  5711. * @return {!Promise<undefined>}
  5712. */
  5713. Protocol.SecurityAgent.prototype.handleCertificateError = function(eventId, action) {};
  5714. /** @typedef {!{eventId: number, action: Protocol.Security.CertificateErrorAction}} */
  5715. Protocol.SecurityAgent.HandleCertificateErrorRequest;
  5716. /** @typedef {Object|undefined} */
  5717. Protocol.SecurityAgent.HandleCertificateErrorResponse;
  5718. /**
  5719. * @param {!Protocol.SecurityAgent.HandleCertificateErrorRequest} obj
  5720. * @return {!Promise<!Protocol.SecurityAgent.HandleCertificateErrorResponse>} */
  5721. Protocol.SecurityAgent.prototype.invoke_handleCertificateError = function(obj) {};
  5722. /**
  5723. * @param {boolean} override
  5724. * @return {!Promise<undefined>}
  5725. */
  5726. Protocol.SecurityAgent.prototype.setOverrideCertificateErrors = function(override) {};
  5727. /** @typedef {!{override: boolean}} */
  5728. Protocol.SecurityAgent.SetOverrideCertificateErrorsRequest;
  5729. /** @typedef {Object|undefined} */
  5730. Protocol.SecurityAgent.SetOverrideCertificateErrorsResponse;
  5731. /**
  5732. * @param {!Protocol.SecurityAgent.SetOverrideCertificateErrorsRequest} obj
  5733. * @return {!Promise<!Protocol.SecurityAgent.SetOverrideCertificateErrorsResponse>} */
  5734. Protocol.SecurityAgent.prototype.invoke_setOverrideCertificateErrors = function(obj) {};
  5735. /** @typedef {number} */
  5736. Protocol.Security.CertificateId;
  5737. /** @enum {string} */
  5738. Protocol.Security.MixedContentType = {
  5739. Blockable: "blockable",
  5740. OptionallyBlockable: "optionally-blockable",
  5741. None: "none"
  5742. };
  5743. /** @enum {string} */
  5744. Protocol.Security.SecurityState = {
  5745. Unknown: "unknown",
  5746. Neutral: "neutral",
  5747. Insecure: "insecure",
  5748. Secure: "secure",
  5749. Info: "info",
  5750. InsecureBroken: "insecure-broken"
  5751. };
  5752. /** @typedef {!{protocol:(string), keyExchange:(string), keyExchangeGroup:(string|undefined), cipher:(string), mac:(string|undefined), certificate:(!Array<string>), subjectName:(string), issuer:(string), validFrom:(Protocol.Network.TimeSinceEpoch), validTo:(Protocol.Network.TimeSinceEpoch), certifcateHasWeakSignature:(boolean), modernSSL:(boolean), obsoleteSslProtocol:(boolean), obsoleteSslKeyExchange:(boolean), obsoleteSslCipher:(boolean), obsoleteSslSignature:(boolean)}} */
  5753. Protocol.Security.CertificateSecurityState;
  5754. /** @typedef {!{securityState:(Protocol.Security.SecurityState), certificateSecurityState:(Protocol.Security.CertificateSecurityState|undefined), securityStateIssueIds:(!Array<string>)}} */
  5755. Protocol.Security.VisibleSecurityState;
  5756. /** @typedef {!{securityState:(Protocol.Security.SecurityState), title:(string), summary:(string), description:(string), mixedContentType:(Protocol.Security.MixedContentType), certificate:(!Array<string>), recommendations:(!Array<string>|undefined)}} */
  5757. Protocol.Security.SecurityStateExplanation;
  5758. /** @typedef {!{ranMixedContent:(boolean), displayedMixedContent:(boolean), containedMixedForm:(boolean), ranContentWithCertErrors:(boolean), displayedContentWithCertErrors:(boolean), ranInsecureContentStyle:(Protocol.Security.SecurityState), displayedInsecureContentStyle:(Protocol.Security.SecurityState)}} */
  5759. Protocol.Security.InsecureContentStatus;
  5760. /** @enum {string} */
  5761. Protocol.Security.CertificateErrorAction = {
  5762. Continue: "continue",
  5763. Cancel: "cancel"
  5764. };
  5765. /** @interface */
  5766. Protocol.SecurityDispatcher = function() {};
  5767. /**
  5768. * @param {number} eventId
  5769. * @param {string} errorType
  5770. * @param {string} requestURL
  5771. */
  5772. Protocol.SecurityDispatcher.prototype.certificateError = function(eventId, errorType, requestURL) {};
  5773. /**
  5774. * @param {Protocol.Security.VisibleSecurityState} visibleSecurityState
  5775. */
  5776. Protocol.SecurityDispatcher.prototype.visibleSecurityStateChanged = function(visibleSecurityState) {};
  5777. /**
  5778. * @param {Protocol.Security.SecurityState} securityState
  5779. * @param {boolean} schemeIsCryptographic
  5780. * @param {!Array<Protocol.Security.SecurityStateExplanation>} explanations
  5781. * @param {Protocol.Security.InsecureContentStatus} insecureContentStatus
  5782. * @param {string=} opt_summary
  5783. */
  5784. Protocol.SecurityDispatcher.prototype.securityStateChanged = function(securityState, schemeIsCryptographic, explanations, insecureContentStatus, opt_summary) {};
  5785. Protocol.ServiceWorker = {};
  5786. /**
  5787. * @constructor
  5788. */
  5789. Protocol.ServiceWorkerAgent = function(){};
  5790. /**
  5791. * @param {string} origin
  5792. * @param {Protocol.ServiceWorker.RegistrationID} registrationId
  5793. * @param {string} data
  5794. * @return {!Promise<undefined>}
  5795. */
  5796. Protocol.ServiceWorkerAgent.prototype.deliverPushMessage = function(origin, registrationId, data) {};
  5797. /** @typedef {!{origin: string, registrationId: Protocol.ServiceWorker.RegistrationID, data: string}} */
  5798. Protocol.ServiceWorkerAgent.DeliverPushMessageRequest;
  5799. /** @typedef {Object|undefined} */
  5800. Protocol.ServiceWorkerAgent.DeliverPushMessageResponse;
  5801. /**
  5802. * @param {!Protocol.ServiceWorkerAgent.DeliverPushMessageRequest} obj
  5803. * @return {!Promise<!Protocol.ServiceWorkerAgent.DeliverPushMessageResponse>} */
  5804. Protocol.ServiceWorkerAgent.prototype.invoke_deliverPushMessage = function(obj) {};
  5805. /**
  5806. * @return {!Promise<undefined>}
  5807. */
  5808. Protocol.ServiceWorkerAgent.prototype.disable = function() {};
  5809. /** @typedef {Object|undefined} */
  5810. Protocol.ServiceWorkerAgent.DisableRequest;
  5811. /** @typedef {Object|undefined} */
  5812. Protocol.ServiceWorkerAgent.DisableResponse;
  5813. /**
  5814. * @param {!Protocol.ServiceWorkerAgent.DisableRequest} obj
  5815. * @return {!Promise<!Protocol.ServiceWorkerAgent.DisableResponse>} */
  5816. Protocol.ServiceWorkerAgent.prototype.invoke_disable = function(obj) {};
  5817. /**
  5818. * @param {string} origin
  5819. * @param {Protocol.ServiceWorker.RegistrationID} registrationId
  5820. * @param {string} tag
  5821. * @param {boolean} lastChance
  5822. * @return {!Promise<undefined>}
  5823. */
  5824. Protocol.ServiceWorkerAgent.prototype.dispatchSyncEvent = function(origin, registrationId, tag, lastChance) {};
  5825. /** @typedef {!{origin: string, registrationId: Protocol.ServiceWorker.RegistrationID, tag: string, lastChance: boolean}} */
  5826. Protocol.ServiceWorkerAgent.DispatchSyncEventRequest;
  5827. /** @typedef {Object|undefined} */
  5828. Protocol.ServiceWorkerAgent.DispatchSyncEventResponse;
  5829. /**
  5830. * @param {!Protocol.ServiceWorkerAgent.DispatchSyncEventRequest} obj
  5831. * @return {!Promise<!Protocol.ServiceWorkerAgent.DispatchSyncEventResponse>} */
  5832. Protocol.ServiceWorkerAgent.prototype.invoke_dispatchSyncEvent = function(obj) {};
  5833. /**
  5834. * @param {string} origin
  5835. * @param {Protocol.ServiceWorker.RegistrationID} registrationId
  5836. * @param {string} tag
  5837. * @return {!Promise<undefined>}
  5838. */
  5839. Protocol.ServiceWorkerAgent.prototype.dispatchPeriodicSyncEvent = function(origin, registrationId, tag) {};
  5840. /** @typedef {!{origin: string, registrationId: Protocol.ServiceWorker.RegistrationID, tag: string}} */
  5841. Protocol.ServiceWorkerAgent.DispatchPeriodicSyncEventRequest;
  5842. /** @typedef {Object|undefined} */
  5843. Protocol.ServiceWorkerAgent.DispatchPeriodicSyncEventResponse;
  5844. /**
  5845. * @param {!Protocol.ServiceWorkerAgent.DispatchPeriodicSyncEventRequest} obj
  5846. * @return {!Promise<!Protocol.ServiceWorkerAgent.DispatchPeriodicSyncEventResponse>} */
  5847. Protocol.ServiceWorkerAgent.prototype.invoke_dispatchPeriodicSyncEvent = function(obj) {};
  5848. /**
  5849. * @return {!Promise<undefined>}
  5850. */
  5851. Protocol.ServiceWorkerAgent.prototype.enable = function() {};
  5852. /** @typedef {Object|undefined} */
  5853. Protocol.ServiceWorkerAgent.EnableRequest;
  5854. /** @typedef {Object|undefined} */
  5855. Protocol.ServiceWorkerAgent.EnableResponse;
  5856. /**
  5857. * @param {!Protocol.ServiceWorkerAgent.EnableRequest} obj
  5858. * @return {!Promise<!Protocol.ServiceWorkerAgent.EnableResponse>} */
  5859. Protocol.ServiceWorkerAgent.prototype.invoke_enable = function(obj) {};
  5860. /**
  5861. * @param {string} versionId
  5862. * @return {!Promise<undefined>}
  5863. */
  5864. Protocol.ServiceWorkerAgent.prototype.inspectWorker = function(versionId) {};
  5865. /** @typedef {!{versionId: string}} */
  5866. Protocol.ServiceWorkerAgent.InspectWorkerRequest;
  5867. /** @typedef {Object|undefined} */
  5868. Protocol.ServiceWorkerAgent.InspectWorkerResponse;
  5869. /**
  5870. * @param {!Protocol.ServiceWorkerAgent.InspectWorkerRequest} obj
  5871. * @return {!Promise<!Protocol.ServiceWorkerAgent.InspectWorkerResponse>} */
  5872. Protocol.ServiceWorkerAgent.prototype.invoke_inspectWorker = function(obj) {};
  5873. /**
  5874. * @param {boolean} forceUpdateOnPageLoad
  5875. * @return {!Promise<undefined>}
  5876. */
  5877. Protocol.ServiceWorkerAgent.prototype.setForceUpdateOnPageLoad = function(forceUpdateOnPageLoad) {};
  5878. /** @typedef {!{forceUpdateOnPageLoad: boolean}} */
  5879. Protocol.ServiceWorkerAgent.SetForceUpdateOnPageLoadRequest;
  5880. /** @typedef {Object|undefined} */
  5881. Protocol.ServiceWorkerAgent.SetForceUpdateOnPageLoadResponse;
  5882. /**
  5883. * @param {!Protocol.ServiceWorkerAgent.SetForceUpdateOnPageLoadRequest} obj
  5884. * @return {!Promise<!Protocol.ServiceWorkerAgent.SetForceUpdateOnPageLoadResponse>} */
  5885. Protocol.ServiceWorkerAgent.prototype.invoke_setForceUpdateOnPageLoad = function(obj) {};
  5886. /**
  5887. * @param {string} scopeURL
  5888. * @return {!Promise<undefined>}
  5889. */
  5890. Protocol.ServiceWorkerAgent.prototype.skipWaiting = function(scopeURL) {};
  5891. /** @typedef {!{scopeURL: string}} */
  5892. Protocol.ServiceWorkerAgent.SkipWaitingRequest;
  5893. /** @typedef {Object|undefined} */
  5894. Protocol.ServiceWorkerAgent.SkipWaitingResponse;
  5895. /**
  5896. * @param {!Protocol.ServiceWorkerAgent.SkipWaitingRequest} obj
  5897. * @return {!Promise<!Protocol.ServiceWorkerAgent.SkipWaitingResponse>} */
  5898. Protocol.ServiceWorkerAgent.prototype.invoke_skipWaiting = function(obj) {};
  5899. /**
  5900. * @param {string} scopeURL
  5901. * @return {!Promise<undefined>}
  5902. */
  5903. Protocol.ServiceWorkerAgent.prototype.startWorker = function(scopeURL) {};
  5904. /** @typedef {!{scopeURL: string}} */
  5905. Protocol.ServiceWorkerAgent.StartWorkerRequest;
  5906. /** @typedef {Object|undefined} */
  5907. Protocol.ServiceWorkerAgent.StartWorkerResponse;
  5908. /**
  5909. * @param {!Protocol.ServiceWorkerAgent.StartWorkerRequest} obj
  5910. * @return {!Promise<!Protocol.ServiceWorkerAgent.StartWorkerResponse>} */
  5911. Protocol.ServiceWorkerAgent.prototype.invoke_startWorker = function(obj) {};
  5912. /**
  5913. * @return {!Promise<undefined>}
  5914. */
  5915. Protocol.ServiceWorkerAgent.prototype.stopAllWorkers = function() {};
  5916. /** @typedef {Object|undefined} */
  5917. Protocol.ServiceWorkerAgent.StopAllWorkersRequest;
  5918. /** @typedef {Object|undefined} */
  5919. Protocol.ServiceWorkerAgent.StopAllWorkersResponse;
  5920. /**
  5921. * @param {!Protocol.ServiceWorkerAgent.StopAllWorkersRequest} obj
  5922. * @return {!Promise<!Protocol.ServiceWorkerAgent.StopAllWorkersResponse>} */
  5923. Protocol.ServiceWorkerAgent.prototype.invoke_stopAllWorkers = function(obj) {};
  5924. /**
  5925. * @param {string} versionId
  5926. * @return {!Promise<undefined>}
  5927. */
  5928. Protocol.ServiceWorkerAgent.prototype.stopWorker = function(versionId) {};
  5929. /** @typedef {!{versionId: string}} */
  5930. Protocol.ServiceWorkerAgent.StopWorkerRequest;
  5931. /** @typedef {Object|undefined} */
  5932. Protocol.ServiceWorkerAgent.StopWorkerResponse;
  5933. /**
  5934. * @param {!Protocol.ServiceWorkerAgent.StopWorkerRequest} obj
  5935. * @return {!Promise<!Protocol.ServiceWorkerAgent.StopWorkerResponse>} */
  5936. Protocol.ServiceWorkerAgent.prototype.invoke_stopWorker = function(obj) {};
  5937. /**
  5938. * @param {string} scopeURL
  5939. * @return {!Promise<undefined>}
  5940. */
  5941. Protocol.ServiceWorkerAgent.prototype.unregister = function(scopeURL) {};
  5942. /** @typedef {!{scopeURL: string}} */
  5943. Protocol.ServiceWorkerAgent.UnregisterRequest;
  5944. /** @typedef {Object|undefined} */
  5945. Protocol.ServiceWorkerAgent.UnregisterResponse;
  5946. /**
  5947. * @param {!Protocol.ServiceWorkerAgent.UnregisterRequest} obj
  5948. * @return {!Promise<!Protocol.ServiceWorkerAgent.UnregisterResponse>} */
  5949. Protocol.ServiceWorkerAgent.prototype.invoke_unregister = function(obj) {};
  5950. /**
  5951. * @param {string} scopeURL
  5952. * @return {!Promise<undefined>}
  5953. */
  5954. Protocol.ServiceWorkerAgent.prototype.updateRegistration = function(scopeURL) {};
  5955. /** @typedef {!{scopeURL: string}} */
  5956. Protocol.ServiceWorkerAgent.UpdateRegistrationRequest;
  5957. /** @typedef {Object|undefined} */
  5958. Protocol.ServiceWorkerAgent.UpdateRegistrationResponse;
  5959. /**
  5960. * @param {!Protocol.ServiceWorkerAgent.UpdateRegistrationRequest} obj
  5961. * @return {!Promise<!Protocol.ServiceWorkerAgent.UpdateRegistrationResponse>} */
  5962. Protocol.ServiceWorkerAgent.prototype.invoke_updateRegistration = function(obj) {};
  5963. /** @typedef {string} */
  5964. Protocol.ServiceWorker.RegistrationID;
  5965. /** @typedef {!{registrationId:(Protocol.ServiceWorker.RegistrationID), scopeURL:(string), isDeleted:(boolean)}} */
  5966. Protocol.ServiceWorker.ServiceWorkerRegistration;
  5967. /** @enum {string} */
  5968. Protocol.ServiceWorker.ServiceWorkerVersionRunningStatus = {
  5969. Stopped: "stopped",
  5970. Starting: "starting",
  5971. Running: "running",
  5972. Stopping: "stopping"
  5973. };
  5974. /** @enum {string} */
  5975. Protocol.ServiceWorker.ServiceWorkerVersionStatus = {
  5976. New: "new",
  5977. Installing: "installing",
  5978. Installed: "installed",
  5979. Activating: "activating",
  5980. Activated: "activated",
  5981. Redundant: "redundant"
  5982. };
  5983. /** @typedef {!{versionId:(string), registrationId:(Protocol.ServiceWorker.RegistrationID), scriptURL:(string), runningStatus:(Protocol.ServiceWorker.ServiceWorkerVersionRunningStatus), status:(Protocol.ServiceWorker.ServiceWorkerVersionStatus), scriptLastModified:(number|undefined), scriptResponseTime:(number|undefined), controlledClients:(!Array<Protocol.Target.TargetID>|undefined), targetId:(Protocol.Target.TargetID|undefined)}} */
  5984. Protocol.ServiceWorker.ServiceWorkerVersion;
  5985. /** @typedef {!{errorMessage:(string), registrationId:(Protocol.ServiceWorker.RegistrationID), versionId:(string), sourceURL:(string), lineNumber:(number), columnNumber:(number)}} */
  5986. Protocol.ServiceWorker.ServiceWorkerErrorMessage;
  5987. /** @interface */
  5988. Protocol.ServiceWorkerDispatcher = function() {};
  5989. /**
  5990. * @param {Protocol.ServiceWorker.ServiceWorkerErrorMessage} errorMessage
  5991. */
  5992. Protocol.ServiceWorkerDispatcher.prototype.workerErrorReported = function(errorMessage) {};
  5993. /**
  5994. * @param {!Array<Protocol.ServiceWorker.ServiceWorkerRegistration>} registrations
  5995. */
  5996. Protocol.ServiceWorkerDispatcher.prototype.workerRegistrationUpdated = function(registrations) {};
  5997. /**
  5998. * @param {!Array<Protocol.ServiceWorker.ServiceWorkerVersion>} versions
  5999. */
  6000. Protocol.ServiceWorkerDispatcher.prototype.workerVersionUpdated = function(versions) {};
  6001. Protocol.Storage = {};
  6002. /**
  6003. * @constructor
  6004. */
  6005. Protocol.StorageAgent = function(){};
  6006. /**
  6007. * @param {string} origin
  6008. * @param {string} storageTypes
  6009. * @return {!Promise<undefined>}
  6010. */
  6011. Protocol.StorageAgent.prototype.clearDataForOrigin = function(origin, storageTypes) {};
  6012. /** @typedef {!{origin: string, storageTypes: string}} */
  6013. Protocol.StorageAgent.ClearDataForOriginRequest;
  6014. /** @typedef {Object|undefined} */
  6015. Protocol.StorageAgent.ClearDataForOriginResponse;
  6016. /**
  6017. * @param {!Protocol.StorageAgent.ClearDataForOriginRequest} obj
  6018. * @return {!Promise<!Protocol.StorageAgent.ClearDataForOriginResponse>} */
  6019. Protocol.StorageAgent.prototype.invoke_clearDataForOrigin = function(obj) {};
  6020. /**
  6021. * @param {string} origin
  6022. * @return {!Promise<?number>}
  6023. */
  6024. Protocol.StorageAgent.prototype.getUsageAndQuota = function(origin) {};
  6025. /** @typedef {!{origin: string}} */
  6026. Protocol.StorageAgent.GetUsageAndQuotaRequest;
  6027. /** @typedef {!{usage: number, usageBreakdown: !Array<Protocol.Storage.UsageForType>, quota: number}} */
  6028. Protocol.StorageAgent.GetUsageAndQuotaResponse;
  6029. /**
  6030. * @param {!Protocol.StorageAgent.GetUsageAndQuotaRequest} obj
  6031. * @return {!Promise<!Protocol.StorageAgent.GetUsageAndQuotaResponse>} */
  6032. Protocol.StorageAgent.prototype.invoke_getUsageAndQuota = function(obj) {};
  6033. /**
  6034. * @param {string} origin
  6035. * @return {!Promise<undefined>}
  6036. */
  6037. Protocol.StorageAgent.prototype.trackCacheStorageForOrigin = function(origin) {};
  6038. /** @typedef {!{origin: string}} */
  6039. Protocol.StorageAgent.TrackCacheStorageForOriginRequest;
  6040. /** @typedef {Object|undefined} */
  6041. Protocol.StorageAgent.TrackCacheStorageForOriginResponse;
  6042. /**
  6043. * @param {!Protocol.StorageAgent.TrackCacheStorageForOriginRequest} obj
  6044. * @return {!Promise<!Protocol.StorageAgent.TrackCacheStorageForOriginResponse>} */
  6045. Protocol.StorageAgent.prototype.invoke_trackCacheStorageForOrigin = function(obj) {};
  6046. /**
  6047. * @param {string} origin
  6048. * @return {!Promise<undefined>}
  6049. */
  6050. Protocol.StorageAgent.prototype.trackIndexedDBForOrigin = function(origin) {};
  6051. /** @typedef {!{origin: string}} */
  6052. Protocol.StorageAgent.TrackIndexedDBForOriginRequest;
  6053. /** @typedef {Object|undefined} */
  6054. Protocol.StorageAgent.TrackIndexedDBForOriginResponse;
  6055. /**
  6056. * @param {!Protocol.StorageAgent.TrackIndexedDBForOriginRequest} obj
  6057. * @return {!Promise<!Protocol.StorageAgent.TrackIndexedDBForOriginResponse>} */
  6058. Protocol.StorageAgent.prototype.invoke_trackIndexedDBForOrigin = function(obj) {};
  6059. /**
  6060. * @param {string} origin
  6061. * @return {!Promise<undefined>}
  6062. */
  6063. Protocol.StorageAgent.prototype.untrackCacheStorageForOrigin = function(origin) {};
  6064. /** @typedef {!{origin: string}} */
  6065. Protocol.StorageAgent.UntrackCacheStorageForOriginRequest;
  6066. /** @typedef {Object|undefined} */
  6067. Protocol.StorageAgent.UntrackCacheStorageForOriginResponse;
  6068. /**
  6069. * @param {!Protocol.StorageAgent.UntrackCacheStorageForOriginRequest} obj
  6070. * @return {!Promise<!Protocol.StorageAgent.UntrackCacheStorageForOriginResponse>} */
  6071. Protocol.StorageAgent.prototype.invoke_untrackCacheStorageForOrigin = function(obj) {};
  6072. /**
  6073. * @param {string} origin
  6074. * @return {!Promise<undefined>}
  6075. */
  6076. Protocol.StorageAgent.prototype.untrackIndexedDBForOrigin = function(origin) {};
  6077. /** @typedef {!{origin: string}} */
  6078. Protocol.StorageAgent.UntrackIndexedDBForOriginRequest;
  6079. /** @typedef {Object|undefined} */
  6080. Protocol.StorageAgent.UntrackIndexedDBForOriginResponse;
  6081. /**
  6082. * @param {!Protocol.StorageAgent.UntrackIndexedDBForOriginRequest} obj
  6083. * @return {!Promise<!Protocol.StorageAgent.UntrackIndexedDBForOriginResponse>} */
  6084. Protocol.StorageAgent.prototype.invoke_untrackIndexedDBForOrigin = function(obj) {};
  6085. /** @enum {string} */
  6086. Protocol.Storage.StorageType = {
  6087. Appcache: "appcache",
  6088. Cookies: "cookies",
  6089. File_systems: "file_systems",
  6090. Indexeddb: "indexeddb",
  6091. Local_storage: "local_storage",
  6092. Shader_cache: "shader_cache",
  6093. Websql: "websql",
  6094. Service_workers: "service_workers",
  6095. Cache_storage: "cache_storage",
  6096. All: "all",
  6097. Other: "other"
  6098. };
  6099. /** @typedef {!{storageType:(Protocol.Storage.StorageType), usage:(number)}} */
  6100. Protocol.Storage.UsageForType;
  6101. /** @interface */
  6102. Protocol.StorageDispatcher = function() {};
  6103. /**
  6104. * @param {string} origin
  6105. * @param {string} cacheName
  6106. */
  6107. Protocol.StorageDispatcher.prototype.cacheStorageContentUpdated = function(origin, cacheName) {};
  6108. /**
  6109. * @param {string} origin
  6110. */
  6111. Protocol.StorageDispatcher.prototype.cacheStorageListUpdated = function(origin) {};
  6112. /**
  6113. * @param {string} origin
  6114. * @param {string} databaseName
  6115. * @param {string} objectStoreName
  6116. */
  6117. Protocol.StorageDispatcher.prototype.indexedDBContentUpdated = function(origin, databaseName, objectStoreName) {};
  6118. /**
  6119. * @param {string} origin
  6120. */
  6121. Protocol.StorageDispatcher.prototype.indexedDBListUpdated = function(origin) {};
  6122. Protocol.SystemInfo = {};
  6123. /**
  6124. * @constructor
  6125. */
  6126. Protocol.SystemInfoAgent = function(){};
  6127. /**
  6128. * @return {!Promise<?Protocol.SystemInfo.GPUInfo>}
  6129. */
  6130. Protocol.SystemInfoAgent.prototype.getInfo = function() {};
  6131. /** @typedef {Object|undefined} */
  6132. Protocol.SystemInfoAgent.GetInfoRequest;
  6133. /** @typedef {!{gpu: Protocol.SystemInfo.GPUInfo, commandLine: string, modelName: string, modelVersion: string}} */
  6134. Protocol.SystemInfoAgent.GetInfoResponse;
  6135. /**
  6136. * @param {!Protocol.SystemInfoAgent.GetInfoRequest} obj
  6137. * @return {!Promise<!Protocol.SystemInfoAgent.GetInfoResponse>} */
  6138. Protocol.SystemInfoAgent.prototype.invoke_getInfo = function(obj) {};
  6139. /**
  6140. * @return {!Promise<?Array<Protocol.SystemInfo.ProcessInfo>>}
  6141. */
  6142. Protocol.SystemInfoAgent.prototype.getProcessInfo = function() {};
  6143. /** @typedef {Object|undefined} */
  6144. Protocol.SystemInfoAgent.GetProcessInfoRequest;
  6145. /** @typedef {!{processInfo: !Array<Protocol.SystemInfo.ProcessInfo>}} */
  6146. Protocol.SystemInfoAgent.GetProcessInfoResponse;
  6147. /**
  6148. * @param {!Protocol.SystemInfoAgent.GetProcessInfoRequest} obj
  6149. * @return {!Promise<!Protocol.SystemInfoAgent.GetProcessInfoResponse>} */
  6150. Protocol.SystemInfoAgent.prototype.invoke_getProcessInfo = function(obj) {};
  6151. /** @typedef {!{vendorId:(number), deviceId:(number), subSysId:(number|undefined), revision:(number|undefined), vendorString:(string), deviceString:(string), driverVendor:(string), driverVersion:(string)}} */
  6152. Protocol.SystemInfo.GPUDevice;
  6153. /** @typedef {!{width:(number), height:(number)}} */
  6154. Protocol.SystemInfo.Size;
  6155. /** @typedef {!{profile:(string), maxResolution:(Protocol.SystemInfo.Size), minResolution:(Protocol.SystemInfo.Size)}} */
  6156. Protocol.SystemInfo.VideoDecodeAcceleratorCapability;
  6157. /** @typedef {!{profile:(string), maxResolution:(Protocol.SystemInfo.Size), maxFramerateNumerator:(number), maxFramerateDenominator:(number)}} */
  6158. Protocol.SystemInfo.VideoEncodeAcceleratorCapability;
  6159. /** @enum {string} */
  6160. Protocol.SystemInfo.SubsamplingFormat = {
  6161. Yuv420: "yuv420",
  6162. Yuv422: "yuv422",
  6163. Yuv444: "yuv444"
  6164. };
  6165. /** @enum {string} */
  6166. Protocol.SystemInfo.ImageType = {
  6167. Jpeg: "jpeg",
  6168. Webp: "webp",
  6169. Unknown: "unknown"
  6170. };
  6171. /** @typedef {!{imageType:(Protocol.SystemInfo.ImageType), maxDimensions:(Protocol.SystemInfo.Size), minDimensions:(Protocol.SystemInfo.Size), subsamplings:(!Array<Protocol.SystemInfo.SubsamplingFormat>)}} */
  6172. Protocol.SystemInfo.ImageDecodeAcceleratorCapability;
  6173. /** @typedef {!{devices:(!Array<Protocol.SystemInfo.GPUDevice>), auxAttributes:(!Object|undefined), featureStatus:(!Object|undefined), driverBugWorkarounds:(!Array<string>), videoDecoding:(!Array<Protocol.SystemInfo.VideoDecodeAcceleratorCapability>), videoEncoding:(!Array<Protocol.SystemInfo.VideoEncodeAcceleratorCapability>), imageDecoding:(!Array<Protocol.SystemInfo.ImageDecodeAcceleratorCapability>)}} */
  6174. Protocol.SystemInfo.GPUInfo;
  6175. /** @typedef {!{type:(string), id:(number), cpuTime:(number)}} */
  6176. Protocol.SystemInfo.ProcessInfo;
  6177. /** @interface */
  6178. Protocol.SystemInfoDispatcher = function() {};
  6179. Protocol.Target = {};
  6180. /**
  6181. * @constructor
  6182. */
  6183. Protocol.TargetAgent = function(){};
  6184. /**
  6185. * @param {Protocol.Target.TargetID} targetId
  6186. * @return {!Promise<undefined>}
  6187. */
  6188. Protocol.TargetAgent.prototype.activateTarget = function(targetId) {};
  6189. /** @typedef {!{targetId: Protocol.Target.TargetID}} */
  6190. Protocol.TargetAgent.ActivateTargetRequest;
  6191. /** @typedef {Object|undefined} */
  6192. Protocol.TargetAgent.ActivateTargetResponse;
  6193. /**
  6194. * @param {!Protocol.TargetAgent.ActivateTargetRequest} obj
  6195. * @return {!Promise<!Protocol.TargetAgent.ActivateTargetResponse>} */
  6196. Protocol.TargetAgent.prototype.invoke_activateTarget = function(obj) {};
  6197. /**
  6198. * @param {Protocol.Target.TargetID} targetId
  6199. * @param {boolean=} opt_flatten
  6200. * @return {!Promise<?Protocol.Target.SessionID>}
  6201. */
  6202. Protocol.TargetAgent.prototype.attachToTarget = function(targetId, opt_flatten) {};
  6203. /** @typedef {!{targetId: Protocol.Target.TargetID, flatten: (boolean|undefined)}} */
  6204. Protocol.TargetAgent.AttachToTargetRequest;
  6205. /** @typedef {!{sessionId: Protocol.Target.SessionID}} */
  6206. Protocol.TargetAgent.AttachToTargetResponse;
  6207. /**
  6208. * @param {!Protocol.TargetAgent.AttachToTargetRequest} obj
  6209. * @return {!Promise<!Protocol.TargetAgent.AttachToTargetResponse>} */
  6210. Protocol.TargetAgent.prototype.invoke_attachToTarget = function(obj) {};
  6211. /**
  6212. * @return {!Promise<?Protocol.Target.SessionID>}
  6213. */
  6214. Protocol.TargetAgent.prototype.attachToBrowserTarget = function() {};
  6215. /** @typedef {Object|undefined} */
  6216. Protocol.TargetAgent.AttachToBrowserTargetRequest;
  6217. /** @typedef {!{sessionId: Protocol.Target.SessionID}} */
  6218. Protocol.TargetAgent.AttachToBrowserTargetResponse;
  6219. /**
  6220. * @param {!Protocol.TargetAgent.AttachToBrowserTargetRequest} obj
  6221. * @return {!Promise<!Protocol.TargetAgent.AttachToBrowserTargetResponse>} */
  6222. Protocol.TargetAgent.prototype.invoke_attachToBrowserTarget = function(obj) {};
  6223. /**
  6224. * @param {Protocol.Target.TargetID} targetId
  6225. * @return {!Promise<?boolean>}
  6226. */
  6227. Protocol.TargetAgent.prototype.closeTarget = function(targetId) {};
  6228. /** @typedef {!{targetId: Protocol.Target.TargetID}} */
  6229. Protocol.TargetAgent.CloseTargetRequest;
  6230. /** @typedef {!{success: boolean}} */
  6231. Protocol.TargetAgent.CloseTargetResponse;
  6232. /**
  6233. * @param {!Protocol.TargetAgent.CloseTargetRequest} obj
  6234. * @return {!Promise<!Protocol.TargetAgent.CloseTargetResponse>} */
  6235. Protocol.TargetAgent.prototype.invoke_closeTarget = function(obj) {};
  6236. /**
  6237. * @param {Protocol.Target.TargetID} targetId
  6238. * @param {string=} opt_bindingName
  6239. * @return {!Promise<undefined>}
  6240. */
  6241. Protocol.TargetAgent.prototype.exposeDevToolsProtocol = function(targetId, opt_bindingName) {};
  6242. /** @typedef {!{targetId: Protocol.Target.TargetID, bindingName: (string|undefined)}} */
  6243. Protocol.TargetAgent.ExposeDevToolsProtocolRequest;
  6244. /** @typedef {Object|undefined} */
  6245. Protocol.TargetAgent.ExposeDevToolsProtocolResponse;
  6246. /**
  6247. * @param {!Protocol.TargetAgent.ExposeDevToolsProtocolRequest} obj
  6248. * @return {!Promise<!Protocol.TargetAgent.ExposeDevToolsProtocolResponse>} */
  6249. Protocol.TargetAgent.prototype.invoke_exposeDevToolsProtocol = function(obj) {};
  6250. /**
  6251. * @return {!Promise<?Protocol.Target.BrowserContextID>}
  6252. */
  6253. Protocol.TargetAgent.prototype.createBrowserContext = function() {};
  6254. /** @typedef {Object|undefined} */
  6255. Protocol.TargetAgent.CreateBrowserContextRequest;
  6256. /** @typedef {!{browserContextId: Protocol.Target.BrowserContextID}} */
  6257. Protocol.TargetAgent.CreateBrowserContextResponse;
  6258. /**
  6259. * @param {!Protocol.TargetAgent.CreateBrowserContextRequest} obj
  6260. * @return {!Promise<!Protocol.TargetAgent.CreateBrowserContextResponse>} */
  6261. Protocol.TargetAgent.prototype.invoke_createBrowserContext = function(obj) {};
  6262. /**
  6263. * @return {!Promise<?Array<Protocol.Target.BrowserContextID>>}
  6264. */
  6265. Protocol.TargetAgent.prototype.getBrowserContexts = function() {};
  6266. /** @typedef {Object|undefined} */
  6267. Protocol.TargetAgent.GetBrowserContextsRequest;
  6268. /** @typedef {!{browserContextIds: !Array<Protocol.Target.BrowserContextID>}} */
  6269. Protocol.TargetAgent.GetBrowserContextsResponse;
  6270. /**
  6271. * @param {!Protocol.TargetAgent.GetBrowserContextsRequest} obj
  6272. * @return {!Promise<!Protocol.TargetAgent.GetBrowserContextsResponse>} */
  6273. Protocol.TargetAgent.prototype.invoke_getBrowserContexts = function(obj) {};
  6274. /**
  6275. * @param {string} url
  6276. * @param {number=} opt_width
  6277. * @param {number=} opt_height
  6278. * @param {Protocol.Target.BrowserContextID=} opt_browserContextId
  6279. * @param {boolean=} opt_enableBeginFrameControl
  6280. * @param {boolean=} opt_newWindow
  6281. * @param {boolean=} opt_background
  6282. * @return {!Promise<?Protocol.Target.TargetID>}
  6283. */
  6284. Protocol.TargetAgent.prototype.createTarget = function(url, opt_width, opt_height, opt_browserContextId, opt_enableBeginFrameControl, opt_newWindow, opt_background) {};
  6285. /** @typedef {!{browserContextId: (Protocol.Target.BrowserContextID|undefined), url: string, newWindow: (boolean|undefined), width: (number|undefined), enableBeginFrameControl: (boolean|undefined), background: (boolean|undefined), height: (number|undefined)}} */
  6286. Protocol.TargetAgent.CreateTargetRequest;
  6287. /** @typedef {!{targetId: Protocol.Target.TargetID}} */
  6288. Protocol.TargetAgent.CreateTargetResponse;
  6289. /**
  6290. * @param {!Protocol.TargetAgent.CreateTargetRequest} obj
  6291. * @return {!Promise<!Protocol.TargetAgent.CreateTargetResponse>} */
  6292. Protocol.TargetAgent.prototype.invoke_createTarget = function(obj) {};
  6293. /**
  6294. * @param {Protocol.Target.SessionID=} opt_sessionId
  6295. * @param {Protocol.Target.TargetID=} opt_targetId
  6296. * @return {!Promise<undefined>}
  6297. */
  6298. Protocol.TargetAgent.prototype.detachFromTarget = function(opt_sessionId, opt_targetId) {};
  6299. /** @typedef {!{sessionId: (Protocol.Target.SessionID|undefined), targetId: (Protocol.Target.TargetID|undefined)}} */
  6300. Protocol.TargetAgent.DetachFromTargetRequest;
  6301. /** @typedef {Object|undefined} */
  6302. Protocol.TargetAgent.DetachFromTargetResponse;
  6303. /**
  6304. * @param {!Protocol.TargetAgent.DetachFromTargetRequest} obj
  6305. * @return {!Promise<!Protocol.TargetAgent.DetachFromTargetResponse>} */
  6306. Protocol.TargetAgent.prototype.invoke_detachFromTarget = function(obj) {};
  6307. /**
  6308. * @param {Protocol.Target.BrowserContextID} browserContextId
  6309. * @return {!Promise<undefined>}
  6310. */
  6311. Protocol.TargetAgent.prototype.disposeBrowserContext = function(browserContextId) {};
  6312. /** @typedef {!{browserContextId: Protocol.Target.BrowserContextID}} */
  6313. Protocol.TargetAgent.DisposeBrowserContextRequest;
  6314. /** @typedef {Object|undefined} */
  6315. Protocol.TargetAgent.DisposeBrowserContextResponse;
  6316. /**
  6317. * @param {!Protocol.TargetAgent.DisposeBrowserContextRequest} obj
  6318. * @return {!Promise<!Protocol.TargetAgent.DisposeBrowserContextResponse>} */
  6319. Protocol.TargetAgent.prototype.invoke_disposeBrowserContext = function(obj) {};
  6320. /**
  6321. * @param {Protocol.Target.TargetID=} opt_targetId
  6322. * @return {!Promise<?Protocol.Target.TargetInfo>}
  6323. */
  6324. Protocol.TargetAgent.prototype.getTargetInfo = function(opt_targetId) {};
  6325. /** @typedef {!{targetId: (Protocol.Target.TargetID|undefined)}} */
  6326. Protocol.TargetAgent.GetTargetInfoRequest;
  6327. /** @typedef {!{targetInfo: Protocol.Target.TargetInfo}} */
  6328. Protocol.TargetAgent.GetTargetInfoResponse;
  6329. /**
  6330. * @param {!Protocol.TargetAgent.GetTargetInfoRequest} obj
  6331. * @return {!Promise<!Protocol.TargetAgent.GetTargetInfoResponse>} */
  6332. Protocol.TargetAgent.prototype.invoke_getTargetInfo = function(obj) {};
  6333. /**
  6334. * @return {!Promise<?Array<Protocol.Target.TargetInfo>>}
  6335. */
  6336. Protocol.TargetAgent.prototype.getTargets = function() {};
  6337. /** @typedef {Object|undefined} */
  6338. Protocol.TargetAgent.GetTargetsRequest;
  6339. /** @typedef {!{targetInfos: !Array<Protocol.Target.TargetInfo>}} */
  6340. Protocol.TargetAgent.GetTargetsResponse;
  6341. /**
  6342. * @param {!Protocol.TargetAgent.GetTargetsRequest} obj
  6343. * @return {!Promise<!Protocol.TargetAgent.GetTargetsResponse>} */
  6344. Protocol.TargetAgent.prototype.invoke_getTargets = function(obj) {};
  6345. /**
  6346. * @param {string} message
  6347. * @param {Protocol.Target.SessionID=} opt_sessionId
  6348. * @param {Protocol.Target.TargetID=} opt_targetId
  6349. * @return {!Promise<undefined>}
  6350. */
  6351. Protocol.TargetAgent.prototype.sendMessageToTarget = function(message, opt_sessionId, opt_targetId) {};
  6352. /** @typedef {!{message: string, targetId: (Protocol.Target.TargetID|undefined), sessionId: (Protocol.Target.SessionID|undefined)}} */
  6353. Protocol.TargetAgent.SendMessageToTargetRequest;
  6354. /** @typedef {Object|undefined} */
  6355. Protocol.TargetAgent.SendMessageToTargetResponse;
  6356. /**
  6357. * @param {!Protocol.TargetAgent.SendMessageToTargetRequest} obj
  6358. * @return {!Promise<!Protocol.TargetAgent.SendMessageToTargetResponse>} */
  6359. Protocol.TargetAgent.prototype.invoke_sendMessageToTarget = function(obj) {};
  6360. /**
  6361. * @param {boolean} autoAttach
  6362. * @param {boolean} waitForDebuggerOnStart
  6363. * @param {boolean=} opt_flatten
  6364. * @param {boolean=} opt_windowOpen
  6365. * @return {!Promise<undefined>}
  6366. */
  6367. Protocol.TargetAgent.prototype.setAutoAttach = function(autoAttach, waitForDebuggerOnStart, opt_flatten, opt_windowOpen) {};
  6368. /** @typedef {!{waitForDebuggerOnStart: boolean, autoAttach: boolean, flatten: (boolean|undefined), windowOpen: (boolean|undefined)}} */
  6369. Protocol.TargetAgent.SetAutoAttachRequest;
  6370. /** @typedef {Object|undefined} */
  6371. Protocol.TargetAgent.SetAutoAttachResponse;
  6372. /**
  6373. * @param {!Protocol.TargetAgent.SetAutoAttachRequest} obj
  6374. * @return {!Promise<!Protocol.TargetAgent.SetAutoAttachResponse>} */
  6375. Protocol.TargetAgent.prototype.invoke_setAutoAttach = function(obj) {};
  6376. /**
  6377. * @param {boolean} discover
  6378. * @return {!Promise<undefined>}
  6379. */
  6380. Protocol.TargetAgent.prototype.setDiscoverTargets = function(discover) {};
  6381. /** @typedef {!{discover: boolean}} */
  6382. Protocol.TargetAgent.SetDiscoverTargetsRequest;
  6383. /** @typedef {Object|undefined} */
  6384. Protocol.TargetAgent.SetDiscoverTargetsResponse;
  6385. /**
  6386. * @param {!Protocol.TargetAgent.SetDiscoverTargetsRequest} obj
  6387. * @return {!Promise<!Protocol.TargetAgent.SetDiscoverTargetsResponse>} */
  6388. Protocol.TargetAgent.prototype.invoke_setDiscoverTargets = function(obj) {};
  6389. /**
  6390. * @param {!Array<Protocol.Target.RemoteLocation>} locations
  6391. * @return {!Promise<undefined>}
  6392. */
  6393. Protocol.TargetAgent.prototype.setRemoteLocations = function(locations) {};
  6394. /** @typedef {!{locations: !Array<Protocol.Target.RemoteLocation>}} */
  6395. Protocol.TargetAgent.SetRemoteLocationsRequest;
  6396. /** @typedef {Object|undefined} */
  6397. Protocol.TargetAgent.SetRemoteLocationsResponse;
  6398. /**
  6399. * @param {!Protocol.TargetAgent.SetRemoteLocationsRequest} obj
  6400. * @return {!Promise<!Protocol.TargetAgent.SetRemoteLocationsResponse>} */
  6401. Protocol.TargetAgent.prototype.invoke_setRemoteLocations = function(obj) {};
  6402. /** @typedef {string} */
  6403. Protocol.Target.TargetID;
  6404. /** @typedef {string} */
  6405. Protocol.Target.SessionID;
  6406. /** @typedef {string} */
  6407. Protocol.Target.BrowserContextID;
  6408. /** @typedef {!{targetId:(Protocol.Target.TargetID), type:(string), title:(string), url:(string), attached:(boolean), openerId:(Protocol.Target.TargetID|undefined), browserContextId:(Protocol.Target.BrowserContextID|undefined)}} */
  6409. Protocol.Target.TargetInfo;
  6410. /** @typedef {!{host:(string), port:(number)}} */
  6411. Protocol.Target.RemoteLocation;
  6412. /** @interface */
  6413. Protocol.TargetDispatcher = function() {};
  6414. /**
  6415. * @param {Protocol.Target.SessionID} sessionId
  6416. * @param {Protocol.Target.TargetInfo} targetInfo
  6417. * @param {boolean} waitingForDebugger
  6418. */
  6419. Protocol.TargetDispatcher.prototype.attachedToTarget = function(sessionId, targetInfo, waitingForDebugger) {};
  6420. /**
  6421. * @param {Protocol.Target.SessionID} sessionId
  6422. * @param {Protocol.Target.TargetID=} opt_targetId
  6423. */
  6424. Protocol.TargetDispatcher.prototype.detachedFromTarget = function(sessionId, opt_targetId) {};
  6425. /**
  6426. * @param {Protocol.Target.SessionID} sessionId
  6427. * @param {string} message
  6428. * @param {Protocol.Target.TargetID=} opt_targetId
  6429. */
  6430. Protocol.TargetDispatcher.prototype.receivedMessageFromTarget = function(sessionId, message, opt_targetId) {};
  6431. /**
  6432. * @param {Protocol.Target.TargetInfo} targetInfo
  6433. */
  6434. Protocol.TargetDispatcher.prototype.targetCreated = function(targetInfo) {};
  6435. /**
  6436. * @param {Protocol.Target.TargetID} targetId
  6437. */
  6438. Protocol.TargetDispatcher.prototype.targetDestroyed = function(targetId) {};
  6439. /**
  6440. * @param {Protocol.Target.TargetID} targetId
  6441. * @param {string} status
  6442. * @param {number} errorCode
  6443. */
  6444. Protocol.TargetDispatcher.prototype.targetCrashed = function(targetId, status, errorCode) {};
  6445. /**
  6446. * @param {Protocol.Target.TargetInfo} targetInfo
  6447. */
  6448. Protocol.TargetDispatcher.prototype.targetInfoChanged = function(targetInfo) {};
  6449. Protocol.Tethering = {};
  6450. /**
  6451. * @constructor
  6452. */
  6453. Protocol.TetheringAgent = function(){};
  6454. /**
  6455. * @param {number} port
  6456. * @return {!Promise<undefined>}
  6457. */
  6458. Protocol.TetheringAgent.prototype.bind = function(port) {};
  6459. /** @typedef {!{port: number}} */
  6460. Protocol.TetheringAgent.BindRequest;
  6461. /** @typedef {Object|undefined} */
  6462. Protocol.TetheringAgent.BindResponse;
  6463. /**
  6464. * @param {!Protocol.TetheringAgent.BindRequest} obj
  6465. * @return {!Promise<!Protocol.TetheringAgent.BindResponse>} */
  6466. Protocol.TetheringAgent.prototype.invoke_bind = function(obj) {};
  6467. /**
  6468. * @param {number} port
  6469. * @return {!Promise<undefined>}
  6470. */
  6471. Protocol.TetheringAgent.prototype.unbind = function(port) {};
  6472. /** @typedef {!{port: number}} */
  6473. Protocol.TetheringAgent.UnbindRequest;
  6474. /** @typedef {Object|undefined} */
  6475. Protocol.TetheringAgent.UnbindResponse;
  6476. /**
  6477. * @param {!Protocol.TetheringAgent.UnbindRequest} obj
  6478. * @return {!Promise<!Protocol.TetheringAgent.UnbindResponse>} */
  6479. Protocol.TetheringAgent.prototype.invoke_unbind = function(obj) {};
  6480. /** @interface */
  6481. Protocol.TetheringDispatcher = function() {};
  6482. /**
  6483. * @param {number} port
  6484. * @param {string} connectionId
  6485. */
  6486. Protocol.TetheringDispatcher.prototype.accepted = function(port, connectionId) {};
  6487. Protocol.Tracing = {};
  6488. /**
  6489. * @constructor
  6490. */
  6491. Protocol.TracingAgent = function(){};
  6492. /**
  6493. * @return {!Promise<undefined>}
  6494. */
  6495. Protocol.TracingAgent.prototype.end = function() {};
  6496. /** @typedef {Object|undefined} */
  6497. Protocol.TracingAgent.EndRequest;
  6498. /** @typedef {Object|undefined} */
  6499. Protocol.TracingAgent.EndResponse;
  6500. /**
  6501. * @param {!Protocol.TracingAgent.EndRequest} obj
  6502. * @return {!Promise<!Protocol.TracingAgent.EndResponse>} */
  6503. Protocol.TracingAgent.prototype.invoke_end = function(obj) {};
  6504. /**
  6505. * @return {!Promise<?Array<string>>}
  6506. */
  6507. Protocol.TracingAgent.prototype.getCategories = function() {};
  6508. /** @typedef {Object|undefined} */
  6509. Protocol.TracingAgent.GetCategoriesRequest;
  6510. /** @typedef {!{categories: !Array<string>}} */
  6511. Protocol.TracingAgent.GetCategoriesResponse;
  6512. /**
  6513. * @param {!Protocol.TracingAgent.GetCategoriesRequest} obj
  6514. * @return {!Promise<!Protocol.TracingAgent.GetCategoriesResponse>} */
  6515. Protocol.TracingAgent.prototype.invoke_getCategories = function(obj) {};
  6516. /**
  6517. * @param {string} syncId
  6518. * @return {!Promise<undefined>}
  6519. */
  6520. Protocol.TracingAgent.prototype.recordClockSyncMarker = function(syncId) {};
  6521. /** @typedef {!{syncId: string}} */
  6522. Protocol.TracingAgent.RecordClockSyncMarkerRequest;
  6523. /** @typedef {Object|undefined} */
  6524. Protocol.TracingAgent.RecordClockSyncMarkerResponse;
  6525. /**
  6526. * @param {!Protocol.TracingAgent.RecordClockSyncMarkerRequest} obj
  6527. * @return {!Promise<!Protocol.TracingAgent.RecordClockSyncMarkerResponse>} */
  6528. Protocol.TracingAgent.prototype.invoke_recordClockSyncMarker = function(obj) {};
  6529. /**
  6530. * @param {boolean=} opt_deterministic
  6531. * @return {!Promise<?string>}
  6532. */
  6533. Protocol.TracingAgent.prototype.requestMemoryDump = function(opt_deterministic) {};
  6534. /** @typedef {!{deterministic: (boolean|undefined)}} */
  6535. Protocol.TracingAgent.RequestMemoryDumpRequest;
  6536. /** @typedef {!{dumpGuid: string, success: boolean}} */
  6537. Protocol.TracingAgent.RequestMemoryDumpResponse;
  6538. /**
  6539. * @param {!Protocol.TracingAgent.RequestMemoryDumpRequest} obj
  6540. * @return {!Promise<!Protocol.TracingAgent.RequestMemoryDumpResponse>} */
  6541. Protocol.TracingAgent.prototype.invoke_requestMemoryDump = function(obj) {};
  6542. /**
  6543. * @param {string=} opt_categories
  6544. * @param {string=} opt_options
  6545. * @param {number=} opt_bufferUsageReportingInterval
  6546. * @param {string=} opt_transferMode
  6547. * @param {Protocol.Tracing.StreamFormat=} opt_streamFormat
  6548. * @param {Protocol.Tracing.StreamCompression=} opt_streamCompression
  6549. * @param {Protocol.Tracing.TraceConfig=} opt_traceConfig
  6550. * @return {!Promise<undefined>}
  6551. */
  6552. Protocol.TracingAgent.prototype.start = function(opt_categories, opt_options, opt_bufferUsageReportingInterval, opt_transferMode, opt_streamFormat, opt_streamCompression, opt_traceConfig) {};
  6553. /** @typedef {!{traceConfig: (Protocol.Tracing.TraceConfig|undefined), transferMode: (string|undefined), bufferUsageReportingInterval: (number|undefined), streamFormat: (Protocol.Tracing.StreamFormat|undefined), options: (string|undefined), categories: (string|undefined), streamCompression: (Protocol.Tracing.StreamCompression|undefined)}} */
  6554. Protocol.TracingAgent.StartRequest;
  6555. /** @typedef {Object|undefined} */
  6556. Protocol.TracingAgent.StartResponse;
  6557. /**
  6558. * @param {!Protocol.TracingAgent.StartRequest} obj
  6559. * @return {!Promise<!Protocol.TracingAgent.StartResponse>} */
  6560. Protocol.TracingAgent.prototype.invoke_start = function(obj) {};
  6561. /** @typedef {!Object} */
  6562. Protocol.Tracing.MemoryDumpConfig;
  6563. /** @enum {string} */
  6564. Protocol.Tracing.TraceConfigRecordMode = {
  6565. RecordUntilFull: "recordUntilFull",
  6566. RecordContinuously: "recordContinuously",
  6567. RecordAsMuchAsPossible: "recordAsMuchAsPossible",
  6568. EchoToConsole: "echoToConsole"
  6569. };
  6570. /** @typedef {!{recordMode:(Protocol.Tracing.TraceConfigRecordMode|undefined), enableSampling:(boolean|undefined), enableSystrace:(boolean|undefined), enableArgumentFilter:(boolean|undefined), includedCategories:(!Array<string>|undefined), excludedCategories:(!Array<string>|undefined), syntheticDelays:(!Array<string>|undefined), memoryDumpConfig:(Protocol.Tracing.MemoryDumpConfig|undefined)}} */
  6571. Protocol.Tracing.TraceConfig;
  6572. /** @enum {string} */
  6573. Protocol.Tracing.StreamFormat = {
  6574. Json: "json",
  6575. Proto: "proto"
  6576. };
  6577. /** @enum {string} */
  6578. Protocol.Tracing.StreamCompression = {
  6579. None: "none",
  6580. Gzip: "gzip"
  6581. };
  6582. /** @interface */
  6583. Protocol.TracingDispatcher = function() {};
  6584. /**
  6585. * @param {number=} opt_percentFull
  6586. * @param {number=} opt_eventCount
  6587. * @param {number=} opt_value
  6588. */
  6589. Protocol.TracingDispatcher.prototype.bufferUsage = function(opt_percentFull, opt_eventCount, opt_value) {};
  6590. /**
  6591. * @param {!Array<!Object>} value
  6592. */
  6593. Protocol.TracingDispatcher.prototype.dataCollected = function(value) {};
  6594. /**
  6595. * @param {boolean} dataLossOccurred
  6596. * @param {Protocol.IO.StreamHandle=} opt_stream
  6597. * @param {Protocol.Tracing.StreamFormat=} opt_traceFormat
  6598. * @param {Protocol.Tracing.StreamCompression=} opt_streamCompression
  6599. */
  6600. Protocol.TracingDispatcher.prototype.tracingComplete = function(dataLossOccurred, opt_stream, opt_traceFormat, opt_streamCompression) {};
  6601. Protocol.Fetch = {};
  6602. /**
  6603. * @constructor
  6604. */
  6605. Protocol.FetchAgent = function(){};
  6606. /**
  6607. * @return {!Promise<undefined>}
  6608. */
  6609. Protocol.FetchAgent.prototype.disable = function() {};
  6610. /** @typedef {Object|undefined} */
  6611. Protocol.FetchAgent.DisableRequest;
  6612. /** @typedef {Object|undefined} */
  6613. Protocol.FetchAgent.DisableResponse;
  6614. /**
  6615. * @param {!Protocol.FetchAgent.DisableRequest} obj
  6616. * @return {!Promise<!Protocol.FetchAgent.DisableResponse>} */
  6617. Protocol.FetchAgent.prototype.invoke_disable = function(obj) {};
  6618. /**
  6619. * @param {!Array<Protocol.Fetch.RequestPattern>=} opt_patterns
  6620. * @param {boolean=} opt_handleAuthRequests
  6621. * @return {!Promise<undefined>}
  6622. */
  6623. Protocol.FetchAgent.prototype.enable = function(opt_patterns, opt_handleAuthRequests) {};
  6624. /** @typedef {!{patterns: (!Array<Protocol.Fetch.RequestPattern>|undefined), handleAuthRequests: (boolean|undefined)}} */
  6625. Protocol.FetchAgent.EnableRequest;
  6626. /** @typedef {Object|undefined} */
  6627. Protocol.FetchAgent.EnableResponse;
  6628. /**
  6629. * @param {!Protocol.FetchAgent.EnableRequest} obj
  6630. * @return {!Promise<!Protocol.FetchAgent.EnableResponse>} */
  6631. Protocol.FetchAgent.prototype.invoke_enable = function(obj) {};
  6632. /**
  6633. * @param {Protocol.Fetch.RequestId} requestId
  6634. * @param {Protocol.Network.ErrorReason} errorReason
  6635. * @return {!Promise<undefined>}
  6636. */
  6637. Protocol.FetchAgent.prototype.failRequest = function(requestId, errorReason) {};
  6638. /** @typedef {!{requestId: Protocol.Fetch.RequestId, errorReason: Protocol.Network.ErrorReason}} */
  6639. Protocol.FetchAgent.FailRequestRequest;
  6640. /** @typedef {Object|undefined} */
  6641. Protocol.FetchAgent.FailRequestResponse;
  6642. /**
  6643. * @param {!Protocol.FetchAgent.FailRequestRequest} obj
  6644. * @return {!Promise<!Protocol.FetchAgent.FailRequestResponse>} */
  6645. Protocol.FetchAgent.prototype.invoke_failRequest = function(obj) {};
  6646. /**
  6647. * @param {Protocol.Fetch.RequestId} requestId
  6648. * @param {number} responseCode
  6649. * @param {!Array<Protocol.Fetch.HeaderEntry>=} opt_responseHeaders
  6650. * @param {string=} opt_binaryResponseHeaders
  6651. * @param {string=} opt_body
  6652. * @param {string=} opt_responsePhrase
  6653. * @return {!Promise<undefined>}
  6654. */
  6655. Protocol.FetchAgent.prototype.fulfillRequest = function(requestId, responseCode, opt_responseHeaders, opt_binaryResponseHeaders, opt_body, opt_responsePhrase) {};
  6656. /** @typedef {!{body: (string|undefined), binaryResponseHeaders: (string|undefined), requestId: Protocol.Fetch.RequestId, responseCode: number, responsePhrase: (string|undefined), responseHeaders: (!Array<Protocol.Fetch.HeaderEntry>|undefined)}} */
  6657. Protocol.FetchAgent.FulfillRequestRequest;
  6658. /** @typedef {Object|undefined} */
  6659. Protocol.FetchAgent.FulfillRequestResponse;
  6660. /**
  6661. * @param {!Protocol.FetchAgent.FulfillRequestRequest} obj
  6662. * @return {!Promise<!Protocol.FetchAgent.FulfillRequestResponse>} */
  6663. Protocol.FetchAgent.prototype.invoke_fulfillRequest = function(obj) {};
  6664. /**
  6665. * @param {Protocol.Fetch.RequestId} requestId
  6666. * @param {string=} opt_url
  6667. * @param {string=} opt_method
  6668. * @param {string=} opt_postData
  6669. * @param {!Array<Protocol.Fetch.HeaderEntry>=} opt_headers
  6670. * @return {!Promise<undefined>}
  6671. */
  6672. Protocol.FetchAgent.prototype.continueRequest = function(requestId, opt_url, opt_method, opt_postData, opt_headers) {};
  6673. /** @typedef {!{url: (string|undefined), headers: (!Array<Protocol.Fetch.HeaderEntry>|undefined), requestId: Protocol.Fetch.RequestId, postData: (string|undefined), method: (string|undefined)}} */
  6674. Protocol.FetchAgent.ContinueRequestRequest;
  6675. /** @typedef {Object|undefined} */
  6676. Protocol.FetchAgent.ContinueRequestResponse;
  6677. /**
  6678. * @param {!Protocol.FetchAgent.ContinueRequestRequest} obj
  6679. * @return {!Promise<!Protocol.FetchAgent.ContinueRequestResponse>} */
  6680. Protocol.FetchAgent.prototype.invoke_continueRequest = function(obj) {};
  6681. /**
  6682. * @param {Protocol.Fetch.RequestId} requestId
  6683. * @param {Protocol.Fetch.AuthChallengeResponse} authChallengeResponse
  6684. * @return {!Promise<undefined>}
  6685. */
  6686. Protocol.FetchAgent.prototype.continueWithAuth = function(requestId, authChallengeResponse) {};
  6687. /** @typedef {!{authChallengeResponse: Protocol.Fetch.AuthChallengeResponse, requestId: Protocol.Fetch.RequestId}} */
  6688. Protocol.FetchAgent.ContinueWithAuthRequest;
  6689. /** @typedef {Object|undefined} */
  6690. Protocol.FetchAgent.ContinueWithAuthResponse;
  6691. /**
  6692. * @param {!Protocol.FetchAgent.ContinueWithAuthRequest} obj
  6693. * @return {!Promise<!Protocol.FetchAgent.ContinueWithAuthResponse>} */
  6694. Protocol.FetchAgent.prototype.invoke_continueWithAuth = function(obj) {};
  6695. /**
  6696. * @param {Protocol.Fetch.RequestId} requestId
  6697. * @return {!Promise<?string>}
  6698. */
  6699. Protocol.FetchAgent.prototype.getResponseBody = function(requestId) {};
  6700. /** @typedef {!{requestId: Protocol.Fetch.RequestId}} */
  6701. Protocol.FetchAgent.GetResponseBodyRequest;
  6702. /** @typedef {!{body: string, base64Encoded: boolean}} */
  6703. Protocol.FetchAgent.GetResponseBodyResponse;
  6704. /**
  6705. * @param {!Protocol.FetchAgent.GetResponseBodyRequest} obj
  6706. * @return {!Promise<!Protocol.FetchAgent.GetResponseBodyResponse>} */
  6707. Protocol.FetchAgent.prototype.invoke_getResponseBody = function(obj) {};
  6708. /**
  6709. * @param {Protocol.Fetch.RequestId} requestId
  6710. * @return {!Promise<?Protocol.IO.StreamHandle>}
  6711. */
  6712. Protocol.FetchAgent.prototype.takeResponseBodyAsStream = function(requestId) {};
  6713. /** @typedef {!{requestId: Protocol.Fetch.RequestId}} */
  6714. Protocol.FetchAgent.TakeResponseBodyAsStreamRequest;
  6715. /** @typedef {!{stream: Protocol.IO.StreamHandle}} */
  6716. Protocol.FetchAgent.TakeResponseBodyAsStreamResponse;
  6717. /**
  6718. * @param {!Protocol.FetchAgent.TakeResponseBodyAsStreamRequest} obj
  6719. * @return {!Promise<!Protocol.FetchAgent.TakeResponseBodyAsStreamResponse>} */
  6720. Protocol.FetchAgent.prototype.invoke_takeResponseBodyAsStream = function(obj) {};
  6721. /** @typedef {string} */
  6722. Protocol.Fetch.RequestId;
  6723. /** @enum {string} */
  6724. Protocol.Fetch.RequestStage = {
  6725. Request: "Request",
  6726. Response: "Response"
  6727. };
  6728. /** @typedef {!{urlPattern:(string|undefined), resourceType:(Protocol.Network.ResourceType|undefined), requestStage:(Protocol.Fetch.RequestStage|undefined)}} */
  6729. Protocol.Fetch.RequestPattern;
  6730. /** @typedef {!{name:(string), value:(string)}} */
  6731. Protocol.Fetch.HeaderEntry;
  6732. /** @enum {string} */
  6733. Protocol.Fetch.AuthChallengeSource = {
  6734. Server: "Server",
  6735. Proxy: "Proxy"
  6736. };
  6737. /** @typedef {!{source:(Protocol.Fetch.AuthChallengeSource|undefined), origin:(string), scheme:(string), realm:(string)}} */
  6738. Protocol.Fetch.AuthChallenge;
  6739. /** @enum {string} */
  6740. Protocol.Fetch.AuthChallengeResponseResponse = {
  6741. Default: "Default",
  6742. CancelAuth: "CancelAuth",
  6743. ProvideCredentials: "ProvideCredentials"
  6744. };
  6745. /** @typedef {!{response:(Protocol.Fetch.AuthChallengeResponseResponse), username:(string|undefined), password:(string|undefined)}} */
  6746. Protocol.Fetch.AuthChallengeResponse;
  6747. /** @interface */
  6748. Protocol.FetchDispatcher = function() {};
  6749. /**
  6750. * @param {Protocol.Fetch.RequestId} requestId
  6751. * @param {Protocol.Network.Request} request
  6752. * @param {Protocol.Page.FrameId} frameId
  6753. * @param {Protocol.Network.ResourceType} resourceType
  6754. * @param {Protocol.Network.ErrorReason=} opt_responseErrorReason
  6755. * @param {number=} opt_responseStatusCode
  6756. * @param {!Array<Protocol.Fetch.HeaderEntry>=} opt_responseHeaders
  6757. * @param {Protocol.Fetch.RequestId=} opt_networkId
  6758. */
  6759. Protocol.FetchDispatcher.prototype.requestPaused = function(requestId, request, frameId, resourceType, opt_responseErrorReason, opt_responseStatusCode, opt_responseHeaders, opt_networkId) {};
  6760. /**
  6761. * @param {Protocol.Fetch.RequestId} requestId
  6762. * @param {Protocol.Network.Request} request
  6763. * @param {Protocol.Page.FrameId} frameId
  6764. * @param {Protocol.Network.ResourceType} resourceType
  6765. * @param {Protocol.Fetch.AuthChallenge} authChallenge
  6766. */
  6767. Protocol.FetchDispatcher.prototype.authRequired = function(requestId, request, frameId, resourceType, authChallenge) {};
  6768. Protocol.WebAudio = {};
  6769. /**
  6770. * @constructor
  6771. */
  6772. Protocol.WebAudioAgent = function(){};
  6773. /**
  6774. * @return {!Promise<undefined>}
  6775. */
  6776. Protocol.WebAudioAgent.prototype.enable = function() {};
  6777. /** @typedef {Object|undefined} */
  6778. Protocol.WebAudioAgent.EnableRequest;
  6779. /** @typedef {Object|undefined} */
  6780. Protocol.WebAudioAgent.EnableResponse;
  6781. /**
  6782. * @param {!Protocol.WebAudioAgent.EnableRequest} obj
  6783. * @return {!Promise<!Protocol.WebAudioAgent.EnableResponse>} */
  6784. Protocol.WebAudioAgent.prototype.invoke_enable = function(obj) {};
  6785. /**
  6786. * @return {!Promise<undefined>}
  6787. */
  6788. Protocol.WebAudioAgent.prototype.disable = function() {};
  6789. /** @typedef {Object|undefined} */
  6790. Protocol.WebAudioAgent.DisableRequest;
  6791. /** @typedef {Object|undefined} */
  6792. Protocol.WebAudioAgent.DisableResponse;
  6793. /**
  6794. * @param {!Protocol.WebAudioAgent.DisableRequest} obj
  6795. * @return {!Promise<!Protocol.WebAudioAgent.DisableResponse>} */
  6796. Protocol.WebAudioAgent.prototype.invoke_disable = function(obj) {};
  6797. /**
  6798. * @param {Protocol.WebAudio.GraphObjectId} contextId
  6799. * @return {!Promise<?Protocol.WebAudio.ContextRealtimeData>}
  6800. */
  6801. Protocol.WebAudioAgent.prototype.getRealtimeData = function(contextId) {};
  6802. /** @typedef {!{contextId: Protocol.WebAudio.GraphObjectId}} */
  6803. Protocol.WebAudioAgent.GetRealtimeDataRequest;
  6804. /** @typedef {!{realtimeData: Protocol.WebAudio.ContextRealtimeData}} */
  6805. Protocol.WebAudioAgent.GetRealtimeDataResponse;
  6806. /**
  6807. * @param {!Protocol.WebAudioAgent.GetRealtimeDataRequest} obj
  6808. * @return {!Promise<!Protocol.WebAudioAgent.GetRealtimeDataResponse>} */
  6809. Protocol.WebAudioAgent.prototype.invoke_getRealtimeData = function(obj) {};
  6810. /** @typedef {string} */
  6811. Protocol.WebAudio.GraphObjectId;
  6812. /** @enum {string} */
  6813. Protocol.WebAudio.ContextType = {
  6814. Realtime: "realtime",
  6815. Offline: "offline"
  6816. };
  6817. /** @enum {string} */
  6818. Protocol.WebAudio.ContextState = {
  6819. Suspended: "suspended",
  6820. Running: "running",
  6821. Closed: "closed"
  6822. };
  6823. /** @typedef {string} */
  6824. Protocol.WebAudio.NodeType;
  6825. /** @enum {string} */
  6826. Protocol.WebAudio.ChannelCountMode = {
  6827. ClampedMax: "clamped-max",
  6828. Explicit: "explicit",
  6829. Max: "max"
  6830. };
  6831. /** @enum {string} */
  6832. Protocol.WebAudio.ChannelInterpretation = {
  6833. Discrete: "discrete",
  6834. Speakers: "speakers"
  6835. };
  6836. /** @typedef {string} */
  6837. Protocol.WebAudio.ParamType;
  6838. /** @enum {string} */
  6839. Protocol.WebAudio.AutomationRate = {
  6840. ARate: "a-rate",
  6841. KRate: "k-rate"
  6842. };
  6843. /** @typedef {!{currentTime:(number), renderCapacity:(number), callbackIntervalMean:(number), callbackIntervalVariance:(number)}} */
  6844. Protocol.WebAudio.ContextRealtimeData;
  6845. /** @typedef {!{contextId:(Protocol.WebAudio.GraphObjectId), contextType:(Protocol.WebAudio.ContextType), contextState:(Protocol.WebAudio.ContextState), realtimeData:(Protocol.WebAudio.ContextRealtimeData|undefined), callbackBufferSize:(number), maxOutputChannelCount:(number), sampleRate:(number)}} */
  6846. Protocol.WebAudio.BaseAudioContext;
  6847. /** @typedef {!{listenerId:(Protocol.WebAudio.GraphObjectId), contextId:(Protocol.WebAudio.GraphObjectId)}} */
  6848. Protocol.WebAudio.AudioListener;
  6849. /** @typedef {!{nodeId:(Protocol.WebAudio.GraphObjectId), contextId:(Protocol.WebAudio.GraphObjectId), nodeType:(Protocol.WebAudio.NodeType), numberOfInputs:(number), numberOfOutputs:(number), channelCount:(number), channelCountMode:(Protocol.WebAudio.ChannelCountMode), channelInterpretation:(Protocol.WebAudio.ChannelInterpretation)}} */
  6850. Protocol.WebAudio.AudioNode;
  6851. /** @typedef {!{paramId:(Protocol.WebAudio.GraphObjectId), nodeId:(Protocol.WebAudio.GraphObjectId), contextId:(Protocol.WebAudio.GraphObjectId), paramType:(Protocol.WebAudio.ParamType), rate:(Protocol.WebAudio.AutomationRate), defaultValue:(number), minValue:(number), maxValue:(number)}} */
  6852. Protocol.WebAudio.AudioParam;
  6853. /** @interface */
  6854. Protocol.WebAudioDispatcher = function() {};
  6855. /**
  6856. * @param {Protocol.WebAudio.BaseAudioContext} context
  6857. */
  6858. Protocol.WebAudioDispatcher.prototype.contextCreated = function(context) {};
  6859. /**
  6860. * @param {Protocol.WebAudio.GraphObjectId} contextId
  6861. */
  6862. Protocol.WebAudioDispatcher.prototype.contextWillBeDestroyed = function(contextId) {};
  6863. /**
  6864. * @param {Protocol.WebAudio.BaseAudioContext} context
  6865. */
  6866. Protocol.WebAudioDispatcher.prototype.contextChanged = function(context) {};
  6867. /**
  6868. * @param {Protocol.WebAudio.AudioListener} listener
  6869. */
  6870. Protocol.WebAudioDispatcher.prototype.audioListenerCreated = function(listener) {};
  6871. /**
  6872. * @param {Protocol.WebAudio.GraphObjectId} contextId
  6873. * @param {Protocol.WebAudio.GraphObjectId} listenerId
  6874. */
  6875. Protocol.WebAudioDispatcher.prototype.audioListenerWillBeDestroyed = function(contextId, listenerId) {};
  6876. /**
  6877. * @param {Protocol.WebAudio.AudioNode} node
  6878. */
  6879. Protocol.WebAudioDispatcher.prototype.audioNodeCreated = function(node) {};
  6880. /**
  6881. * @param {Protocol.WebAudio.GraphObjectId} contextId
  6882. * @param {Protocol.WebAudio.GraphObjectId} nodeId
  6883. */
  6884. Protocol.WebAudioDispatcher.prototype.audioNodeWillBeDestroyed = function(contextId, nodeId) {};
  6885. /**
  6886. * @param {Protocol.WebAudio.AudioParam} param
  6887. */
  6888. Protocol.WebAudioDispatcher.prototype.audioParamCreated = function(param) {};
  6889. /**
  6890. * @param {Protocol.WebAudio.GraphObjectId} contextId
  6891. * @param {Protocol.WebAudio.GraphObjectId} nodeId
  6892. * @param {Protocol.WebAudio.GraphObjectId} paramId
  6893. */
  6894. Protocol.WebAudioDispatcher.prototype.audioParamWillBeDestroyed = function(contextId, nodeId, paramId) {};
  6895. /**
  6896. * @param {Protocol.WebAudio.GraphObjectId} contextId
  6897. * @param {Protocol.WebAudio.GraphObjectId} sourceId
  6898. * @param {Protocol.WebAudio.GraphObjectId} destinationId
  6899. * @param {number=} opt_sourceOutputIndex
  6900. * @param {number=} opt_destinationInputIndex
  6901. */
  6902. Protocol.WebAudioDispatcher.prototype.nodesConnected = function(contextId, sourceId, destinationId, opt_sourceOutputIndex, opt_destinationInputIndex) {};
  6903. /**
  6904. * @param {Protocol.WebAudio.GraphObjectId} contextId
  6905. * @param {Protocol.WebAudio.GraphObjectId} sourceId
  6906. * @param {Protocol.WebAudio.GraphObjectId} destinationId
  6907. * @param {number=} opt_sourceOutputIndex
  6908. * @param {number=} opt_destinationInputIndex
  6909. */
  6910. Protocol.WebAudioDispatcher.prototype.nodesDisconnected = function(contextId, sourceId, destinationId, opt_sourceOutputIndex, opt_destinationInputIndex) {};
  6911. /**
  6912. * @param {Protocol.WebAudio.GraphObjectId} contextId
  6913. * @param {Protocol.WebAudio.GraphObjectId} sourceId
  6914. * @param {Protocol.WebAudio.GraphObjectId} destinationId
  6915. * @param {number=} opt_sourceOutputIndex
  6916. */
  6917. Protocol.WebAudioDispatcher.prototype.nodeParamConnected = function(contextId, sourceId, destinationId, opt_sourceOutputIndex) {};
  6918. /**
  6919. * @param {Protocol.WebAudio.GraphObjectId} contextId
  6920. * @param {Protocol.WebAudio.GraphObjectId} sourceId
  6921. * @param {Protocol.WebAudio.GraphObjectId} destinationId
  6922. * @param {number=} opt_sourceOutputIndex
  6923. */
  6924. Protocol.WebAudioDispatcher.prototype.nodeParamDisconnected = function(contextId, sourceId, destinationId, opt_sourceOutputIndex) {};
  6925. Protocol.WebAuthn = {};
  6926. /**
  6927. * @constructor
  6928. */
  6929. Protocol.WebAuthnAgent = function(){};
  6930. /**
  6931. * @return {!Promise<undefined>}
  6932. */
  6933. Protocol.WebAuthnAgent.prototype.enable = function() {};
  6934. /** @typedef {Object|undefined} */
  6935. Protocol.WebAuthnAgent.EnableRequest;
  6936. /** @typedef {Object|undefined} */
  6937. Protocol.WebAuthnAgent.EnableResponse;
  6938. /**
  6939. * @param {!Protocol.WebAuthnAgent.EnableRequest} obj
  6940. * @return {!Promise<!Protocol.WebAuthnAgent.EnableResponse>} */
  6941. Protocol.WebAuthnAgent.prototype.invoke_enable = function(obj) {};
  6942. /**
  6943. * @return {!Promise<undefined>}
  6944. */
  6945. Protocol.WebAuthnAgent.prototype.disable = function() {};
  6946. /** @typedef {Object|undefined} */
  6947. Protocol.WebAuthnAgent.DisableRequest;
  6948. /** @typedef {Object|undefined} */
  6949. Protocol.WebAuthnAgent.DisableResponse;
  6950. /**
  6951. * @param {!Protocol.WebAuthnAgent.DisableRequest} obj
  6952. * @return {!Promise<!Protocol.WebAuthnAgent.DisableResponse>} */
  6953. Protocol.WebAuthnAgent.prototype.invoke_disable = function(obj) {};
  6954. /**
  6955. * @param {Protocol.WebAuthn.VirtualAuthenticatorOptions} options
  6956. * @return {!Promise<?Protocol.WebAuthn.AuthenticatorId>}
  6957. */
  6958. Protocol.WebAuthnAgent.prototype.addVirtualAuthenticator = function(options) {};
  6959. /** @typedef {!{options: Protocol.WebAuthn.VirtualAuthenticatorOptions}} */
  6960. Protocol.WebAuthnAgent.AddVirtualAuthenticatorRequest;
  6961. /** @typedef {!{authenticatorId: Protocol.WebAuthn.AuthenticatorId}} */
  6962. Protocol.WebAuthnAgent.AddVirtualAuthenticatorResponse;
  6963. /**
  6964. * @param {!Protocol.WebAuthnAgent.AddVirtualAuthenticatorRequest} obj
  6965. * @return {!Promise<!Protocol.WebAuthnAgent.AddVirtualAuthenticatorResponse>} */
  6966. Protocol.WebAuthnAgent.prototype.invoke_addVirtualAuthenticator = function(obj) {};
  6967. /**
  6968. * @param {Protocol.WebAuthn.AuthenticatorId} authenticatorId
  6969. * @return {!Promise<undefined>}
  6970. */
  6971. Protocol.WebAuthnAgent.prototype.removeVirtualAuthenticator = function(authenticatorId) {};
  6972. /** @typedef {!{authenticatorId: Protocol.WebAuthn.AuthenticatorId}} */
  6973. Protocol.WebAuthnAgent.RemoveVirtualAuthenticatorRequest;
  6974. /** @typedef {Object|undefined} */
  6975. Protocol.WebAuthnAgent.RemoveVirtualAuthenticatorResponse;
  6976. /**
  6977. * @param {!Protocol.WebAuthnAgent.RemoveVirtualAuthenticatorRequest} obj
  6978. * @return {!Promise<!Protocol.WebAuthnAgent.RemoveVirtualAuthenticatorResponse>} */
  6979. Protocol.WebAuthnAgent.prototype.invoke_removeVirtualAuthenticator = function(obj) {};
  6980. /**
  6981. * @param {Protocol.WebAuthn.AuthenticatorId} authenticatorId
  6982. * @param {Protocol.WebAuthn.Credential} credential
  6983. * @return {!Promise<undefined>}
  6984. */
  6985. Protocol.WebAuthnAgent.prototype.addCredential = function(authenticatorId, credential) {};
  6986. /** @typedef {!{authenticatorId: Protocol.WebAuthn.AuthenticatorId, credential: Protocol.WebAuthn.Credential}} */
  6987. Protocol.WebAuthnAgent.AddCredentialRequest;
  6988. /** @typedef {Object|undefined} */
  6989. Protocol.WebAuthnAgent.AddCredentialResponse;
  6990. /**
  6991. * @param {!Protocol.WebAuthnAgent.AddCredentialRequest} obj
  6992. * @return {!Promise<!Protocol.WebAuthnAgent.AddCredentialResponse>} */
  6993. Protocol.WebAuthnAgent.prototype.invoke_addCredential = function(obj) {};
  6994. /**
  6995. * @param {Protocol.WebAuthn.AuthenticatorId} authenticatorId
  6996. * @param {string} credentialId
  6997. * @return {!Promise<?Protocol.WebAuthn.Credential>}
  6998. */
  6999. Protocol.WebAuthnAgent.prototype.getCredential = function(authenticatorId, credentialId) {};
  7000. /** @typedef {!{credentialId: string, authenticatorId: Protocol.WebAuthn.AuthenticatorId}} */
  7001. Protocol.WebAuthnAgent.GetCredentialRequest;
  7002. /** @typedef {!{credential: Protocol.WebAuthn.Credential}} */
  7003. Protocol.WebAuthnAgent.GetCredentialResponse;
  7004. /**
  7005. * @param {!Protocol.WebAuthnAgent.GetCredentialRequest} obj
  7006. * @return {!Promise<!Protocol.WebAuthnAgent.GetCredentialResponse>} */
  7007. Protocol.WebAuthnAgent.prototype.invoke_getCredential = function(obj) {};
  7008. /**
  7009. * @param {Protocol.WebAuthn.AuthenticatorId} authenticatorId
  7010. * @return {!Promise<?Array<Protocol.WebAuthn.Credential>>}
  7011. */
  7012. Protocol.WebAuthnAgent.prototype.getCredentials = function(authenticatorId) {};
  7013. /** @typedef {!{authenticatorId: Protocol.WebAuthn.AuthenticatorId}} */
  7014. Protocol.WebAuthnAgent.GetCredentialsRequest;
  7015. /** @typedef {!{credentials: !Array<Protocol.WebAuthn.Credential>}} */
  7016. Protocol.WebAuthnAgent.GetCredentialsResponse;
  7017. /**
  7018. * @param {!Protocol.WebAuthnAgent.GetCredentialsRequest} obj
  7019. * @return {!Promise<!Protocol.WebAuthnAgent.GetCredentialsResponse>} */
  7020. Protocol.WebAuthnAgent.prototype.invoke_getCredentials = function(obj) {};
  7021. /**
  7022. * @param {Protocol.WebAuthn.AuthenticatorId} authenticatorId
  7023. * @param {string} credentialId
  7024. * @return {!Promise<undefined>}
  7025. */
  7026. Protocol.WebAuthnAgent.prototype.removeCredential = function(authenticatorId, credentialId) {};
  7027. /** @typedef {!{credentialId: string, authenticatorId: Protocol.WebAuthn.AuthenticatorId}} */
  7028. Protocol.WebAuthnAgent.RemoveCredentialRequest;
  7029. /** @typedef {Object|undefined} */
  7030. Protocol.WebAuthnAgent.RemoveCredentialResponse;
  7031. /**
  7032. * @param {!Protocol.WebAuthnAgent.RemoveCredentialRequest} obj
  7033. * @return {!Promise<!Protocol.WebAuthnAgent.RemoveCredentialResponse>} */
  7034. Protocol.WebAuthnAgent.prototype.invoke_removeCredential = function(obj) {};
  7035. /**
  7036. * @param {Protocol.WebAuthn.AuthenticatorId} authenticatorId
  7037. * @return {!Promise<undefined>}
  7038. */
  7039. Protocol.WebAuthnAgent.prototype.clearCredentials = function(authenticatorId) {};
  7040. /** @typedef {!{authenticatorId: Protocol.WebAuthn.AuthenticatorId}} */
  7041. Protocol.WebAuthnAgent.ClearCredentialsRequest;
  7042. /** @typedef {Object|undefined} */
  7043. Protocol.WebAuthnAgent.ClearCredentialsResponse;
  7044. /**
  7045. * @param {!Protocol.WebAuthnAgent.ClearCredentialsRequest} obj
  7046. * @return {!Promise<!Protocol.WebAuthnAgent.ClearCredentialsResponse>} */
  7047. Protocol.WebAuthnAgent.prototype.invoke_clearCredentials = function(obj) {};
  7048. /**
  7049. * @param {Protocol.WebAuthn.AuthenticatorId} authenticatorId
  7050. * @param {boolean} isUserVerified
  7051. * @return {!Promise<undefined>}
  7052. */
  7053. Protocol.WebAuthnAgent.prototype.setUserVerified = function(authenticatorId, isUserVerified) {};
  7054. /** @typedef {!{authenticatorId: Protocol.WebAuthn.AuthenticatorId, isUserVerified: boolean}} */
  7055. Protocol.WebAuthnAgent.SetUserVerifiedRequest;
  7056. /** @typedef {Object|undefined} */
  7057. Protocol.WebAuthnAgent.SetUserVerifiedResponse;
  7058. /**
  7059. * @param {!Protocol.WebAuthnAgent.SetUserVerifiedRequest} obj
  7060. * @return {!Promise<!Protocol.WebAuthnAgent.SetUserVerifiedResponse>} */
  7061. Protocol.WebAuthnAgent.prototype.invoke_setUserVerified = function(obj) {};
  7062. /** @typedef {string} */
  7063. Protocol.WebAuthn.AuthenticatorId;
  7064. /** @enum {string} */
  7065. Protocol.WebAuthn.AuthenticatorProtocol = {
  7066. U2f: "u2f",
  7067. Ctap2: "ctap2"
  7068. };
  7069. /** @enum {string} */
  7070. Protocol.WebAuthn.AuthenticatorTransport = {
  7071. Usb: "usb",
  7072. Nfc: "nfc",
  7073. Ble: "ble",
  7074. Cable: "cable",
  7075. Internal: "internal"
  7076. };
  7077. /** @typedef {!{protocol:(Protocol.WebAuthn.AuthenticatorProtocol), transport:(Protocol.WebAuthn.AuthenticatorTransport), hasResidentKey:(boolean|undefined), hasUserVerification:(boolean|undefined), automaticPresenceSimulation:(boolean|undefined), isUserVerified:(boolean|undefined)}} */
  7078. Protocol.WebAuthn.VirtualAuthenticatorOptions;
  7079. /** @typedef {!{credentialId:(string), isResidentCredential:(boolean), rpId:(string|undefined), privateKey:(string), userHandle:(string|undefined), signCount:(number)}} */
  7080. Protocol.WebAuthn.Credential;
  7081. /** @interface */
  7082. Protocol.WebAuthnDispatcher = function() {};
  7083. Protocol.Media = {};
  7084. /**
  7085. * @constructor
  7086. */
  7087. Protocol.MediaAgent = function(){};
  7088. /**
  7089. * @return {!Promise<undefined>}
  7090. */
  7091. Protocol.MediaAgent.prototype.enable = function() {};
  7092. /** @typedef {Object|undefined} */
  7093. Protocol.MediaAgent.EnableRequest;
  7094. /** @typedef {Object|undefined} */
  7095. Protocol.MediaAgent.EnableResponse;
  7096. /**
  7097. * @param {!Protocol.MediaAgent.EnableRequest} obj
  7098. * @return {!Promise<!Protocol.MediaAgent.EnableResponse>} */
  7099. Protocol.MediaAgent.prototype.invoke_enable = function(obj) {};
  7100. /**
  7101. * @return {!Promise<undefined>}
  7102. */
  7103. Protocol.MediaAgent.prototype.disable = function() {};
  7104. /** @typedef {Object|undefined} */
  7105. Protocol.MediaAgent.DisableRequest;
  7106. /** @typedef {Object|undefined} */
  7107. Protocol.MediaAgent.DisableResponse;
  7108. /**
  7109. * @param {!Protocol.MediaAgent.DisableRequest} obj
  7110. * @return {!Promise<!Protocol.MediaAgent.DisableResponse>} */
  7111. Protocol.MediaAgent.prototype.invoke_disable = function(obj) {};
  7112. /** @typedef {string} */
  7113. Protocol.Media.PlayerId;
  7114. /** @typedef {number} */
  7115. Protocol.Media.Timestamp;
  7116. /** @typedef {!{name:(string), value:(string|undefined)}} */
  7117. Protocol.Media.PlayerProperty;
  7118. /** @enum {string} */
  7119. Protocol.Media.PlayerEventType = {
  7120. PlaybackEvent: "playbackEvent",
  7121. SystemEvent: "systemEvent",
  7122. MessageEvent: "messageEvent"
  7123. };
  7124. /** @typedef {!{type:(Protocol.Media.PlayerEventType), timestamp:(Protocol.Media.Timestamp), name:(string), value:(string)}} */
  7125. Protocol.Media.PlayerEvent;
  7126. /** @interface */
  7127. Protocol.MediaDispatcher = function() {};
  7128. /**
  7129. * @param {Protocol.Media.PlayerId} playerId
  7130. * @param {!Array<Protocol.Media.PlayerProperty>} properties
  7131. */
  7132. Protocol.MediaDispatcher.prototype.playerPropertiesChanged = function(playerId, properties) {};
  7133. /**
  7134. * @param {Protocol.Media.PlayerId} playerId
  7135. * @param {!Array<Protocol.Media.PlayerEvent>} events
  7136. */
  7137. Protocol.MediaDispatcher.prototype.playerEventsAdded = function(playerId, events) {};
  7138. /**
  7139. * @param {!Array<Protocol.Media.PlayerId>} players
  7140. */
  7141. Protocol.MediaDispatcher.prototype.playersCreated = function(players) {};
  7142. Protocol.Console = {};
  7143. /**
  7144. * @constructor
  7145. */
  7146. Protocol.ConsoleAgent = function(){};
  7147. /**
  7148. * @return {!Promise<undefined>}
  7149. */
  7150. Protocol.ConsoleAgent.prototype.clearMessages = function() {};
  7151. /** @typedef {Object|undefined} */
  7152. Protocol.ConsoleAgent.ClearMessagesRequest;
  7153. /** @typedef {Object|undefined} */
  7154. Protocol.ConsoleAgent.ClearMessagesResponse;
  7155. /**
  7156. * @param {!Protocol.ConsoleAgent.ClearMessagesRequest} obj
  7157. * @return {!Promise<!Protocol.ConsoleAgent.ClearMessagesResponse>} */
  7158. Protocol.ConsoleAgent.prototype.invoke_clearMessages = function(obj) {};
  7159. /**
  7160. * @return {!Promise<undefined>}
  7161. */
  7162. Protocol.ConsoleAgent.prototype.disable = function() {};
  7163. /** @typedef {Object|undefined} */
  7164. Protocol.ConsoleAgent.DisableRequest;
  7165. /** @typedef {Object|undefined} */
  7166. Protocol.ConsoleAgent.DisableResponse;
  7167. /**
  7168. * @param {!Protocol.ConsoleAgent.DisableRequest} obj
  7169. * @return {!Promise<!Protocol.ConsoleAgent.DisableResponse>} */
  7170. Protocol.ConsoleAgent.prototype.invoke_disable = function(obj) {};
  7171. /**
  7172. * @return {!Promise<undefined>}
  7173. */
  7174. Protocol.ConsoleAgent.prototype.enable = function() {};
  7175. /** @typedef {Object|undefined} */
  7176. Protocol.ConsoleAgent.EnableRequest;
  7177. /** @typedef {Object|undefined} */
  7178. Protocol.ConsoleAgent.EnableResponse;
  7179. /**
  7180. * @param {!Protocol.ConsoleAgent.EnableRequest} obj
  7181. * @return {!Promise<!Protocol.ConsoleAgent.EnableResponse>} */
  7182. Protocol.ConsoleAgent.prototype.invoke_enable = function(obj) {};
  7183. /** @enum {string} */
  7184. Protocol.Console.ConsoleMessageSource = {
  7185. XML: "xml",
  7186. Javascript: "javascript",
  7187. Network: "network",
  7188. ConsoleAPI: "console-api",
  7189. Storage: "storage",
  7190. Appcache: "appcache",
  7191. Rendering: "rendering",
  7192. Security: "security",
  7193. Other: "other",
  7194. Deprecation: "deprecation",
  7195. Worker: "worker"
  7196. };
  7197. /** @enum {string} */
  7198. Protocol.Console.ConsoleMessageLevel = {
  7199. Log: "log",
  7200. Warning: "warning",
  7201. Error: "error",
  7202. Debug: "debug",
  7203. Info: "info"
  7204. };
  7205. /** @typedef {!{source:(Protocol.Console.ConsoleMessageSource), level:(Protocol.Console.ConsoleMessageLevel), text:(string), url:(string|undefined), line:(number|undefined), column:(number|undefined)}} */
  7206. Protocol.Console.ConsoleMessage;
  7207. /** @interface */
  7208. Protocol.ConsoleDispatcher = function() {};
  7209. /**
  7210. * @param {Protocol.Console.ConsoleMessage} message
  7211. */
  7212. Protocol.ConsoleDispatcher.prototype.messageAdded = function(message) {};
  7213. Protocol.Debugger = {};
  7214. /**
  7215. * @constructor
  7216. */
  7217. Protocol.DebuggerAgent = function(){};
  7218. /**
  7219. * @param {Protocol.Debugger.Location} location
  7220. * @param {string=} opt_targetCallFrames
  7221. * @return {!Promise<undefined>}
  7222. */
  7223. Protocol.DebuggerAgent.prototype.continueToLocation = function(location, opt_targetCallFrames) {};
  7224. /** @typedef {!{location: Protocol.Debugger.Location, targetCallFrames: (string|undefined)}} */
  7225. Protocol.DebuggerAgent.ContinueToLocationRequest;
  7226. /** @typedef {Object|undefined} */
  7227. Protocol.DebuggerAgent.ContinueToLocationResponse;
  7228. /**
  7229. * @param {!Protocol.DebuggerAgent.ContinueToLocationRequest} obj
  7230. * @return {!Promise<!Protocol.DebuggerAgent.ContinueToLocationResponse>} */
  7231. Protocol.DebuggerAgent.prototype.invoke_continueToLocation = function(obj) {};
  7232. /**
  7233. * @return {!Promise<undefined>}
  7234. */
  7235. Protocol.DebuggerAgent.prototype.disable = function() {};
  7236. /** @typedef {Object|undefined} */
  7237. Protocol.DebuggerAgent.DisableRequest;
  7238. /** @typedef {Object|undefined} */
  7239. Protocol.DebuggerAgent.DisableResponse;
  7240. /**
  7241. * @param {!Protocol.DebuggerAgent.DisableRequest} obj
  7242. * @return {!Promise<!Protocol.DebuggerAgent.DisableResponse>} */
  7243. Protocol.DebuggerAgent.prototype.invoke_disable = function(obj) {};
  7244. /**
  7245. * @param {number=} opt_maxScriptsCacheSize
  7246. * @return {!Promise<?Protocol.Runtime.UniqueDebuggerId>}
  7247. */
  7248. Protocol.DebuggerAgent.prototype.enable = function(opt_maxScriptsCacheSize) {};
  7249. /** @typedef {!{maxScriptsCacheSize: (number|undefined)}} */
  7250. Protocol.DebuggerAgent.EnableRequest;
  7251. /** @typedef {!{debuggerId: Protocol.Runtime.UniqueDebuggerId}} */
  7252. Protocol.DebuggerAgent.EnableResponse;
  7253. /**
  7254. * @param {!Protocol.DebuggerAgent.EnableRequest} obj
  7255. * @return {!Promise<!Protocol.DebuggerAgent.EnableResponse>} */
  7256. Protocol.DebuggerAgent.prototype.invoke_enable = function(obj) {};
  7257. /**
  7258. * @param {Protocol.Debugger.CallFrameId} callFrameId
  7259. * @param {string} expression
  7260. * @param {string=} opt_objectGroup
  7261. * @param {boolean=} opt_includeCommandLineAPI
  7262. * @param {boolean=} opt_silent
  7263. * @param {boolean=} opt_returnByValue
  7264. * @param {boolean=} opt_generatePreview
  7265. * @param {boolean=} opt_throwOnSideEffect
  7266. * @param {Protocol.Runtime.TimeDelta=} opt_timeout
  7267. * @return {!Promise<?Protocol.Runtime.RemoteObject>}
  7268. */
  7269. Protocol.DebuggerAgent.prototype.evaluateOnCallFrame = function(callFrameId, expression, opt_objectGroup, opt_includeCommandLineAPI, opt_silent, opt_returnByValue, opt_generatePreview, opt_throwOnSideEffect, opt_timeout) {};
  7270. /** @typedef {!{objectGroup: (string|undefined), includeCommandLineAPI: (boolean|undefined), silent: (boolean|undefined), throwOnSideEffect: (boolean|undefined), generatePreview: (boolean|undefined), returnByValue: (boolean|undefined), callFrameId: Protocol.Debugger.CallFrameId, timeout: (Protocol.Runtime.TimeDelta|undefined), expression: string}} */
  7271. Protocol.DebuggerAgent.EvaluateOnCallFrameRequest;
  7272. /** @typedef {!{exceptionDetails: Protocol.Runtime.ExceptionDetails, result: Protocol.Runtime.RemoteObject}} */
  7273. Protocol.DebuggerAgent.EvaluateOnCallFrameResponse;
  7274. /**
  7275. * @param {!Protocol.DebuggerAgent.EvaluateOnCallFrameRequest} obj
  7276. * @return {!Promise<!Protocol.DebuggerAgent.EvaluateOnCallFrameResponse>} */
  7277. Protocol.DebuggerAgent.prototype.invoke_evaluateOnCallFrame = function(obj) {};
  7278. /**
  7279. * @param {Protocol.Debugger.Location} start
  7280. * @param {Protocol.Debugger.Location=} opt_end
  7281. * @param {boolean=} opt_restrictToFunction
  7282. * @return {!Promise<?Array<Protocol.Debugger.BreakLocation>>}
  7283. */
  7284. Protocol.DebuggerAgent.prototype.getPossibleBreakpoints = function(start, opt_end, opt_restrictToFunction) {};
  7285. /** @typedef {!{start: Protocol.Debugger.Location, end: (Protocol.Debugger.Location|undefined), restrictToFunction: (boolean|undefined)}} */
  7286. Protocol.DebuggerAgent.GetPossibleBreakpointsRequest;
  7287. /** @typedef {!{locations: !Array<Protocol.Debugger.BreakLocation>}} */
  7288. Protocol.DebuggerAgent.GetPossibleBreakpointsResponse;
  7289. /**
  7290. * @param {!Protocol.DebuggerAgent.GetPossibleBreakpointsRequest} obj
  7291. * @return {!Promise<!Protocol.DebuggerAgent.GetPossibleBreakpointsResponse>} */
  7292. Protocol.DebuggerAgent.prototype.invoke_getPossibleBreakpoints = function(obj) {};
  7293. /**
  7294. * @param {Protocol.Runtime.ScriptId} scriptId
  7295. * @return {!Promise<?string>}
  7296. */
  7297. Protocol.DebuggerAgent.prototype.getScriptSource = function(scriptId) {};
  7298. /** @typedef {!{scriptId: Protocol.Runtime.ScriptId}} */
  7299. Protocol.DebuggerAgent.GetScriptSourceRequest;
  7300. /** @typedef {!{scriptSource: string}} */
  7301. Protocol.DebuggerAgent.GetScriptSourceResponse;
  7302. /**
  7303. * @param {!Protocol.DebuggerAgent.GetScriptSourceRequest} obj
  7304. * @return {!Promise<!Protocol.DebuggerAgent.GetScriptSourceResponse>} */
  7305. Protocol.DebuggerAgent.prototype.invoke_getScriptSource = function(obj) {};
  7306. /**
  7307. * @param {Protocol.Runtime.ScriptId} scriptId
  7308. * @return {!Promise<?string>}
  7309. */
  7310. Protocol.DebuggerAgent.prototype.getWasmBytecode = function(scriptId) {};
  7311. /** @typedef {!{scriptId: Protocol.Runtime.ScriptId}} */
  7312. Protocol.DebuggerAgent.GetWasmBytecodeRequest;
  7313. /** @typedef {!{bytecode: string}} */
  7314. Protocol.DebuggerAgent.GetWasmBytecodeResponse;
  7315. /**
  7316. * @param {!Protocol.DebuggerAgent.GetWasmBytecodeRequest} obj
  7317. * @return {!Promise<!Protocol.DebuggerAgent.GetWasmBytecodeResponse>} */
  7318. Protocol.DebuggerAgent.prototype.invoke_getWasmBytecode = function(obj) {};
  7319. /**
  7320. * @param {Protocol.Runtime.StackTraceId} stackTraceId
  7321. * @return {!Promise<?Protocol.Runtime.StackTrace>}
  7322. */
  7323. Protocol.DebuggerAgent.prototype.getStackTrace = function(stackTraceId) {};
  7324. /** @typedef {!{stackTraceId: Protocol.Runtime.StackTraceId}} */
  7325. Protocol.DebuggerAgent.GetStackTraceRequest;
  7326. /** @typedef {!{stackTrace: Protocol.Runtime.StackTrace}} */
  7327. Protocol.DebuggerAgent.GetStackTraceResponse;
  7328. /**
  7329. * @param {!Protocol.DebuggerAgent.GetStackTraceRequest} obj
  7330. * @return {!Promise<!Protocol.DebuggerAgent.GetStackTraceResponse>} */
  7331. Protocol.DebuggerAgent.prototype.invoke_getStackTrace = function(obj) {};
  7332. /**
  7333. * @return {!Promise<undefined>}
  7334. */
  7335. Protocol.DebuggerAgent.prototype.pause = function() {};
  7336. /** @typedef {Object|undefined} */
  7337. Protocol.DebuggerAgent.PauseRequest;
  7338. /** @typedef {Object|undefined} */
  7339. Protocol.DebuggerAgent.PauseResponse;
  7340. /**
  7341. * @param {!Protocol.DebuggerAgent.PauseRequest} obj
  7342. * @return {!Promise<!Protocol.DebuggerAgent.PauseResponse>} */
  7343. Protocol.DebuggerAgent.prototype.invoke_pause = function(obj) {};
  7344. /**
  7345. * @param {Protocol.Runtime.StackTraceId} parentStackTraceId
  7346. * @return {!Promise<undefined>}
  7347. */
  7348. Protocol.DebuggerAgent.prototype.pauseOnAsyncCall = function(parentStackTraceId) {};
  7349. /** @typedef {!{parentStackTraceId: Protocol.Runtime.StackTraceId}} */
  7350. Protocol.DebuggerAgent.PauseOnAsyncCallRequest;
  7351. /** @typedef {Object|undefined} */
  7352. Protocol.DebuggerAgent.PauseOnAsyncCallResponse;
  7353. /**
  7354. * @param {!Protocol.DebuggerAgent.PauseOnAsyncCallRequest} obj
  7355. * @return {!Promise<!Protocol.DebuggerAgent.PauseOnAsyncCallResponse>} */
  7356. Protocol.DebuggerAgent.prototype.invoke_pauseOnAsyncCall = function(obj) {};
  7357. /**
  7358. * @param {Protocol.Debugger.BreakpointId} breakpointId
  7359. * @return {!Promise<undefined>}
  7360. */
  7361. Protocol.DebuggerAgent.prototype.removeBreakpoint = function(breakpointId) {};
  7362. /** @typedef {!{breakpointId: Protocol.Debugger.BreakpointId}} */
  7363. Protocol.DebuggerAgent.RemoveBreakpointRequest;
  7364. /** @typedef {Object|undefined} */
  7365. Protocol.DebuggerAgent.RemoveBreakpointResponse;
  7366. /**
  7367. * @param {!Protocol.DebuggerAgent.RemoveBreakpointRequest} obj
  7368. * @return {!Promise<!Protocol.DebuggerAgent.RemoveBreakpointResponse>} */
  7369. Protocol.DebuggerAgent.prototype.invoke_removeBreakpoint = function(obj) {};
  7370. /**
  7371. * @param {Protocol.Debugger.CallFrameId} callFrameId
  7372. * @return {!Promise<?Array<Protocol.Debugger.CallFrame>>}
  7373. */
  7374. Protocol.DebuggerAgent.prototype.restartFrame = function(callFrameId) {};
  7375. /** @typedef {!{callFrameId: Protocol.Debugger.CallFrameId}} */
  7376. Protocol.DebuggerAgent.RestartFrameRequest;
  7377. /** @typedef {!{asyncStackTrace: Protocol.Runtime.StackTrace, asyncStackTraceId: Protocol.Runtime.StackTraceId, callFrames: !Array<Protocol.Debugger.CallFrame>}} */
  7378. Protocol.DebuggerAgent.RestartFrameResponse;
  7379. /**
  7380. * @param {!Protocol.DebuggerAgent.RestartFrameRequest} obj
  7381. * @return {!Promise<!Protocol.DebuggerAgent.RestartFrameResponse>} */
  7382. Protocol.DebuggerAgent.prototype.invoke_restartFrame = function(obj) {};
  7383. /**
  7384. * @return {!Promise<undefined>}
  7385. */
  7386. Protocol.DebuggerAgent.prototype.resume = function() {};
  7387. /** @typedef {Object|undefined} */
  7388. Protocol.DebuggerAgent.ResumeRequest;
  7389. /** @typedef {Object|undefined} */
  7390. Protocol.DebuggerAgent.ResumeResponse;
  7391. /**
  7392. * @param {!Protocol.DebuggerAgent.ResumeRequest} obj
  7393. * @return {!Promise<!Protocol.DebuggerAgent.ResumeResponse>} */
  7394. Protocol.DebuggerAgent.prototype.invoke_resume = function(obj) {};
  7395. /**
  7396. * @param {Protocol.Runtime.ScriptId} scriptId
  7397. * @param {string} query
  7398. * @param {boolean=} opt_caseSensitive
  7399. * @param {boolean=} opt_isRegex
  7400. * @return {!Promise<?Array<Protocol.Debugger.SearchMatch>>}
  7401. */
  7402. Protocol.DebuggerAgent.prototype.searchInContent = function(scriptId, query, opt_caseSensitive, opt_isRegex) {};
  7403. /** @typedef {!{query: string, scriptId: Protocol.Runtime.ScriptId, isRegex: (boolean|undefined), caseSensitive: (boolean|undefined)}} */
  7404. Protocol.DebuggerAgent.SearchInContentRequest;
  7405. /** @typedef {!{result: !Array<Protocol.Debugger.SearchMatch>}} */
  7406. Protocol.DebuggerAgent.SearchInContentResponse;
  7407. /**
  7408. * @param {!Protocol.DebuggerAgent.SearchInContentRequest} obj
  7409. * @return {!Promise<!Protocol.DebuggerAgent.SearchInContentResponse>} */
  7410. Protocol.DebuggerAgent.prototype.invoke_searchInContent = function(obj) {};
  7411. /**
  7412. * @param {number} maxDepth
  7413. * @return {!Promise<undefined>}
  7414. */
  7415. Protocol.DebuggerAgent.prototype.setAsyncCallStackDepth = function(maxDepth) {};
  7416. /** @typedef {!{maxDepth: number}} */
  7417. Protocol.DebuggerAgent.SetAsyncCallStackDepthRequest;
  7418. /** @typedef {Object|undefined} */
  7419. Protocol.DebuggerAgent.SetAsyncCallStackDepthResponse;
  7420. /**
  7421. * @param {!Protocol.DebuggerAgent.SetAsyncCallStackDepthRequest} obj
  7422. * @return {!Promise<!Protocol.DebuggerAgent.SetAsyncCallStackDepthResponse>} */
  7423. Protocol.DebuggerAgent.prototype.invoke_setAsyncCallStackDepth = function(obj) {};
  7424. /**
  7425. * @param {!Array<string>} patterns
  7426. * @return {!Promise<undefined>}
  7427. */
  7428. Protocol.DebuggerAgent.prototype.setBlackboxPatterns = function(patterns) {};
  7429. /** @typedef {!{patterns: !Array<string>}} */
  7430. Protocol.DebuggerAgent.SetBlackboxPatternsRequest;
  7431. /** @typedef {Object|undefined} */
  7432. Protocol.DebuggerAgent.SetBlackboxPatternsResponse;
  7433. /**
  7434. * @param {!Protocol.DebuggerAgent.SetBlackboxPatternsRequest} obj
  7435. * @return {!Promise<!Protocol.DebuggerAgent.SetBlackboxPatternsResponse>} */
  7436. Protocol.DebuggerAgent.prototype.invoke_setBlackboxPatterns = function(obj) {};
  7437. /**
  7438. * @param {Protocol.Runtime.ScriptId} scriptId
  7439. * @param {!Array<Protocol.Debugger.ScriptPosition>} positions
  7440. * @return {!Promise<undefined>}
  7441. */
  7442. Protocol.DebuggerAgent.prototype.setBlackboxedRanges = function(scriptId, positions) {};
  7443. /** @typedef {!{positions: !Array<Protocol.Debugger.ScriptPosition>, scriptId: Protocol.Runtime.ScriptId}} */
  7444. Protocol.DebuggerAgent.SetBlackboxedRangesRequest;
  7445. /** @typedef {Object|undefined} */
  7446. Protocol.DebuggerAgent.SetBlackboxedRangesResponse;
  7447. /**
  7448. * @param {!Protocol.DebuggerAgent.SetBlackboxedRangesRequest} obj
  7449. * @return {!Promise<!Protocol.DebuggerAgent.SetBlackboxedRangesResponse>} */
  7450. Protocol.DebuggerAgent.prototype.invoke_setBlackboxedRanges = function(obj) {};
  7451. /**
  7452. * @param {Protocol.Debugger.Location} location
  7453. * @param {string=} opt_condition
  7454. * @return {!Promise<?Protocol.Debugger.BreakpointId>}
  7455. */
  7456. Protocol.DebuggerAgent.prototype.setBreakpoint = function(location, opt_condition) {};
  7457. /** @typedef {!{location: Protocol.Debugger.Location, condition: (string|undefined)}} */
  7458. Protocol.DebuggerAgent.SetBreakpointRequest;
  7459. /** @typedef {!{actualLocation: Protocol.Debugger.Location, breakpointId: Protocol.Debugger.BreakpointId}} */
  7460. Protocol.DebuggerAgent.SetBreakpointResponse;
  7461. /**
  7462. * @param {!Protocol.DebuggerAgent.SetBreakpointRequest} obj
  7463. * @return {!Promise<!Protocol.DebuggerAgent.SetBreakpointResponse>} */
  7464. Protocol.DebuggerAgent.prototype.invoke_setBreakpoint = function(obj) {};
  7465. /**
  7466. * @param {string} instrumentation
  7467. * @return {!Promise<?Protocol.Debugger.BreakpointId>}
  7468. */
  7469. Protocol.DebuggerAgent.prototype.setInstrumentationBreakpoint = function(instrumentation) {};
  7470. /** @typedef {!{instrumentation: string}} */
  7471. Protocol.DebuggerAgent.SetInstrumentationBreakpointRequest;
  7472. /** @typedef {!{breakpointId: Protocol.Debugger.BreakpointId}} */
  7473. Protocol.DebuggerAgent.SetInstrumentationBreakpointResponse;
  7474. /**
  7475. * @param {!Protocol.DebuggerAgent.SetInstrumentationBreakpointRequest} obj
  7476. * @return {!Promise<!Protocol.DebuggerAgent.SetInstrumentationBreakpointResponse>} */
  7477. Protocol.DebuggerAgent.prototype.invoke_setInstrumentationBreakpoint = function(obj) {};
  7478. /**
  7479. * @param {number} lineNumber
  7480. * @param {string=} opt_url
  7481. * @param {string=} opt_urlRegex
  7482. * @param {string=} opt_scriptHash
  7483. * @param {number=} opt_columnNumber
  7484. * @param {string=} opt_condition
  7485. * @return {!Promise<?Protocol.Debugger.BreakpointId>}
  7486. */
  7487. Protocol.DebuggerAgent.prototype.setBreakpointByUrl = function(lineNumber, opt_url, opt_urlRegex, opt_scriptHash, opt_columnNumber, opt_condition) {};
  7488. /** @typedef {!{columnNumber: (number|undefined), urlRegex: (string|undefined), url: (string|undefined), lineNumber: number, scriptHash: (string|undefined), condition: (string|undefined)}} */
  7489. Protocol.DebuggerAgent.SetBreakpointByUrlRequest;
  7490. /** @typedef {!{breakpointId: Protocol.Debugger.BreakpointId, locations: !Array<Protocol.Debugger.Location>}} */
  7491. Protocol.DebuggerAgent.SetBreakpointByUrlResponse;
  7492. /**
  7493. * @param {!Protocol.DebuggerAgent.SetBreakpointByUrlRequest} obj
  7494. * @return {!Promise<!Protocol.DebuggerAgent.SetBreakpointByUrlResponse>} */
  7495. Protocol.DebuggerAgent.prototype.invoke_setBreakpointByUrl = function(obj) {};
  7496. /**
  7497. * @param {Protocol.Runtime.RemoteObjectId} objectId
  7498. * @param {string=} opt_condition
  7499. * @return {!Promise<?Protocol.Debugger.BreakpointId>}
  7500. */
  7501. Protocol.DebuggerAgent.prototype.setBreakpointOnFunctionCall = function(objectId, opt_condition) {};
  7502. /** @typedef {!{condition: (string|undefined), objectId: Protocol.Runtime.RemoteObjectId}} */
  7503. Protocol.DebuggerAgent.SetBreakpointOnFunctionCallRequest;
  7504. /** @typedef {!{breakpointId: Protocol.Debugger.BreakpointId}} */
  7505. Protocol.DebuggerAgent.SetBreakpointOnFunctionCallResponse;
  7506. /**
  7507. * @param {!Protocol.DebuggerAgent.SetBreakpointOnFunctionCallRequest} obj
  7508. * @return {!Promise<!Protocol.DebuggerAgent.SetBreakpointOnFunctionCallResponse>} */
  7509. Protocol.DebuggerAgent.prototype.invoke_setBreakpointOnFunctionCall = function(obj) {};
  7510. /**
  7511. * @param {boolean} active
  7512. * @return {!Promise<undefined>}
  7513. */
  7514. Protocol.DebuggerAgent.prototype.setBreakpointsActive = function(active) {};
  7515. /** @typedef {!{active: boolean}} */
  7516. Protocol.DebuggerAgent.SetBreakpointsActiveRequest;
  7517. /** @typedef {Object|undefined} */
  7518. Protocol.DebuggerAgent.SetBreakpointsActiveResponse;
  7519. /**
  7520. * @param {!Protocol.DebuggerAgent.SetBreakpointsActiveRequest} obj
  7521. * @return {!Promise<!Protocol.DebuggerAgent.SetBreakpointsActiveResponse>} */
  7522. Protocol.DebuggerAgent.prototype.invoke_setBreakpointsActive = function(obj) {};
  7523. /**
  7524. * @param {string} state
  7525. * @return {!Promise<undefined>}
  7526. */
  7527. Protocol.DebuggerAgent.prototype.setPauseOnExceptions = function(state) {};
  7528. /** @typedef {!{state: string}} */
  7529. Protocol.DebuggerAgent.SetPauseOnExceptionsRequest;
  7530. /** @typedef {Object|undefined} */
  7531. Protocol.DebuggerAgent.SetPauseOnExceptionsResponse;
  7532. /**
  7533. * @param {!Protocol.DebuggerAgent.SetPauseOnExceptionsRequest} obj
  7534. * @return {!Promise<!Protocol.DebuggerAgent.SetPauseOnExceptionsResponse>} */
  7535. Protocol.DebuggerAgent.prototype.invoke_setPauseOnExceptions = function(obj) {};
  7536. /**
  7537. * @param {Protocol.Runtime.CallArgument} newValue
  7538. * @return {!Promise<undefined>}
  7539. */
  7540. Protocol.DebuggerAgent.prototype.setReturnValue = function(newValue) {};
  7541. /** @typedef {!{newValue: Protocol.Runtime.CallArgument}} */
  7542. Protocol.DebuggerAgent.SetReturnValueRequest;
  7543. /** @typedef {Object|undefined} */
  7544. Protocol.DebuggerAgent.SetReturnValueResponse;
  7545. /**
  7546. * @param {!Protocol.DebuggerAgent.SetReturnValueRequest} obj
  7547. * @return {!Promise<!Protocol.DebuggerAgent.SetReturnValueResponse>} */
  7548. Protocol.DebuggerAgent.prototype.invoke_setReturnValue = function(obj) {};
  7549. /**
  7550. * @param {Protocol.Runtime.ScriptId} scriptId
  7551. * @param {string} scriptSource
  7552. * @param {boolean=} opt_dryRun
  7553. * @return {!Promise<?Array<Protocol.Debugger.CallFrame>>}
  7554. */
  7555. Protocol.DebuggerAgent.prototype.setScriptSource = function(scriptId, scriptSource, opt_dryRun) {};
  7556. /** @typedef {!{scriptId: Protocol.Runtime.ScriptId, dryRun: (boolean|undefined), scriptSource: string}} */
  7557. Protocol.DebuggerAgent.SetScriptSourceRequest;
  7558. /** @typedef {!{stackChanged: boolean, asyncStackTrace: Protocol.Runtime.StackTrace, exceptionDetails: Protocol.Runtime.ExceptionDetails, callFrames: !Array<Protocol.Debugger.CallFrame>, asyncStackTraceId: Protocol.Runtime.StackTraceId}} */
  7559. Protocol.DebuggerAgent.SetScriptSourceResponse;
  7560. /**
  7561. * @param {!Protocol.DebuggerAgent.SetScriptSourceRequest} obj
  7562. * @return {!Promise<!Protocol.DebuggerAgent.SetScriptSourceResponse>} */
  7563. Protocol.DebuggerAgent.prototype.invoke_setScriptSource = function(obj) {};
  7564. /**
  7565. * @param {boolean} skip
  7566. * @return {!Promise<undefined>}
  7567. */
  7568. Protocol.DebuggerAgent.prototype.setSkipAllPauses = function(skip) {};
  7569. /** @typedef {!{skip: boolean}} */
  7570. Protocol.DebuggerAgent.SetSkipAllPausesRequest;
  7571. /** @typedef {Object|undefined} */
  7572. Protocol.DebuggerAgent.SetSkipAllPausesResponse;
  7573. /**
  7574. * @param {!Protocol.DebuggerAgent.SetSkipAllPausesRequest} obj
  7575. * @return {!Promise<!Protocol.DebuggerAgent.SetSkipAllPausesResponse>} */
  7576. Protocol.DebuggerAgent.prototype.invoke_setSkipAllPauses = function(obj) {};
  7577. /**
  7578. * @param {number} scopeNumber
  7579. * @param {string} variableName
  7580. * @param {Protocol.Runtime.CallArgument} newValue
  7581. * @param {Protocol.Debugger.CallFrameId} callFrameId
  7582. * @return {!Promise<undefined>}
  7583. */
  7584. Protocol.DebuggerAgent.prototype.setVariableValue = function(scopeNumber, variableName, newValue, callFrameId) {};
  7585. /** @typedef {!{callFrameId: Protocol.Debugger.CallFrameId, scopeNumber: number, variableName: string, newValue: Protocol.Runtime.CallArgument}} */
  7586. Protocol.DebuggerAgent.SetVariableValueRequest;
  7587. /** @typedef {Object|undefined} */
  7588. Protocol.DebuggerAgent.SetVariableValueResponse;
  7589. /**
  7590. * @param {!Protocol.DebuggerAgent.SetVariableValueRequest} obj
  7591. * @return {!Promise<!Protocol.DebuggerAgent.SetVariableValueResponse>} */
  7592. Protocol.DebuggerAgent.prototype.invoke_setVariableValue = function(obj) {};
  7593. /**
  7594. * @param {boolean=} opt_breakOnAsyncCall
  7595. * @return {!Promise<undefined>}
  7596. */
  7597. Protocol.DebuggerAgent.prototype.stepInto = function(opt_breakOnAsyncCall) {};
  7598. /** @typedef {!{breakOnAsyncCall: (boolean|undefined)}} */
  7599. Protocol.DebuggerAgent.StepIntoRequest;
  7600. /** @typedef {Object|undefined} */
  7601. Protocol.DebuggerAgent.StepIntoResponse;
  7602. /**
  7603. * @param {!Protocol.DebuggerAgent.StepIntoRequest} obj
  7604. * @return {!Promise<!Protocol.DebuggerAgent.StepIntoResponse>} */
  7605. Protocol.DebuggerAgent.prototype.invoke_stepInto = function(obj) {};
  7606. /**
  7607. * @return {!Promise<undefined>}
  7608. */
  7609. Protocol.DebuggerAgent.prototype.stepOut = function() {};
  7610. /** @typedef {Object|undefined} */
  7611. Protocol.DebuggerAgent.StepOutRequest;
  7612. /** @typedef {Object|undefined} */
  7613. Protocol.DebuggerAgent.StepOutResponse;
  7614. /**
  7615. * @param {!Protocol.DebuggerAgent.StepOutRequest} obj
  7616. * @return {!Promise<!Protocol.DebuggerAgent.StepOutResponse>} */
  7617. Protocol.DebuggerAgent.prototype.invoke_stepOut = function(obj) {};
  7618. /**
  7619. * @return {!Promise<undefined>}
  7620. */
  7621. Protocol.DebuggerAgent.prototype.stepOver = function() {};
  7622. /** @typedef {Object|undefined} */
  7623. Protocol.DebuggerAgent.StepOverRequest;
  7624. /** @typedef {Object|undefined} */
  7625. Protocol.DebuggerAgent.StepOverResponse;
  7626. /**
  7627. * @param {!Protocol.DebuggerAgent.StepOverRequest} obj
  7628. * @return {!Promise<!Protocol.DebuggerAgent.StepOverResponse>} */
  7629. Protocol.DebuggerAgent.prototype.invoke_stepOver = function(obj) {};
  7630. /** @typedef {string} */
  7631. Protocol.Debugger.BreakpointId;
  7632. /** @typedef {string} */
  7633. Protocol.Debugger.CallFrameId;
  7634. /** @typedef {!{scriptId:(Protocol.Runtime.ScriptId), lineNumber:(number), columnNumber:(number|undefined)}} */
  7635. Protocol.Debugger.Location;
  7636. /** @typedef {!{lineNumber:(number), columnNumber:(number)}} */
  7637. Protocol.Debugger.ScriptPosition;
  7638. /** @typedef {!{callFrameId:(Protocol.Debugger.CallFrameId), functionName:(string), functionLocation:(Protocol.Debugger.Location|undefined), location:(Protocol.Debugger.Location), url:(string), scopeChain:(!Array<Protocol.Debugger.Scope>), this:(Protocol.Runtime.RemoteObject), returnValue:(Protocol.Runtime.RemoteObject|undefined)}} */
  7639. Protocol.Debugger.CallFrame;
  7640. /** @enum {string} */
  7641. Protocol.Debugger.ScopeType = {
  7642. Global: "global",
  7643. Local: "local",
  7644. With: "with",
  7645. Closure: "closure",
  7646. Catch: "catch",
  7647. Block: "block",
  7648. Script: "script",
  7649. Eval: "eval",
  7650. Module: "module"
  7651. };
  7652. /** @typedef {!{type:(Protocol.Debugger.ScopeType), object:(Protocol.Runtime.RemoteObject), name:(string|undefined), startLocation:(Protocol.Debugger.Location|undefined), endLocation:(Protocol.Debugger.Location|undefined)}} */
  7653. Protocol.Debugger.Scope;
  7654. /** @typedef {!{lineNumber:(number), lineContent:(string)}} */
  7655. Protocol.Debugger.SearchMatch;
  7656. /** @enum {string} */
  7657. Protocol.Debugger.BreakLocationType = {
  7658. DebuggerStatement: "debuggerStatement",
  7659. Call: "call",
  7660. Return: "return"
  7661. };
  7662. /** @typedef {!{scriptId:(Protocol.Runtime.ScriptId), lineNumber:(number), columnNumber:(number|undefined), type:(Protocol.Debugger.BreakLocationType|undefined)}} */
  7663. Protocol.Debugger.BreakLocation;
  7664. /** @constructor */
  7665. Protocol.DebuggerDispatcher = function() {};
  7666. /**
  7667. * @param {Protocol.Debugger.BreakpointId} breakpointId
  7668. * @param {Protocol.Debugger.Location} location
  7669. */
  7670. Protocol.DebuggerDispatcher.prototype.breakpointResolved = function(breakpointId, location) {};
  7671. /**
  7672. * @param {!Array<Protocol.Debugger.CallFrame>} callFrames
  7673. * @param {string} reason
  7674. * @param {!Object=} opt_data
  7675. * @param {!Array<string>=} opt_hitBreakpoints
  7676. * @param {Protocol.Runtime.StackTrace=} opt_asyncStackTrace
  7677. * @param {Protocol.Runtime.StackTraceId=} opt_asyncStackTraceId
  7678. * @param {Protocol.Runtime.StackTraceId=} opt_asyncCallStackTraceId
  7679. */
  7680. Protocol.DebuggerDispatcher.prototype.paused = function(callFrames, reason, opt_data, opt_hitBreakpoints, opt_asyncStackTrace, opt_asyncStackTraceId, opt_asyncCallStackTraceId) {};
  7681. Protocol.DebuggerDispatcher.prototype.resumed = function() {};
  7682. /**
  7683. * @param {Protocol.Runtime.ScriptId} scriptId
  7684. * @param {string} url
  7685. * @param {number} startLine
  7686. * @param {number} startColumn
  7687. * @param {number} endLine
  7688. * @param {number} endColumn
  7689. * @param {Protocol.Runtime.ExecutionContextId} executionContextId
  7690. * @param {string} hash
  7691. * @param {!Object=} opt_executionContextAuxData
  7692. * @param {string=} opt_sourceMapURL
  7693. * @param {boolean=} opt_hasSourceURL
  7694. * @param {boolean=} opt_isModule
  7695. * @param {number=} opt_length
  7696. * @param {Protocol.Runtime.StackTrace=} opt_stackTrace
  7697. */
  7698. Protocol.DebuggerDispatcher.prototype.scriptFailedToParse = function(scriptId, url, startLine, startColumn, endLine, endColumn, executionContextId, hash, opt_executionContextAuxData, opt_sourceMapURL, opt_hasSourceURL, opt_isModule, opt_length, opt_stackTrace) {};
  7699. /**
  7700. * @param {Protocol.Runtime.ScriptId} scriptId
  7701. * @param {string} url
  7702. * @param {number} startLine
  7703. * @param {number} startColumn
  7704. * @param {number} endLine
  7705. * @param {number} endColumn
  7706. * @param {Protocol.Runtime.ExecutionContextId} executionContextId
  7707. * @param {string} hash
  7708. * @param {!Object=} opt_executionContextAuxData
  7709. * @param {boolean=} opt_isLiveEdit
  7710. * @param {string=} opt_sourceMapURL
  7711. * @param {boolean=} opt_hasSourceURL
  7712. * @param {boolean=} opt_isModule
  7713. * @param {number=} opt_length
  7714. * @param {Protocol.Runtime.StackTrace=} opt_stackTrace
  7715. */
  7716. Protocol.DebuggerDispatcher.prototype.scriptParsed = function(scriptId, url, startLine, startColumn, endLine, endColumn, executionContextId, hash, opt_executionContextAuxData, opt_isLiveEdit, opt_sourceMapURL, opt_hasSourceURL, opt_isModule, opt_length, opt_stackTrace) {};
  7717. Protocol.HeapProfiler = {};
  7718. /**
  7719. * @constructor
  7720. */
  7721. Protocol.HeapProfilerAgent = function(){};
  7722. /**
  7723. * @param {Protocol.HeapProfiler.HeapSnapshotObjectId} heapObjectId
  7724. * @return {!Promise<undefined>}
  7725. */
  7726. Protocol.HeapProfilerAgent.prototype.addInspectedHeapObject = function(heapObjectId) {};
  7727. /** @typedef {!{heapObjectId: Protocol.HeapProfiler.HeapSnapshotObjectId}} */
  7728. Protocol.HeapProfilerAgent.AddInspectedHeapObjectRequest;
  7729. /** @typedef {Object|undefined} */
  7730. Protocol.HeapProfilerAgent.AddInspectedHeapObjectResponse;
  7731. /**
  7732. * @param {!Protocol.HeapProfilerAgent.AddInspectedHeapObjectRequest} obj
  7733. * @return {!Promise<!Protocol.HeapProfilerAgent.AddInspectedHeapObjectResponse>} */
  7734. Protocol.HeapProfilerAgent.prototype.invoke_addInspectedHeapObject = function(obj) {};
  7735. /**
  7736. * @return {!Promise<undefined>}
  7737. */
  7738. Protocol.HeapProfilerAgent.prototype.collectGarbage = function() {};
  7739. /** @typedef {Object|undefined} */
  7740. Protocol.HeapProfilerAgent.CollectGarbageRequest;
  7741. /** @typedef {Object|undefined} */
  7742. Protocol.HeapProfilerAgent.CollectGarbageResponse;
  7743. /**
  7744. * @param {!Protocol.HeapProfilerAgent.CollectGarbageRequest} obj
  7745. * @return {!Promise<!Protocol.HeapProfilerAgent.CollectGarbageResponse>} */
  7746. Protocol.HeapProfilerAgent.prototype.invoke_collectGarbage = function(obj) {};
  7747. /**
  7748. * @return {!Promise<undefined>}
  7749. */
  7750. Protocol.HeapProfilerAgent.prototype.disable = function() {};
  7751. /** @typedef {Object|undefined} */
  7752. Protocol.HeapProfilerAgent.DisableRequest;
  7753. /** @typedef {Object|undefined} */
  7754. Protocol.HeapProfilerAgent.DisableResponse;
  7755. /**
  7756. * @param {!Protocol.HeapProfilerAgent.DisableRequest} obj
  7757. * @return {!Promise<!Protocol.HeapProfilerAgent.DisableResponse>} */
  7758. Protocol.HeapProfilerAgent.prototype.invoke_disable = function(obj) {};
  7759. /**
  7760. * @return {!Promise<undefined>}
  7761. */
  7762. Protocol.HeapProfilerAgent.prototype.enable = function() {};
  7763. /** @typedef {Object|undefined} */
  7764. Protocol.HeapProfilerAgent.EnableRequest;
  7765. /** @typedef {Object|undefined} */
  7766. Protocol.HeapProfilerAgent.EnableResponse;
  7767. /**
  7768. * @param {!Protocol.HeapProfilerAgent.EnableRequest} obj
  7769. * @return {!Promise<!Protocol.HeapProfilerAgent.EnableResponse>} */
  7770. Protocol.HeapProfilerAgent.prototype.invoke_enable = function(obj) {};
  7771. /**
  7772. * @param {Protocol.Runtime.RemoteObjectId} objectId
  7773. * @return {!Promise<?Protocol.HeapProfiler.HeapSnapshotObjectId>}
  7774. */
  7775. Protocol.HeapProfilerAgent.prototype.getHeapObjectId = function(objectId) {};
  7776. /** @typedef {!{objectId: Protocol.Runtime.RemoteObjectId}} */
  7777. Protocol.HeapProfilerAgent.GetHeapObjectIdRequest;
  7778. /** @typedef {!{heapSnapshotObjectId: Protocol.HeapProfiler.HeapSnapshotObjectId}} */
  7779. Protocol.HeapProfilerAgent.GetHeapObjectIdResponse;
  7780. /**
  7781. * @param {!Protocol.HeapProfilerAgent.GetHeapObjectIdRequest} obj
  7782. * @return {!Promise<!Protocol.HeapProfilerAgent.GetHeapObjectIdResponse>} */
  7783. Protocol.HeapProfilerAgent.prototype.invoke_getHeapObjectId = function(obj) {};
  7784. /**
  7785. * @param {Protocol.HeapProfiler.HeapSnapshotObjectId} objectId
  7786. * @param {string=} opt_objectGroup
  7787. * @return {!Promise<?Protocol.Runtime.RemoteObject>}
  7788. */
  7789. Protocol.HeapProfilerAgent.prototype.getObjectByHeapObjectId = function(objectId, opt_objectGroup) {};
  7790. /** @typedef {!{objectGroup: (string|undefined), objectId: Protocol.HeapProfiler.HeapSnapshotObjectId}} */
  7791. Protocol.HeapProfilerAgent.GetObjectByHeapObjectIdRequest;
  7792. /** @typedef {!{result: Protocol.Runtime.RemoteObject}} */
  7793. Protocol.HeapProfilerAgent.GetObjectByHeapObjectIdResponse;
  7794. /**
  7795. * @param {!Protocol.HeapProfilerAgent.GetObjectByHeapObjectIdRequest} obj
  7796. * @return {!Promise<!Protocol.HeapProfilerAgent.GetObjectByHeapObjectIdResponse>} */
  7797. Protocol.HeapProfilerAgent.prototype.invoke_getObjectByHeapObjectId = function(obj) {};
  7798. /**
  7799. * @return {!Promise<?Protocol.HeapProfiler.SamplingHeapProfile>}
  7800. */
  7801. Protocol.HeapProfilerAgent.prototype.getSamplingProfile = function() {};
  7802. /** @typedef {Object|undefined} */
  7803. Protocol.HeapProfilerAgent.GetSamplingProfileRequest;
  7804. /** @typedef {!{profile: Protocol.HeapProfiler.SamplingHeapProfile}} */
  7805. Protocol.HeapProfilerAgent.GetSamplingProfileResponse;
  7806. /**
  7807. * @param {!Protocol.HeapProfilerAgent.GetSamplingProfileRequest} obj
  7808. * @return {!Promise<!Protocol.HeapProfilerAgent.GetSamplingProfileResponse>} */
  7809. Protocol.HeapProfilerAgent.prototype.invoke_getSamplingProfile = function(obj) {};
  7810. /**
  7811. * @param {number=} opt_samplingInterval
  7812. * @return {!Promise<undefined>}
  7813. */
  7814. Protocol.HeapProfilerAgent.prototype.startSampling = function(opt_samplingInterval) {};
  7815. /** @typedef {!{samplingInterval: (number|undefined)}} */
  7816. Protocol.HeapProfilerAgent.StartSamplingRequest;
  7817. /** @typedef {Object|undefined} */
  7818. Protocol.HeapProfilerAgent.StartSamplingResponse;
  7819. /**
  7820. * @param {!Protocol.HeapProfilerAgent.StartSamplingRequest} obj
  7821. * @return {!Promise<!Protocol.HeapProfilerAgent.StartSamplingResponse>} */
  7822. Protocol.HeapProfilerAgent.prototype.invoke_startSampling = function(obj) {};
  7823. /**
  7824. * @param {boolean=} opt_trackAllocations
  7825. * @return {!Promise<undefined>}
  7826. */
  7827. Protocol.HeapProfilerAgent.prototype.startTrackingHeapObjects = function(opt_trackAllocations) {};
  7828. /** @typedef {!{trackAllocations: (boolean|undefined)}} */
  7829. Protocol.HeapProfilerAgent.StartTrackingHeapObjectsRequest;
  7830. /** @typedef {Object|undefined} */
  7831. Protocol.HeapProfilerAgent.StartTrackingHeapObjectsResponse;
  7832. /**
  7833. * @param {!Protocol.HeapProfilerAgent.StartTrackingHeapObjectsRequest} obj
  7834. * @return {!Promise<!Protocol.HeapProfilerAgent.StartTrackingHeapObjectsResponse>} */
  7835. Protocol.HeapProfilerAgent.prototype.invoke_startTrackingHeapObjects = function(obj) {};
  7836. /**
  7837. * @return {!Promise<?Protocol.HeapProfiler.SamplingHeapProfile>}
  7838. */
  7839. Protocol.HeapProfilerAgent.prototype.stopSampling = function() {};
  7840. /** @typedef {Object|undefined} */
  7841. Protocol.HeapProfilerAgent.StopSamplingRequest;
  7842. /** @typedef {!{profile: Protocol.HeapProfiler.SamplingHeapProfile}} */
  7843. Protocol.HeapProfilerAgent.StopSamplingResponse;
  7844. /**
  7845. * @param {!Protocol.HeapProfilerAgent.StopSamplingRequest} obj
  7846. * @return {!Promise<!Protocol.HeapProfilerAgent.StopSamplingResponse>} */
  7847. Protocol.HeapProfilerAgent.prototype.invoke_stopSampling = function(obj) {};
  7848. /**
  7849. * @param {boolean=} opt_reportProgress
  7850. * @return {!Promise<undefined>}
  7851. */
  7852. Protocol.HeapProfilerAgent.prototype.stopTrackingHeapObjects = function(opt_reportProgress) {};
  7853. /** @typedef {!{reportProgress: (boolean|undefined)}} */
  7854. Protocol.HeapProfilerAgent.StopTrackingHeapObjectsRequest;
  7855. /** @typedef {Object|undefined} */
  7856. Protocol.HeapProfilerAgent.StopTrackingHeapObjectsResponse;
  7857. /**
  7858. * @param {!Protocol.HeapProfilerAgent.StopTrackingHeapObjectsRequest} obj
  7859. * @return {!Promise<!Protocol.HeapProfilerAgent.StopTrackingHeapObjectsResponse>} */
  7860. Protocol.HeapProfilerAgent.prototype.invoke_stopTrackingHeapObjects = function(obj) {};
  7861. /**
  7862. * @param {boolean=} opt_reportProgress
  7863. * @return {!Promise<undefined>}
  7864. */
  7865. Protocol.HeapProfilerAgent.prototype.takeHeapSnapshot = function(opt_reportProgress) {};
  7866. /** @typedef {!{reportProgress: (boolean|undefined)}} */
  7867. Protocol.HeapProfilerAgent.TakeHeapSnapshotRequest;
  7868. /** @typedef {Object|undefined} */
  7869. Protocol.HeapProfilerAgent.TakeHeapSnapshotResponse;
  7870. /**
  7871. * @param {!Protocol.HeapProfilerAgent.TakeHeapSnapshotRequest} obj
  7872. * @return {!Promise<!Protocol.HeapProfilerAgent.TakeHeapSnapshotResponse>} */
  7873. Protocol.HeapProfilerAgent.prototype.invoke_takeHeapSnapshot = function(obj) {};
  7874. /** @typedef {string} */
  7875. Protocol.HeapProfiler.HeapSnapshotObjectId;
  7876. /** @typedef {!{callFrame:(Protocol.Runtime.CallFrame), selfSize:(number), id:(number), children:(!Array<Protocol.HeapProfiler.SamplingHeapProfileNode>)}} */
  7877. Protocol.HeapProfiler.SamplingHeapProfileNode;
  7878. /** @typedef {!{size:(number), nodeId:(number), ordinal:(number)}} */
  7879. Protocol.HeapProfiler.SamplingHeapProfileSample;
  7880. /** @typedef {!{head:(Protocol.HeapProfiler.SamplingHeapProfileNode), samples:(!Array<Protocol.HeapProfiler.SamplingHeapProfileSample>)}} */
  7881. Protocol.HeapProfiler.SamplingHeapProfile;
  7882. /** @constructor */
  7883. Protocol.HeapProfilerDispatcher = function() {};
  7884. /**
  7885. * @param {string} chunk
  7886. */
  7887. Protocol.HeapProfilerDispatcher.prototype.addHeapSnapshotChunk = function(chunk) {};
  7888. /**
  7889. * @param {!Array<number>} statsUpdate
  7890. */
  7891. Protocol.HeapProfilerDispatcher.prototype.heapStatsUpdate = function(statsUpdate) {};
  7892. /**
  7893. * @param {number} lastSeenObjectId
  7894. * @param {number} timestamp
  7895. */
  7896. Protocol.HeapProfilerDispatcher.prototype.lastSeenObjectId = function(lastSeenObjectId, timestamp) {};
  7897. /**
  7898. * @param {number} done
  7899. * @param {number} total
  7900. * @param {boolean=} opt_finished
  7901. */
  7902. Protocol.HeapProfilerDispatcher.prototype.reportHeapSnapshotProgress = function(done, total, opt_finished) {};
  7903. Protocol.HeapProfilerDispatcher.prototype.resetProfiles = function() {};
  7904. Protocol.Profiler = {};
  7905. /**
  7906. * @constructor
  7907. */
  7908. Protocol.ProfilerAgent = function(){};
  7909. /**
  7910. * @return {!Promise<undefined>}
  7911. */
  7912. Protocol.ProfilerAgent.prototype.disable = function() {};
  7913. /** @typedef {Object|undefined} */
  7914. Protocol.ProfilerAgent.DisableRequest;
  7915. /** @typedef {Object|undefined} */
  7916. Protocol.ProfilerAgent.DisableResponse;
  7917. /**
  7918. * @param {!Protocol.ProfilerAgent.DisableRequest} obj
  7919. * @return {!Promise<!Protocol.ProfilerAgent.DisableResponse>} */
  7920. Protocol.ProfilerAgent.prototype.invoke_disable = function(obj) {};
  7921. /**
  7922. * @return {!Promise<undefined>}
  7923. */
  7924. Protocol.ProfilerAgent.prototype.enable = function() {};
  7925. /** @typedef {Object|undefined} */
  7926. Protocol.ProfilerAgent.EnableRequest;
  7927. /** @typedef {Object|undefined} */
  7928. Protocol.ProfilerAgent.EnableResponse;
  7929. /**
  7930. * @param {!Protocol.ProfilerAgent.EnableRequest} obj
  7931. * @return {!Promise<!Protocol.ProfilerAgent.EnableResponse>} */
  7932. Protocol.ProfilerAgent.prototype.invoke_enable = function(obj) {};
  7933. /**
  7934. * @return {!Promise<?Array<Protocol.Profiler.ScriptCoverage>>}
  7935. */
  7936. Protocol.ProfilerAgent.prototype.getBestEffortCoverage = function() {};
  7937. /** @typedef {Object|undefined} */
  7938. Protocol.ProfilerAgent.GetBestEffortCoverageRequest;
  7939. /** @typedef {!{result: !Array<Protocol.Profiler.ScriptCoverage>}} */
  7940. Protocol.ProfilerAgent.GetBestEffortCoverageResponse;
  7941. /**
  7942. * @param {!Protocol.ProfilerAgent.GetBestEffortCoverageRequest} obj
  7943. * @return {!Promise<!Protocol.ProfilerAgent.GetBestEffortCoverageResponse>} */
  7944. Protocol.ProfilerAgent.prototype.invoke_getBestEffortCoverage = function(obj) {};
  7945. /**
  7946. * @param {number} interval
  7947. * @return {!Promise<undefined>}
  7948. */
  7949. Protocol.ProfilerAgent.prototype.setSamplingInterval = function(interval) {};
  7950. /** @typedef {!{interval: number}} */
  7951. Protocol.ProfilerAgent.SetSamplingIntervalRequest;
  7952. /** @typedef {Object|undefined} */
  7953. Protocol.ProfilerAgent.SetSamplingIntervalResponse;
  7954. /**
  7955. * @param {!Protocol.ProfilerAgent.SetSamplingIntervalRequest} obj
  7956. * @return {!Promise<!Protocol.ProfilerAgent.SetSamplingIntervalResponse>} */
  7957. Protocol.ProfilerAgent.prototype.invoke_setSamplingInterval = function(obj) {};
  7958. /**
  7959. * @return {!Promise<undefined>}
  7960. */
  7961. Protocol.ProfilerAgent.prototype.start = function() {};
  7962. /** @typedef {Object|undefined} */
  7963. Protocol.ProfilerAgent.StartRequest;
  7964. /** @typedef {Object|undefined} */
  7965. Protocol.ProfilerAgent.StartResponse;
  7966. /**
  7967. * @param {!Protocol.ProfilerAgent.StartRequest} obj
  7968. * @return {!Promise<!Protocol.ProfilerAgent.StartResponse>} */
  7969. Protocol.ProfilerAgent.prototype.invoke_start = function(obj) {};
  7970. /**
  7971. * @param {boolean=} opt_callCount
  7972. * @param {boolean=} opt_detailed
  7973. * @return {!Promise<undefined>}
  7974. */
  7975. Protocol.ProfilerAgent.prototype.startPreciseCoverage = function(opt_callCount, opt_detailed) {};
  7976. /** @typedef {!{detailed: (boolean|undefined), callCount: (boolean|undefined)}} */
  7977. Protocol.ProfilerAgent.StartPreciseCoverageRequest;
  7978. /** @typedef {Object|undefined} */
  7979. Protocol.ProfilerAgent.StartPreciseCoverageResponse;
  7980. /**
  7981. * @param {!Protocol.ProfilerAgent.StartPreciseCoverageRequest} obj
  7982. * @return {!Promise<!Protocol.ProfilerAgent.StartPreciseCoverageResponse>} */
  7983. Protocol.ProfilerAgent.prototype.invoke_startPreciseCoverage = function(obj) {};
  7984. /**
  7985. * @return {!Promise<undefined>}
  7986. */
  7987. Protocol.ProfilerAgent.prototype.startTypeProfile = function() {};
  7988. /** @typedef {Object|undefined} */
  7989. Protocol.ProfilerAgent.StartTypeProfileRequest;
  7990. /** @typedef {Object|undefined} */
  7991. Protocol.ProfilerAgent.StartTypeProfileResponse;
  7992. /**
  7993. * @param {!Protocol.ProfilerAgent.StartTypeProfileRequest} obj
  7994. * @return {!Promise<!Protocol.ProfilerAgent.StartTypeProfileResponse>} */
  7995. Protocol.ProfilerAgent.prototype.invoke_startTypeProfile = function(obj) {};
  7996. /**
  7997. * @return {!Promise<?Protocol.Profiler.Profile>}
  7998. */
  7999. Protocol.ProfilerAgent.prototype.stop = function() {};
  8000. /** @typedef {Object|undefined} */
  8001. Protocol.ProfilerAgent.StopRequest;
  8002. /** @typedef {!{profile: Protocol.Profiler.Profile}} */
  8003. Protocol.ProfilerAgent.StopResponse;
  8004. /**
  8005. * @param {!Protocol.ProfilerAgent.StopRequest} obj
  8006. * @return {!Promise<!Protocol.ProfilerAgent.StopResponse>} */
  8007. Protocol.ProfilerAgent.prototype.invoke_stop = function(obj) {};
  8008. /**
  8009. * @return {!Promise<undefined>}
  8010. */
  8011. Protocol.ProfilerAgent.prototype.stopPreciseCoverage = function() {};
  8012. /** @typedef {Object|undefined} */
  8013. Protocol.ProfilerAgent.StopPreciseCoverageRequest;
  8014. /** @typedef {Object|undefined} */
  8015. Protocol.ProfilerAgent.StopPreciseCoverageResponse;
  8016. /**
  8017. * @param {!Protocol.ProfilerAgent.StopPreciseCoverageRequest} obj
  8018. * @return {!Promise<!Protocol.ProfilerAgent.StopPreciseCoverageResponse>} */
  8019. Protocol.ProfilerAgent.prototype.invoke_stopPreciseCoverage = function(obj) {};
  8020. /**
  8021. * @return {!Promise<undefined>}
  8022. */
  8023. Protocol.ProfilerAgent.prototype.stopTypeProfile = function() {};
  8024. /** @typedef {Object|undefined} */
  8025. Protocol.ProfilerAgent.StopTypeProfileRequest;
  8026. /** @typedef {Object|undefined} */
  8027. Protocol.ProfilerAgent.StopTypeProfileResponse;
  8028. /**
  8029. * @param {!Protocol.ProfilerAgent.StopTypeProfileRequest} obj
  8030. * @return {!Promise<!Protocol.ProfilerAgent.StopTypeProfileResponse>} */
  8031. Protocol.ProfilerAgent.prototype.invoke_stopTypeProfile = function(obj) {};
  8032. /**
  8033. * @return {!Promise<?Array<Protocol.Profiler.ScriptCoverage>>}
  8034. */
  8035. Protocol.ProfilerAgent.prototype.takePreciseCoverage = function() {};
  8036. /** @typedef {Object|undefined} */
  8037. Protocol.ProfilerAgent.TakePreciseCoverageRequest;
  8038. /** @typedef {!{result: !Array<Protocol.Profiler.ScriptCoverage>}} */
  8039. Protocol.ProfilerAgent.TakePreciseCoverageResponse;
  8040. /**
  8041. * @param {!Protocol.ProfilerAgent.TakePreciseCoverageRequest} obj
  8042. * @return {!Promise<!Protocol.ProfilerAgent.TakePreciseCoverageResponse>} */
  8043. Protocol.ProfilerAgent.prototype.invoke_takePreciseCoverage = function(obj) {};
  8044. /**
  8045. * @return {!Promise<?Array<Protocol.Profiler.ScriptTypeProfile>>}
  8046. */
  8047. Protocol.ProfilerAgent.prototype.takeTypeProfile = function() {};
  8048. /** @typedef {Object|undefined} */
  8049. Protocol.ProfilerAgent.TakeTypeProfileRequest;
  8050. /** @typedef {!{result: !Array<Protocol.Profiler.ScriptTypeProfile>}} */
  8051. Protocol.ProfilerAgent.TakeTypeProfileResponse;
  8052. /**
  8053. * @param {!Protocol.ProfilerAgent.TakeTypeProfileRequest} obj
  8054. * @return {!Promise<!Protocol.ProfilerAgent.TakeTypeProfileResponse>} */
  8055. Protocol.ProfilerAgent.prototype.invoke_takeTypeProfile = function(obj) {};
  8056. /** @typedef {!{id:(number), callFrame:(Protocol.Runtime.CallFrame), hitCount:(number|undefined), children:(!Array<number>|undefined), deoptReason:(string|undefined), positionTicks:(!Array<Protocol.Profiler.PositionTickInfo>|undefined)}} */
  8057. Protocol.Profiler.ProfileNode;
  8058. /** @typedef {!{nodes:(!Array<Protocol.Profiler.ProfileNode>), startTime:(number), endTime:(number), samples:(!Array<number>|undefined), timeDeltas:(!Array<number>|undefined)}} */
  8059. Protocol.Profiler.Profile;
  8060. /** @typedef {!{line:(number), ticks:(number)}} */
  8061. Protocol.Profiler.PositionTickInfo;
  8062. /** @typedef {!{startOffset:(number), endOffset:(number), count:(number)}} */
  8063. Protocol.Profiler.CoverageRange;
  8064. /** @typedef {!{functionName:(string), ranges:(!Array<Protocol.Profiler.CoverageRange>), isBlockCoverage:(boolean)}} */
  8065. Protocol.Profiler.FunctionCoverage;
  8066. /** @typedef {!{scriptId:(Protocol.Runtime.ScriptId), url:(string), functions:(!Array<Protocol.Profiler.FunctionCoverage>)}} */
  8067. Protocol.Profiler.ScriptCoverage;
  8068. /** @typedef {!{name:(string)}} */
  8069. Protocol.Profiler.TypeObject;
  8070. /** @typedef {!{offset:(number), types:(!Array<Protocol.Profiler.TypeObject>)}} */
  8071. Protocol.Profiler.TypeProfileEntry;
  8072. /** @typedef {!{scriptId:(Protocol.Runtime.ScriptId), url:(string), entries:(!Array<Protocol.Profiler.TypeProfileEntry>)}} */
  8073. Protocol.Profiler.ScriptTypeProfile;
  8074. /** @interface */
  8075. Protocol.ProfilerDispatcher = function() {};
  8076. /**
  8077. * @param {string} id
  8078. * @param {Protocol.Debugger.Location} location
  8079. * @param {Protocol.Profiler.Profile} profile
  8080. * @param {string=} opt_title
  8081. */
  8082. Protocol.ProfilerDispatcher.prototype.consoleProfileFinished = function(id, location, profile, opt_title) {};
  8083. /**
  8084. * @param {string} id
  8085. * @param {Protocol.Debugger.Location} location
  8086. * @param {string=} opt_title
  8087. */
  8088. Protocol.ProfilerDispatcher.prototype.consoleProfileStarted = function(id, location, opt_title) {};
  8089. Protocol.Runtime = {};
  8090. /**
  8091. * @constructor
  8092. */
  8093. Protocol.RuntimeAgent = function(){};
  8094. /**
  8095. * @param {Protocol.Runtime.RemoteObjectId} promiseObjectId
  8096. * @param {boolean=} opt_returnByValue
  8097. * @param {boolean=} opt_generatePreview
  8098. * @return {!Promise<?Protocol.Runtime.RemoteObject>}
  8099. */
  8100. Protocol.RuntimeAgent.prototype.awaitPromise = function(promiseObjectId, opt_returnByValue, opt_generatePreview) {};
  8101. /** @typedef {!{returnByValue: (boolean|undefined), generatePreview: (boolean|undefined), promiseObjectId: Protocol.Runtime.RemoteObjectId}} */
  8102. Protocol.RuntimeAgent.AwaitPromiseRequest;
  8103. /** @typedef {!{exceptionDetails: Protocol.Runtime.ExceptionDetails, result: Protocol.Runtime.RemoteObject}} */
  8104. Protocol.RuntimeAgent.AwaitPromiseResponse;
  8105. /**
  8106. * @param {!Protocol.RuntimeAgent.AwaitPromiseRequest} obj
  8107. * @return {!Promise<!Protocol.RuntimeAgent.AwaitPromiseResponse>} */
  8108. Protocol.RuntimeAgent.prototype.invoke_awaitPromise = function(obj) {};
  8109. /**
  8110. * @param {string} functionDeclaration
  8111. * @param {Protocol.Runtime.RemoteObjectId=} opt_objectId
  8112. * @param {!Array<Protocol.Runtime.CallArgument>=} opt__arguments
  8113. * @param {boolean=} opt_silent
  8114. * @param {boolean=} opt_returnByValue
  8115. * @param {boolean=} opt_generatePreview
  8116. * @param {boolean=} opt_userGesture
  8117. * @param {boolean=} opt_awaitPromise
  8118. * @param {Protocol.Runtime.ExecutionContextId=} opt_executionContextId
  8119. * @param {string=} opt_objectGroup
  8120. * @return {!Promise<?Protocol.Runtime.RemoteObject>}
  8121. */
  8122. Protocol.RuntimeAgent.prototype.callFunctionOn = function(functionDeclaration, opt_objectId, opt__arguments, opt_silent, opt_returnByValue, opt_generatePreview, opt_userGesture, opt_awaitPromise, opt_executionContextId, opt_objectGroup) {};
  8123. /** @typedef {!{objectGroup: (string|undefined), silent: (boolean|undefined), objectId: (Protocol.Runtime.RemoteObjectId|undefined), functionDeclaration: string, generatePreview: (boolean|undefined), executionContextId: (Protocol.Runtime.ExecutionContextId|undefined), returnByValue: (boolean|undefined), _arguments: (!Array<Protocol.Runtime.CallArgument>|undefined), userGesture: (boolean|undefined), awaitPromise: (boolean|undefined)}} */
  8124. Protocol.RuntimeAgent.CallFunctionOnRequest;
  8125. /** @typedef {!{exceptionDetails: Protocol.Runtime.ExceptionDetails, result: Protocol.Runtime.RemoteObject}} */
  8126. Protocol.RuntimeAgent.CallFunctionOnResponse;
  8127. /**
  8128. * @param {!Protocol.RuntimeAgent.CallFunctionOnRequest} obj
  8129. * @return {!Promise<!Protocol.RuntimeAgent.CallFunctionOnResponse>} */
  8130. Protocol.RuntimeAgent.prototype.invoke_callFunctionOn = function(obj) {};
  8131. /**
  8132. * @param {string} expression
  8133. * @param {string} sourceURL
  8134. * @param {boolean} persistScript
  8135. * @param {Protocol.Runtime.ExecutionContextId=} opt_executionContextId
  8136. * @return {!Promise<?Protocol.Runtime.ScriptId>}
  8137. */
  8138. Protocol.RuntimeAgent.prototype.compileScript = function(expression, sourceURL, persistScript, opt_executionContextId) {};
  8139. /** @typedef {!{persistScript: boolean, sourceURL: string, expression: string, executionContextId: (Protocol.Runtime.ExecutionContextId|undefined)}} */
  8140. Protocol.RuntimeAgent.CompileScriptRequest;
  8141. /** @typedef {!{scriptId: Protocol.Runtime.ScriptId, exceptionDetails: Protocol.Runtime.ExceptionDetails}} */
  8142. Protocol.RuntimeAgent.CompileScriptResponse;
  8143. /**
  8144. * @param {!Protocol.RuntimeAgent.CompileScriptRequest} obj
  8145. * @return {!Promise<!Protocol.RuntimeAgent.CompileScriptResponse>} */
  8146. Protocol.RuntimeAgent.prototype.invoke_compileScript = function(obj) {};
  8147. /**
  8148. * @return {!Promise<undefined>}
  8149. */
  8150. Protocol.RuntimeAgent.prototype.disable = function() {};
  8151. /** @typedef {Object|undefined} */
  8152. Protocol.RuntimeAgent.DisableRequest;
  8153. /** @typedef {Object|undefined} */
  8154. Protocol.RuntimeAgent.DisableResponse;
  8155. /**
  8156. * @param {!Protocol.RuntimeAgent.DisableRequest} obj
  8157. * @return {!Promise<!Protocol.RuntimeAgent.DisableResponse>} */
  8158. Protocol.RuntimeAgent.prototype.invoke_disable = function(obj) {};
  8159. /**
  8160. * @return {!Promise<undefined>}
  8161. */
  8162. Protocol.RuntimeAgent.prototype.discardConsoleEntries = function() {};
  8163. /** @typedef {Object|undefined} */
  8164. Protocol.RuntimeAgent.DiscardConsoleEntriesRequest;
  8165. /** @typedef {Object|undefined} */
  8166. Protocol.RuntimeAgent.DiscardConsoleEntriesResponse;
  8167. /**
  8168. * @param {!Protocol.RuntimeAgent.DiscardConsoleEntriesRequest} obj
  8169. * @return {!Promise<!Protocol.RuntimeAgent.DiscardConsoleEntriesResponse>} */
  8170. Protocol.RuntimeAgent.prototype.invoke_discardConsoleEntries = function(obj) {};
  8171. /**
  8172. * @return {!Promise<undefined>}
  8173. */
  8174. Protocol.RuntimeAgent.prototype.enable = function() {};
  8175. /** @typedef {Object|undefined} */
  8176. Protocol.RuntimeAgent.EnableRequest;
  8177. /** @typedef {Object|undefined} */
  8178. Protocol.RuntimeAgent.EnableResponse;
  8179. /**
  8180. * @param {!Protocol.RuntimeAgent.EnableRequest} obj
  8181. * @return {!Promise<!Protocol.RuntimeAgent.EnableResponse>} */
  8182. Protocol.RuntimeAgent.prototype.invoke_enable = function(obj) {};
  8183. /**
  8184. * @param {string} expression
  8185. * @param {string=} opt_objectGroup
  8186. * @param {boolean=} opt_includeCommandLineAPI
  8187. * @param {boolean=} opt_silent
  8188. * @param {Protocol.Runtime.ExecutionContextId=} opt_contextId
  8189. * @param {boolean=} opt_returnByValue
  8190. * @param {boolean=} opt_generatePreview
  8191. * @param {boolean=} opt_userGesture
  8192. * @param {boolean=} opt_awaitPromise
  8193. * @param {boolean=} opt_throwOnSideEffect
  8194. * @param {Protocol.Runtime.TimeDelta=} opt_timeout
  8195. * @param {boolean=} opt_disableBreaks
  8196. * @param {boolean=} opt_replMode
  8197. * @return {!Promise<?Protocol.Runtime.RemoteObject>}
  8198. */
  8199. Protocol.RuntimeAgent.prototype.evaluate = function(expression, opt_objectGroup, opt_includeCommandLineAPI, opt_silent, opt_contextId, opt_returnByValue, opt_generatePreview, opt_userGesture, opt_awaitPromise, opt_throwOnSideEffect, opt_timeout, opt_disableBreaks, opt_replMode) {};
  8200. /** @typedef {!{objectGroup: (string|undefined), includeCommandLineAPI: (boolean|undefined), contextId: (Protocol.Runtime.ExecutionContextId|undefined), silent: (boolean|undefined), throwOnSideEffect: (boolean|undefined), generatePreview: (boolean|undefined), replMode: (boolean|undefined), returnByValue: (boolean|undefined), timeout: (Protocol.Runtime.TimeDelta|undefined), expression: string, userGesture: (boolean|undefined), disableBreaks: (boolean|undefined), awaitPromise: (boolean|undefined)}} */
  8201. Protocol.RuntimeAgent.EvaluateRequest;
  8202. /** @typedef {!{exceptionDetails: Protocol.Runtime.ExceptionDetails, result: Protocol.Runtime.RemoteObject}} */
  8203. Protocol.RuntimeAgent.EvaluateResponse;
  8204. /**
  8205. * @param {!Protocol.RuntimeAgent.EvaluateRequest} obj
  8206. * @return {!Promise<!Protocol.RuntimeAgent.EvaluateResponse>} */
  8207. Protocol.RuntimeAgent.prototype.invoke_evaluate = function(obj) {};
  8208. /**
  8209. * @return {!Promise<?string>}
  8210. */
  8211. Protocol.RuntimeAgent.prototype.getIsolateId = function() {};
  8212. /** @typedef {Object|undefined} */
  8213. Protocol.RuntimeAgent.GetIsolateIdRequest;
  8214. /** @typedef {!{id: string}} */
  8215. Protocol.RuntimeAgent.GetIsolateIdResponse;
  8216. /**
  8217. * @param {!Protocol.RuntimeAgent.GetIsolateIdRequest} obj
  8218. * @return {!Promise<!Protocol.RuntimeAgent.GetIsolateIdResponse>} */
  8219. Protocol.RuntimeAgent.prototype.invoke_getIsolateId = function(obj) {};
  8220. /**
  8221. * @return {!Promise<?number>}
  8222. */
  8223. Protocol.RuntimeAgent.prototype.getHeapUsage = function() {};
  8224. /** @typedef {Object|undefined} */
  8225. Protocol.RuntimeAgent.GetHeapUsageRequest;
  8226. /** @typedef {!{totalSize: number, usedSize: number}} */
  8227. Protocol.RuntimeAgent.GetHeapUsageResponse;
  8228. /**
  8229. * @param {!Protocol.RuntimeAgent.GetHeapUsageRequest} obj
  8230. * @return {!Promise<!Protocol.RuntimeAgent.GetHeapUsageResponse>} */
  8231. Protocol.RuntimeAgent.prototype.invoke_getHeapUsage = function(obj) {};
  8232. /**
  8233. * @param {Protocol.Runtime.RemoteObjectId} objectId
  8234. * @param {boolean=} opt_ownProperties
  8235. * @param {boolean=} opt_accessorPropertiesOnly
  8236. * @param {boolean=} opt_generatePreview
  8237. * @return {!Promise<?Array<Protocol.Runtime.PropertyDescriptor>>}
  8238. */
  8239. Protocol.RuntimeAgent.prototype.getProperties = function(objectId, opt_ownProperties, opt_accessorPropertiesOnly, opt_generatePreview) {};
  8240. /** @typedef {!{ownProperties: (boolean|undefined), generatePreview: (boolean|undefined), accessorPropertiesOnly: (boolean|undefined), objectId: Protocol.Runtime.RemoteObjectId}} */
  8241. Protocol.RuntimeAgent.GetPropertiesRequest;
  8242. /** @typedef {!{internalProperties: !Array<Protocol.Runtime.InternalPropertyDescriptor>, exceptionDetails: Protocol.Runtime.ExceptionDetails, result: !Array<Protocol.Runtime.PropertyDescriptor>, privateProperties: !Array<Protocol.Runtime.PrivatePropertyDescriptor>}} */
  8243. Protocol.RuntimeAgent.GetPropertiesResponse;
  8244. /**
  8245. * @param {!Protocol.RuntimeAgent.GetPropertiesRequest} obj
  8246. * @return {!Promise<!Protocol.RuntimeAgent.GetPropertiesResponse>} */
  8247. Protocol.RuntimeAgent.prototype.invoke_getProperties = function(obj) {};
  8248. /**
  8249. * @param {Protocol.Runtime.ExecutionContextId=} opt_executionContextId
  8250. * @return {!Promise<?Array<string>>}
  8251. */
  8252. Protocol.RuntimeAgent.prototype.globalLexicalScopeNames = function(opt_executionContextId) {};
  8253. /** @typedef {!{executionContextId: (Protocol.Runtime.ExecutionContextId|undefined)}} */
  8254. Protocol.RuntimeAgent.GlobalLexicalScopeNamesRequest;
  8255. /** @typedef {!{names: !Array<string>}} */
  8256. Protocol.RuntimeAgent.GlobalLexicalScopeNamesResponse;
  8257. /**
  8258. * @param {!Protocol.RuntimeAgent.GlobalLexicalScopeNamesRequest} obj
  8259. * @return {!Promise<!Protocol.RuntimeAgent.GlobalLexicalScopeNamesResponse>} */
  8260. Protocol.RuntimeAgent.prototype.invoke_globalLexicalScopeNames = function(obj) {};
  8261. /**
  8262. * @param {Protocol.Runtime.RemoteObjectId} prototypeObjectId
  8263. * @param {string=} opt_objectGroup
  8264. * @return {!Promise<?Protocol.Runtime.RemoteObject>}
  8265. */
  8266. Protocol.RuntimeAgent.prototype.queryObjects = function(prototypeObjectId, opt_objectGroup) {};
  8267. /** @typedef {!{prototypeObjectId: Protocol.Runtime.RemoteObjectId, objectGroup: (string|undefined)}} */
  8268. Protocol.RuntimeAgent.QueryObjectsRequest;
  8269. /** @typedef {!{objects: Protocol.Runtime.RemoteObject}} */
  8270. Protocol.RuntimeAgent.QueryObjectsResponse;
  8271. /**
  8272. * @param {!Protocol.RuntimeAgent.QueryObjectsRequest} obj
  8273. * @return {!Promise<!Protocol.RuntimeAgent.QueryObjectsResponse>} */
  8274. Protocol.RuntimeAgent.prototype.invoke_queryObjects = function(obj) {};
  8275. /**
  8276. * @param {Protocol.Runtime.RemoteObjectId} objectId
  8277. * @return {!Promise<undefined>}
  8278. */
  8279. Protocol.RuntimeAgent.prototype.releaseObject = function(objectId) {};
  8280. /** @typedef {!{objectId: Protocol.Runtime.RemoteObjectId}} */
  8281. Protocol.RuntimeAgent.ReleaseObjectRequest;
  8282. /** @typedef {Object|undefined} */
  8283. Protocol.RuntimeAgent.ReleaseObjectResponse;
  8284. /**
  8285. * @param {!Protocol.RuntimeAgent.ReleaseObjectRequest} obj
  8286. * @return {!Promise<!Protocol.RuntimeAgent.ReleaseObjectResponse>} */
  8287. Protocol.RuntimeAgent.prototype.invoke_releaseObject = function(obj) {};
  8288. /**
  8289. * @param {string} objectGroup
  8290. * @return {!Promise<undefined>}
  8291. */
  8292. Protocol.RuntimeAgent.prototype.releaseObjectGroup = function(objectGroup) {};
  8293. /** @typedef {!{objectGroup: string}} */
  8294. Protocol.RuntimeAgent.ReleaseObjectGroupRequest;
  8295. /** @typedef {Object|undefined} */
  8296. Protocol.RuntimeAgent.ReleaseObjectGroupResponse;
  8297. /**
  8298. * @param {!Protocol.RuntimeAgent.ReleaseObjectGroupRequest} obj
  8299. * @return {!Promise<!Protocol.RuntimeAgent.ReleaseObjectGroupResponse>} */
  8300. Protocol.RuntimeAgent.prototype.invoke_releaseObjectGroup = function(obj) {};
  8301. /**
  8302. * @return {!Promise<undefined>}
  8303. */
  8304. Protocol.RuntimeAgent.prototype.runIfWaitingForDebugger = function() {};
  8305. /** @typedef {Object|undefined} */
  8306. Protocol.RuntimeAgent.RunIfWaitingForDebuggerRequest;
  8307. /** @typedef {Object|undefined} */
  8308. Protocol.RuntimeAgent.RunIfWaitingForDebuggerResponse;
  8309. /**
  8310. * @param {!Protocol.RuntimeAgent.RunIfWaitingForDebuggerRequest} obj
  8311. * @return {!Promise<!Protocol.RuntimeAgent.RunIfWaitingForDebuggerResponse>} */
  8312. Protocol.RuntimeAgent.prototype.invoke_runIfWaitingForDebugger = function(obj) {};
  8313. /**
  8314. * @param {Protocol.Runtime.ScriptId} scriptId
  8315. * @param {Protocol.Runtime.ExecutionContextId=} opt_executionContextId
  8316. * @param {string=} opt_objectGroup
  8317. * @param {boolean=} opt_silent
  8318. * @param {boolean=} opt_includeCommandLineAPI
  8319. * @param {boolean=} opt_returnByValue
  8320. * @param {boolean=} opt_generatePreview
  8321. * @param {boolean=} opt_awaitPromise
  8322. * @return {!Promise<?Protocol.Runtime.RemoteObject>}
  8323. */
  8324. Protocol.RuntimeAgent.prototype.runScript = function(scriptId, opt_executionContextId, opt_objectGroup, opt_silent, opt_includeCommandLineAPI, opt_returnByValue, opt_generatePreview, opt_awaitPromise) {};
  8325. /** @typedef {!{objectGroup: (string|undefined), includeCommandLineAPI: (boolean|undefined), silent: (boolean|undefined), generatePreview: (boolean|undefined), executionContextId: (Protocol.Runtime.ExecutionContextId|undefined), returnByValue: (boolean|undefined), scriptId: Protocol.Runtime.ScriptId, awaitPromise: (boolean|undefined)}} */
  8326. Protocol.RuntimeAgent.RunScriptRequest;
  8327. /** @typedef {!{exceptionDetails: Protocol.Runtime.ExceptionDetails, result: Protocol.Runtime.RemoteObject}} */
  8328. Protocol.RuntimeAgent.RunScriptResponse;
  8329. /**
  8330. * @param {!Protocol.RuntimeAgent.RunScriptRequest} obj
  8331. * @return {!Promise<!Protocol.RuntimeAgent.RunScriptResponse>} */
  8332. Protocol.RuntimeAgent.prototype.invoke_runScript = function(obj) {};
  8333. /**
  8334. * @param {number} maxDepth
  8335. * @return {!Promise<undefined>}
  8336. */
  8337. Protocol.RuntimeAgent.prototype.setAsyncCallStackDepth = function(maxDepth) {};
  8338. /** @typedef {!{maxDepth: number}} */
  8339. Protocol.RuntimeAgent.SetAsyncCallStackDepthRequest;
  8340. /** @typedef {Object|undefined} */
  8341. Protocol.RuntimeAgent.SetAsyncCallStackDepthResponse;
  8342. /**
  8343. * @param {!Protocol.RuntimeAgent.SetAsyncCallStackDepthRequest} obj
  8344. * @return {!Promise<!Protocol.RuntimeAgent.SetAsyncCallStackDepthResponse>} */
  8345. Protocol.RuntimeAgent.prototype.invoke_setAsyncCallStackDepth = function(obj) {};
  8346. /**
  8347. * @param {boolean} enabled
  8348. * @return {!Promise<undefined>}
  8349. */
  8350. Protocol.RuntimeAgent.prototype.setCustomObjectFormatterEnabled = function(enabled) {};
  8351. /** @typedef {!{enabled: boolean}} */
  8352. Protocol.RuntimeAgent.SetCustomObjectFormatterEnabledRequest;
  8353. /** @typedef {Object|undefined} */
  8354. Protocol.RuntimeAgent.SetCustomObjectFormatterEnabledResponse;
  8355. /**
  8356. * @param {!Protocol.RuntimeAgent.SetCustomObjectFormatterEnabledRequest} obj
  8357. * @return {!Promise<!Protocol.RuntimeAgent.SetCustomObjectFormatterEnabledResponse>} */
  8358. Protocol.RuntimeAgent.prototype.invoke_setCustomObjectFormatterEnabled = function(obj) {};
  8359. /**
  8360. * @param {number} size
  8361. * @return {!Promise<undefined>}
  8362. */
  8363. Protocol.RuntimeAgent.prototype.setMaxCallStackSizeToCapture = function(size) {};
  8364. /** @typedef {!{size: number}} */
  8365. Protocol.RuntimeAgent.SetMaxCallStackSizeToCaptureRequest;
  8366. /** @typedef {Object|undefined} */
  8367. Protocol.RuntimeAgent.SetMaxCallStackSizeToCaptureResponse;
  8368. /**
  8369. * @param {!Protocol.RuntimeAgent.SetMaxCallStackSizeToCaptureRequest} obj
  8370. * @return {!Promise<!Protocol.RuntimeAgent.SetMaxCallStackSizeToCaptureResponse>} */
  8371. Protocol.RuntimeAgent.prototype.invoke_setMaxCallStackSizeToCapture = function(obj) {};
  8372. /**
  8373. * @return {!Promise<undefined>}
  8374. */
  8375. Protocol.RuntimeAgent.prototype.terminateExecution = function() {};
  8376. /** @typedef {Object|undefined} */
  8377. Protocol.RuntimeAgent.TerminateExecutionRequest;
  8378. /** @typedef {Object|undefined} */
  8379. Protocol.RuntimeAgent.TerminateExecutionResponse;
  8380. /**
  8381. * @param {!Protocol.RuntimeAgent.TerminateExecutionRequest} obj
  8382. * @return {!Promise<!Protocol.RuntimeAgent.TerminateExecutionResponse>} */
  8383. Protocol.RuntimeAgent.prototype.invoke_terminateExecution = function(obj) {};
  8384. /**
  8385. * @param {string} name
  8386. * @param {Protocol.Runtime.ExecutionContextId=} opt_executionContextId
  8387. * @return {!Promise<undefined>}
  8388. */
  8389. Protocol.RuntimeAgent.prototype.addBinding = function(name, opt_executionContextId) {};
  8390. /** @typedef {!{name: string, executionContextId: (Protocol.Runtime.ExecutionContextId|undefined)}} */
  8391. Protocol.RuntimeAgent.AddBindingRequest;
  8392. /** @typedef {Object|undefined} */
  8393. Protocol.RuntimeAgent.AddBindingResponse;
  8394. /**
  8395. * @param {!Protocol.RuntimeAgent.AddBindingRequest} obj
  8396. * @return {!Promise<!Protocol.RuntimeAgent.AddBindingResponse>} */
  8397. Protocol.RuntimeAgent.prototype.invoke_addBinding = function(obj) {};
  8398. /**
  8399. * @param {string} name
  8400. * @return {!Promise<undefined>}
  8401. */
  8402. Protocol.RuntimeAgent.prototype.removeBinding = function(name) {};
  8403. /** @typedef {!{name: string}} */
  8404. Protocol.RuntimeAgent.RemoveBindingRequest;
  8405. /** @typedef {Object|undefined} */
  8406. Protocol.RuntimeAgent.RemoveBindingResponse;
  8407. /**
  8408. * @param {!Protocol.RuntimeAgent.RemoveBindingRequest} obj
  8409. * @return {!Promise<!Protocol.RuntimeAgent.RemoveBindingResponse>} */
  8410. Protocol.RuntimeAgent.prototype.invoke_removeBinding = function(obj) {};
  8411. /** @typedef {string} */
  8412. Protocol.Runtime.ScriptId;
  8413. /** @typedef {string} */
  8414. Protocol.Runtime.RemoteObjectId;
  8415. /** @typedef {string} */
  8416. Protocol.Runtime.UnserializableValue;
  8417. /** @enum {string} */
  8418. Protocol.Runtime.RemoteObjectType = {
  8419. Object: "object",
  8420. Function: "function",
  8421. Undefined: "undefined",
  8422. String: "string",
  8423. Number: "number",
  8424. Boolean: "boolean",
  8425. Symbol: "symbol",
  8426. Bigint: "bigint"
  8427. };
  8428. /** @enum {string} */
  8429. Protocol.Runtime.RemoteObjectSubtype = {
  8430. Array: "array",
  8431. Null: "null",
  8432. Node: "node",
  8433. Regexp: "regexp",
  8434. Date: "date",
  8435. Map: "map",
  8436. Set: "set",
  8437. Weakmap: "weakmap",
  8438. Weakset: "weakset",
  8439. Iterator: "iterator",
  8440. Generator: "generator",
  8441. Error: "error",
  8442. Proxy: "proxy",
  8443. Promise: "promise",
  8444. Typedarray: "typedarray",
  8445. Arraybuffer: "arraybuffer",
  8446. Dataview: "dataview"
  8447. };
  8448. /** @typedef {!{type:(Protocol.Runtime.RemoteObjectType), subtype:(Protocol.Runtime.RemoteObjectSubtype|undefined), className:(string|undefined), value:(*|undefined), unserializableValue:(Protocol.Runtime.UnserializableValue|undefined), description:(string|undefined), objectId:(Protocol.Runtime.RemoteObjectId|undefined), preview:(Protocol.Runtime.ObjectPreview|undefined), customPreview:(Protocol.Runtime.CustomPreview|undefined)}} */
  8449. Protocol.Runtime.RemoteObject;
  8450. /** @typedef {!{header:(string), bodyGetterId:(Protocol.Runtime.RemoteObjectId|undefined)}} */
  8451. Protocol.Runtime.CustomPreview;
  8452. /** @enum {string} */
  8453. Protocol.Runtime.ObjectPreviewType = {
  8454. Object: "object",
  8455. Function: "function",
  8456. Undefined: "undefined",
  8457. String: "string",
  8458. Number: "number",
  8459. Boolean: "boolean",
  8460. Symbol: "symbol",
  8461. Bigint: "bigint"
  8462. };
  8463. /** @enum {string} */
  8464. Protocol.Runtime.ObjectPreviewSubtype = {
  8465. Array: "array",
  8466. Null: "null",
  8467. Node: "node",
  8468. Regexp: "regexp",
  8469. Date: "date",
  8470. Map: "map",
  8471. Set: "set",
  8472. Weakmap: "weakmap",
  8473. Weakset: "weakset",
  8474. Iterator: "iterator",
  8475. Generator: "generator",
  8476. Error: "error"
  8477. };
  8478. /** @typedef {!{type:(Protocol.Runtime.ObjectPreviewType), subtype:(Protocol.Runtime.ObjectPreviewSubtype|undefined), description:(string|undefined), overflow:(boolean), properties:(!Array<Protocol.Runtime.PropertyPreview>), entries:(!Array<Protocol.Runtime.EntryPreview>|undefined)}} */
  8479. Protocol.Runtime.ObjectPreview;
  8480. /** @enum {string} */
  8481. Protocol.Runtime.PropertyPreviewType = {
  8482. Object: "object",
  8483. Function: "function",
  8484. Undefined: "undefined",
  8485. String: "string",
  8486. Number: "number",
  8487. Boolean: "boolean",
  8488. Symbol: "symbol",
  8489. Accessor: "accessor",
  8490. Bigint: "bigint"
  8491. };
  8492. /** @enum {string} */
  8493. Protocol.Runtime.PropertyPreviewSubtype = {
  8494. Array: "array",
  8495. Null: "null",
  8496. Node: "node",
  8497. Regexp: "regexp",
  8498. Date: "date",
  8499. Map: "map",
  8500. Set: "set",
  8501. Weakmap: "weakmap",
  8502. Weakset: "weakset",
  8503. Iterator: "iterator",
  8504. Generator: "generator",
  8505. Error: "error"
  8506. };
  8507. /** @typedef {!{name:(string), type:(Protocol.Runtime.PropertyPreviewType), value:(string|undefined), valuePreview:(Protocol.Runtime.ObjectPreview|undefined), subtype:(Protocol.Runtime.PropertyPreviewSubtype|undefined)}} */
  8508. Protocol.Runtime.PropertyPreview;
  8509. /** @typedef {!{key:(Protocol.Runtime.ObjectPreview|undefined), value:(Protocol.Runtime.ObjectPreview)}} */
  8510. Protocol.Runtime.EntryPreview;
  8511. /** @typedef {!{name:(string), value:(Protocol.Runtime.RemoteObject|undefined), writable:(boolean|undefined), get:(Protocol.Runtime.RemoteObject|undefined), set:(Protocol.Runtime.RemoteObject|undefined), configurable:(boolean), enumerable:(boolean), wasThrown:(boolean|undefined), isOwn:(boolean|undefined), symbol:(Protocol.Runtime.RemoteObject|undefined)}} */
  8512. Protocol.Runtime.PropertyDescriptor;
  8513. /** @typedef {!{name:(string), value:(Protocol.Runtime.RemoteObject|undefined)}} */
  8514. Protocol.Runtime.InternalPropertyDescriptor;
  8515. /** @typedef {!{name:(string), value:(Protocol.Runtime.RemoteObject)}} */
  8516. Protocol.Runtime.PrivatePropertyDescriptor;
  8517. /** @typedef {!{value:(*|undefined), unserializableValue:(Protocol.Runtime.UnserializableValue|undefined), objectId:(Protocol.Runtime.RemoteObjectId|undefined)}} */
  8518. Protocol.Runtime.CallArgument;
  8519. /** @typedef {number} */
  8520. Protocol.Runtime.ExecutionContextId;
  8521. /** @typedef {!{id:(Protocol.Runtime.ExecutionContextId), origin:(string), name:(string), auxData:(!Object|undefined)}} */
  8522. Protocol.Runtime.ExecutionContextDescription;
  8523. /** @typedef {!{exceptionId:(number), text:(string), lineNumber:(number), columnNumber:(number), scriptId:(Protocol.Runtime.ScriptId|undefined), url:(string|undefined), stackTrace:(Protocol.Runtime.StackTrace|undefined), exception:(Protocol.Runtime.RemoteObject|undefined), executionContextId:(Protocol.Runtime.ExecutionContextId|undefined)}} */
  8524. Protocol.Runtime.ExceptionDetails;
  8525. /** @typedef {number} */
  8526. Protocol.Runtime.Timestamp;
  8527. /** @typedef {number} */
  8528. Protocol.Runtime.TimeDelta;
  8529. /** @typedef {!{functionName:(string), scriptId:(Protocol.Runtime.ScriptId), url:(string), lineNumber:(number), columnNumber:(number)}} */
  8530. Protocol.Runtime.CallFrame;
  8531. /** @typedef {!{description:(string|undefined), callFrames:(!Array<Protocol.Runtime.CallFrame>), parent:(Protocol.Runtime.StackTrace|undefined), parentId:(Protocol.Runtime.StackTraceId|undefined)}} */
  8532. Protocol.Runtime.StackTrace;
  8533. /** @typedef {string} */
  8534. Protocol.Runtime.UniqueDebuggerId;
  8535. /** @typedef {!{id:(string), debuggerId:(Protocol.Runtime.UniqueDebuggerId|undefined)}} */
  8536. Protocol.Runtime.StackTraceId;
  8537. /** @constructor */
  8538. Protocol.RuntimeDispatcher = function() {};
  8539. /**
  8540. * @param {string} name
  8541. * @param {string} payload
  8542. * @param {Protocol.Runtime.ExecutionContextId} executionContextId
  8543. */
  8544. Protocol.RuntimeDispatcher.prototype.bindingCalled = function(name, payload, executionContextId) {};
  8545. /**
  8546. * @param {string} type
  8547. * @param {!Array<Protocol.Runtime.RemoteObject>} args
  8548. * @param {Protocol.Runtime.ExecutionContextId} executionContextId
  8549. * @param {Protocol.Runtime.Timestamp} timestamp
  8550. * @param {Protocol.Runtime.StackTrace=} opt_stackTrace
  8551. * @param {string=} opt_context
  8552. */
  8553. Protocol.RuntimeDispatcher.prototype.consoleAPICalled = function(type, args, executionContextId, timestamp, opt_stackTrace, opt_context) {};
  8554. /**
  8555. * @param {string} reason
  8556. * @param {number} exceptionId
  8557. */
  8558. Protocol.RuntimeDispatcher.prototype.exceptionRevoked = function(reason, exceptionId) {};
  8559. /**
  8560. * @param {Protocol.Runtime.Timestamp} timestamp
  8561. * @param {Protocol.Runtime.ExceptionDetails} exceptionDetails
  8562. */
  8563. Protocol.RuntimeDispatcher.prototype.exceptionThrown = function(timestamp, exceptionDetails) {};
  8564. /**
  8565. * @param {Protocol.Runtime.ExecutionContextDescription} context
  8566. */
  8567. Protocol.RuntimeDispatcher.prototype.executionContextCreated = function(context) {};
  8568. /**
  8569. * @param {Protocol.Runtime.ExecutionContextId} executionContextId
  8570. */
  8571. Protocol.RuntimeDispatcher.prototype.executionContextDestroyed = function(executionContextId) {};
  8572. Protocol.RuntimeDispatcher.prototype.executionContextsCleared = function() {};
  8573. /**
  8574. * @param {Protocol.Runtime.RemoteObject} object
  8575. * @param {!Object} hints
  8576. */
  8577. Protocol.RuntimeDispatcher.prototype.inspectRequested = function(object, hints) {};
  8578. Protocol.Schema = {};
  8579. /**
  8580. * @constructor
  8581. */
  8582. Protocol.SchemaAgent = function(){};
  8583. /**
  8584. * @return {!Promise<?Array<Protocol.Schema.Domain>>}
  8585. */
  8586. Protocol.SchemaAgent.prototype.getDomains = function() {};
  8587. /** @typedef {Object|undefined} */
  8588. Protocol.SchemaAgent.GetDomainsRequest;
  8589. /** @typedef {!{domains: !Array<Protocol.Schema.Domain>}} */
  8590. Protocol.SchemaAgent.GetDomainsResponse;
  8591. /**
  8592. * @param {!Protocol.SchemaAgent.GetDomainsRequest} obj
  8593. * @return {!Promise<!Protocol.SchemaAgent.GetDomainsResponse>} */
  8594. Protocol.SchemaAgent.prototype.invoke_getDomains = function(obj) {};
  8595. /** @typedef {!{name:(string), version:(string)}} */
  8596. Protocol.Schema.Domain;
  8597. /** @interface */
  8598. Protocol.SchemaDispatcher = function() {};
  8599. /** @return {!Protocol.AccessibilityAgent}*/
  8600. Protocol.TargetBase.prototype.accessibilityAgent = function(){};
  8601. /**
  8602. * @param {!Protocol.AccessibilityDispatcher} dispatcher
  8603. */
  8604. Protocol.TargetBase.prototype.registerAccessibilityDispatcher = function(dispatcher) {}
  8605. /** @return {!Protocol.AnimationAgent}*/
  8606. Protocol.TargetBase.prototype.animationAgent = function(){};
  8607. /**
  8608. * @param {!Protocol.AnimationDispatcher} dispatcher
  8609. */
  8610. Protocol.TargetBase.prototype.registerAnimationDispatcher = function(dispatcher) {}
  8611. /** @return {!Protocol.ApplicationCacheAgent}*/
  8612. Protocol.TargetBase.prototype.applicationCacheAgent = function(){};
  8613. /**
  8614. * @param {!Protocol.ApplicationCacheDispatcher} dispatcher
  8615. */
  8616. Protocol.TargetBase.prototype.registerApplicationCacheDispatcher = function(dispatcher) {}
  8617. /** @return {!Protocol.AuditsAgent}*/
  8618. Protocol.TargetBase.prototype.auditsAgent = function(){};
  8619. /**
  8620. * @param {!Protocol.AuditsDispatcher} dispatcher
  8621. */
  8622. Protocol.TargetBase.prototype.registerAuditsDispatcher = function(dispatcher) {}
  8623. /** @return {!Protocol.BackgroundServiceAgent}*/
  8624. Protocol.TargetBase.prototype.backgroundServiceAgent = function(){};
  8625. /**
  8626. * @param {!Protocol.BackgroundServiceDispatcher} dispatcher
  8627. */
  8628. Protocol.TargetBase.prototype.registerBackgroundServiceDispatcher = function(dispatcher) {}
  8629. /** @return {!Protocol.BrowserAgent}*/
  8630. Protocol.TargetBase.prototype.browserAgent = function(){};
  8631. /**
  8632. * @param {!Protocol.BrowserDispatcher} dispatcher
  8633. */
  8634. Protocol.TargetBase.prototype.registerBrowserDispatcher = function(dispatcher) {}
  8635. /** @return {!Protocol.CSSAgent}*/
  8636. Protocol.TargetBase.prototype.cssAgent = function(){};
  8637. /**
  8638. * @param {!Protocol.CSSDispatcher} dispatcher
  8639. */
  8640. Protocol.TargetBase.prototype.registerCSSDispatcher = function(dispatcher) {}
  8641. /** @return {!Protocol.CacheStorageAgent}*/
  8642. Protocol.TargetBase.prototype.cacheStorageAgent = function(){};
  8643. /**
  8644. * @param {!Protocol.CacheStorageDispatcher} dispatcher
  8645. */
  8646. Protocol.TargetBase.prototype.registerCacheStorageDispatcher = function(dispatcher) {}
  8647. /** @return {!Protocol.CastAgent}*/
  8648. Protocol.TargetBase.prototype.castAgent = function(){};
  8649. /**
  8650. * @param {!Protocol.CastDispatcher} dispatcher
  8651. */
  8652. Protocol.TargetBase.prototype.registerCastDispatcher = function(dispatcher) {}
  8653. /** @return {!Protocol.DOMAgent}*/
  8654. Protocol.TargetBase.prototype.domAgent = function(){};
  8655. /**
  8656. * @param {!Protocol.DOMDispatcher} dispatcher
  8657. */
  8658. Protocol.TargetBase.prototype.registerDOMDispatcher = function(dispatcher) {}
  8659. /** @return {!Protocol.DOMDebuggerAgent}*/
  8660. Protocol.TargetBase.prototype.domdebuggerAgent = function(){};
  8661. /**
  8662. * @param {!Protocol.DOMDebuggerDispatcher} dispatcher
  8663. */
  8664. Protocol.TargetBase.prototype.registerDOMDebuggerDispatcher = function(dispatcher) {}
  8665. /** @return {!Protocol.DOMSnapshotAgent}*/
  8666. Protocol.TargetBase.prototype.domsnapshotAgent = function(){};
  8667. /**
  8668. * @param {!Protocol.DOMSnapshotDispatcher} dispatcher
  8669. */
  8670. Protocol.TargetBase.prototype.registerDOMSnapshotDispatcher = function(dispatcher) {}
  8671. /** @return {!Protocol.DOMStorageAgent}*/
  8672. Protocol.TargetBase.prototype.domstorageAgent = function(){};
  8673. /**
  8674. * @param {!Protocol.DOMStorageDispatcher} dispatcher
  8675. */
  8676. Protocol.TargetBase.prototype.registerDOMStorageDispatcher = function(dispatcher) {}
  8677. /** @return {!Protocol.DatabaseAgent}*/
  8678. Protocol.TargetBase.prototype.databaseAgent = function(){};
  8679. /**
  8680. * @param {!Protocol.DatabaseDispatcher} dispatcher
  8681. */
  8682. Protocol.TargetBase.prototype.registerDatabaseDispatcher = function(dispatcher) {}
  8683. /** @return {!Protocol.DeviceOrientationAgent}*/
  8684. Protocol.TargetBase.prototype.deviceOrientationAgent = function(){};
  8685. /**
  8686. * @param {!Protocol.DeviceOrientationDispatcher} dispatcher
  8687. */
  8688. Protocol.TargetBase.prototype.registerDeviceOrientationDispatcher = function(dispatcher) {}
  8689. /** @return {!Protocol.EmulationAgent}*/
  8690. Protocol.TargetBase.prototype.emulationAgent = function(){};
  8691. /**
  8692. * @param {!Protocol.EmulationDispatcher} dispatcher
  8693. */
  8694. Protocol.TargetBase.prototype.registerEmulationDispatcher = function(dispatcher) {}
  8695. /** @return {!Protocol.HeadlessExperimentalAgent}*/
  8696. Protocol.TargetBase.prototype.headlessExperimentalAgent = function(){};
  8697. /**
  8698. * @param {!Protocol.HeadlessExperimentalDispatcher} dispatcher
  8699. */
  8700. Protocol.TargetBase.prototype.registerHeadlessExperimentalDispatcher = function(dispatcher) {}
  8701. /** @return {!Protocol.IOAgent}*/
  8702. Protocol.TargetBase.prototype.ioAgent = function(){};
  8703. /**
  8704. * @param {!Protocol.IODispatcher} dispatcher
  8705. */
  8706. Protocol.TargetBase.prototype.registerIODispatcher = function(dispatcher) {}
  8707. /** @return {!Protocol.IndexedDBAgent}*/
  8708. Protocol.TargetBase.prototype.indexedDBAgent = function(){};
  8709. /**
  8710. * @param {!Protocol.IndexedDBDispatcher} dispatcher
  8711. */
  8712. Protocol.TargetBase.prototype.registerIndexedDBDispatcher = function(dispatcher) {}
  8713. /** @return {!Protocol.InputAgent}*/
  8714. Protocol.TargetBase.prototype.inputAgent = function(){};
  8715. /**
  8716. * @param {!Protocol.InputDispatcher} dispatcher
  8717. */
  8718. Protocol.TargetBase.prototype.registerInputDispatcher = function(dispatcher) {}
  8719. /** @return {!Protocol.InspectorAgent}*/
  8720. Protocol.TargetBase.prototype.inspectorAgent = function(){};
  8721. /**
  8722. * @param {!Protocol.InspectorDispatcher} dispatcher
  8723. */
  8724. Protocol.TargetBase.prototype.registerInspectorDispatcher = function(dispatcher) {}
  8725. /** @return {!Protocol.LayerTreeAgent}*/
  8726. Protocol.TargetBase.prototype.layerTreeAgent = function(){};
  8727. /**
  8728. * @param {!Protocol.LayerTreeDispatcher} dispatcher
  8729. */
  8730. Protocol.TargetBase.prototype.registerLayerTreeDispatcher = function(dispatcher) {}
  8731. /** @return {!Protocol.LogAgent}*/
  8732. Protocol.TargetBase.prototype.logAgent = function(){};
  8733. /**
  8734. * @param {!Protocol.LogDispatcher} dispatcher
  8735. */
  8736. Protocol.TargetBase.prototype.registerLogDispatcher = function(dispatcher) {}
  8737. /** @return {!Protocol.MemoryAgent}*/
  8738. Protocol.TargetBase.prototype.memoryAgent = function(){};
  8739. /**
  8740. * @param {!Protocol.MemoryDispatcher} dispatcher
  8741. */
  8742. Protocol.TargetBase.prototype.registerMemoryDispatcher = function(dispatcher) {}
  8743. /** @return {!Protocol.NetworkAgent}*/
  8744. Protocol.TargetBase.prototype.networkAgent = function(){};
  8745. /**
  8746. * @param {!Protocol.NetworkDispatcher} dispatcher
  8747. */
  8748. Protocol.TargetBase.prototype.registerNetworkDispatcher = function(dispatcher) {}
  8749. /** @return {!Protocol.OverlayAgent}*/
  8750. Protocol.TargetBase.prototype.overlayAgent = function(){};
  8751. /**
  8752. * @param {!Protocol.OverlayDispatcher} dispatcher
  8753. */
  8754. Protocol.TargetBase.prototype.registerOverlayDispatcher = function(dispatcher) {}
  8755. /** @return {!Protocol.PageAgent}*/
  8756. Protocol.TargetBase.prototype.pageAgent = function(){};
  8757. /**
  8758. * @param {!Protocol.PageDispatcher} dispatcher
  8759. */
  8760. Protocol.TargetBase.prototype.registerPageDispatcher = function(dispatcher) {}
  8761. /** @return {!Protocol.PerformanceAgent}*/
  8762. Protocol.TargetBase.prototype.performanceAgent = function(){};
  8763. /**
  8764. * @param {!Protocol.PerformanceDispatcher} dispatcher
  8765. */
  8766. Protocol.TargetBase.prototype.registerPerformanceDispatcher = function(dispatcher) {}
  8767. /** @return {!Protocol.SecurityAgent}*/
  8768. Protocol.TargetBase.prototype.securityAgent = function(){};
  8769. /**
  8770. * @param {!Protocol.SecurityDispatcher} dispatcher
  8771. */
  8772. Protocol.TargetBase.prototype.registerSecurityDispatcher = function(dispatcher) {}
  8773. /** @return {!Protocol.ServiceWorkerAgent}*/
  8774. Protocol.TargetBase.prototype.serviceWorkerAgent = function(){};
  8775. /**
  8776. * @param {!Protocol.ServiceWorkerDispatcher} dispatcher
  8777. */
  8778. Protocol.TargetBase.prototype.registerServiceWorkerDispatcher = function(dispatcher) {}
  8779. /** @return {!Protocol.StorageAgent}*/
  8780. Protocol.TargetBase.prototype.storageAgent = function(){};
  8781. /**
  8782. * @param {!Protocol.StorageDispatcher} dispatcher
  8783. */
  8784. Protocol.TargetBase.prototype.registerStorageDispatcher = function(dispatcher) {}
  8785. /** @return {!Protocol.SystemInfoAgent}*/
  8786. Protocol.TargetBase.prototype.systemInfoAgent = function(){};
  8787. /**
  8788. * @param {!Protocol.SystemInfoDispatcher} dispatcher
  8789. */
  8790. Protocol.TargetBase.prototype.registerSystemInfoDispatcher = function(dispatcher) {}
  8791. /** @return {!Protocol.TargetAgent}*/
  8792. Protocol.TargetBase.prototype.targetAgent = function(){};
  8793. /**
  8794. * @param {!Protocol.TargetDispatcher} dispatcher
  8795. */
  8796. Protocol.TargetBase.prototype.registerTargetDispatcher = function(dispatcher) {}
  8797. /** @return {!Protocol.TetheringAgent}*/
  8798. Protocol.TargetBase.prototype.tetheringAgent = function(){};
  8799. /**
  8800. * @param {!Protocol.TetheringDispatcher} dispatcher
  8801. */
  8802. Protocol.TargetBase.prototype.registerTetheringDispatcher = function(dispatcher) {}
  8803. /** @return {!Protocol.TracingAgent}*/
  8804. Protocol.TargetBase.prototype.tracingAgent = function(){};
  8805. /**
  8806. * @param {!Protocol.TracingDispatcher} dispatcher
  8807. */
  8808. Protocol.TargetBase.prototype.registerTracingDispatcher = function(dispatcher) {}
  8809. /** @return {!Protocol.FetchAgent}*/
  8810. Protocol.TargetBase.prototype.fetchAgent = function(){};
  8811. /**
  8812. * @param {!Protocol.FetchDispatcher} dispatcher
  8813. */
  8814. Protocol.TargetBase.prototype.registerFetchDispatcher = function(dispatcher) {}
  8815. /** @return {!Protocol.WebAudioAgent}*/
  8816. Protocol.TargetBase.prototype.webAudioAgent = function(){};
  8817. /**
  8818. * @param {!Protocol.WebAudioDispatcher} dispatcher
  8819. */
  8820. Protocol.TargetBase.prototype.registerWebAudioDispatcher = function(dispatcher) {}
  8821. /** @return {!Protocol.WebAuthnAgent}*/
  8822. Protocol.TargetBase.prototype.webAuthnAgent = function(){};
  8823. /**
  8824. * @param {!Protocol.WebAuthnDispatcher} dispatcher
  8825. */
  8826. Protocol.TargetBase.prototype.registerWebAuthnDispatcher = function(dispatcher) {}
  8827. /** @return {!Protocol.MediaAgent}*/
  8828. Protocol.TargetBase.prototype.mediaAgent = function(){};
  8829. /**
  8830. * @param {!Protocol.MediaDispatcher} dispatcher
  8831. */
  8832. Protocol.TargetBase.prototype.registerMediaDispatcher = function(dispatcher) {}
  8833. /** @return {!Protocol.ConsoleAgent}*/
  8834. Protocol.TargetBase.prototype.consoleAgent = function(){};
  8835. /**
  8836. * @param {!Protocol.ConsoleDispatcher} dispatcher
  8837. */
  8838. Protocol.TargetBase.prototype.registerConsoleDispatcher = function(dispatcher) {}
  8839. /** @return {!Protocol.DebuggerAgent}*/
  8840. Protocol.TargetBase.prototype.debuggerAgent = function(){};
  8841. /**
  8842. * @param {!Protocol.DebuggerDispatcher} dispatcher
  8843. */
  8844. Protocol.TargetBase.prototype.registerDebuggerDispatcher = function(dispatcher) {}
  8845. /** @return {!Protocol.HeapProfilerAgent}*/
  8846. Protocol.TargetBase.prototype.heapProfilerAgent = function(){};
  8847. /**
  8848. * @param {!Protocol.HeapProfilerDispatcher} dispatcher
  8849. */
  8850. Protocol.TargetBase.prototype.registerHeapProfilerDispatcher = function(dispatcher) {}
  8851. /** @return {!Protocol.ProfilerAgent}*/
  8852. Protocol.TargetBase.prototype.profilerAgent = function(){};
  8853. /**
  8854. * @param {!Protocol.ProfilerDispatcher} dispatcher
  8855. */
  8856. Protocol.TargetBase.prototype.registerProfilerDispatcher = function(dispatcher) {}
  8857. /** @return {!Protocol.RuntimeAgent}*/
  8858. Protocol.TargetBase.prototype.runtimeAgent = function(){};
  8859. /**
  8860. * @param {!Protocol.RuntimeDispatcher} dispatcher
  8861. */
  8862. Protocol.TargetBase.prototype.registerRuntimeDispatcher = function(dispatcher) {}
  8863. /** @return {!Protocol.SchemaAgent}*/
  8864. Protocol.TargetBase.prototype.schemaAgent = function(){};
  8865. /**
  8866. * @param {!Protocol.SchemaDispatcher} dispatcher
  8867. */
  8868. Protocol.TargetBase.prototype.registerSchemaDispatcher = function(dispatcher) {}