@@ -145,22 +145,22 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
145145 closeWindow ( ) : void {
146146 }
147147
148- setIsDocked ( isDocked : boolean , callback : ( ) => void ) : void {
148+ setIsDocked ( _isDocked : boolean , callback : ( ) => void ) : void {
149149 window . setTimeout ( callback , 0 ) ;
150150 }
151151
152- showSurvey ( trigger : string , callback : ( arg0 : ShowSurveyResult ) => void ) : void {
152+ showSurvey ( _trigger : string , callback : ( arg0 : ShowSurveyResult ) => void ) : void {
153153 window . setTimeout ( ( ) => callback ( { surveyShown : false } ) , 0 ) ;
154154 }
155155
156- canShowSurvey ( trigger : string , callback : ( arg0 : CanShowSurveyResult ) => void ) : void {
156+ canShowSurvey ( _trigger : string , callback : ( arg0 : CanShowSurveyResult ) => void ) : void {
157157 window . setTimeout ( ( ) => callback ( { canShowSurvey : false } ) , 0 ) ;
158158 }
159159
160160 /**
161161 * Requests inspected page to be placed atop of the inspector frontend with specified bounds.
162162 */
163- setInspectedPageBounds ( bounds : {
163+ setInspectedPageBounds ( _bounds : {
164164 x : number ,
165165 y : number ,
166166 width : number ,
@@ -171,7 +171,7 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
171171 inspectElementCompleted ( ) : void {
172172 }
173173
174- setInjectedScriptForOrigin ( origin : string , script : string ) : void {
174+ setInjectedScriptForOrigin ( _origin : string , _script : string ) : void {
175175 }
176176
177177 inspectedURLChanged ( url : Platform . DevToolsPath . UrlString ) : void {
@@ -192,19 +192,19 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
192192 window . open ( url , '_blank' ) ;
193193 }
194194
195- openSearchResultsInNewTab ( query : string ) : void {
195+ openSearchResultsInNewTab ( _query : string ) : void {
196196 Common . Console . Console . instance ( ) . error (
197197 'Search is not enabled in hosted mode. Please inspect using chrome://inspect' ) ;
198198 }
199199
200- showItemInFolder ( fileSystemPath : Platform . DevToolsPath . RawPathString ) : void {
200+ showItemInFolder ( _fileSystemPath : Platform . DevToolsPath . RawPathString ) : void {
201201 Common . Console . Console . instance ( ) . error (
202202 'Show item in folder is not enabled in hosted mode. Please inspect using chrome://inspect' ) ;
203203 }
204204
205205 save (
206- url : Platform . DevToolsPath . RawPathString | Platform . DevToolsPath . UrlString , content : string , forceSaveAs : boolean ,
207- isBase64 : boolean ) : void {
206+ url : Platform . DevToolsPath . RawPathString | Platform . DevToolsPath . UrlString , content : string , _forceSaveAs : boolean ,
207+ _isBase64 : boolean ) : void {
208208 let buffer = this . #urlsBeingSaved. get ( url ) ;
209209 if ( ! buffer ) {
210210 buffer = [ ] ;
@@ -246,7 +246,7 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
246246 URL . revokeObjectURL ( blobUrl ) ;
247247 }
248248
249- sendMessageToBackend ( message : string ) : void {
249+ sendMessageToBackend ( _message : string ) : void {
250250 }
251251
252252 recordCountHistogram ( histogramName : string , sample : number , min : number , exclusiveMax : number , bucketSize : number ) :
@@ -257,7 +257,7 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
257257 this . recordedCountHistograms . push ( { histogramName, sample, min, exclusiveMax, bucketSize} ) ;
258258 }
259259
260- recordEnumeratedHistogram ( actionName : EnumeratedHistogram , actionCode : number , bucketSize : number ) : void {
260+ recordEnumeratedHistogram ( actionName : EnumeratedHistogram , actionCode : number , _bucketSize : number ) : void {
261261 if ( this . recordedEnumeratedHistograms . length >= MAX_RECORDED_HISTOGRAMS_SIZE ) {
262262 this . recordedEnumeratedHistograms . shift ( ) ;
263263 }
@@ -271,7 +271,7 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
271271 this . recordedPerformanceHistograms . push ( { histogramName, duration} ) ;
272272 }
273273
274- recordUserMetricsAction ( umaName : string ) : void {
274+ recordUserMetricsAction ( _umaName : string ) : void {
275275 }
276276
277277 connectAutomaticFileSystem (
@@ -283,14 +283,14 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
283283 queueMicrotask ( ( ) => callback ( { success : false } ) ) ;
284284 }
285285
286- disconnectAutomaticFileSystem ( fileSystemPath : Platform . DevToolsPath . RawPathString ) : void {
286+ disconnectAutomaticFileSystem ( _fileSystemPath : Platform . DevToolsPath . RawPathString ) : void {
287287 }
288288
289289 requestFileSystems ( ) : void {
290290 this . events . dispatchEventToListeners ( Events . FileSystemsLoaded , [ ] ) ;
291291 }
292292
293- addFileSystem ( type ?: string ) : void {
293+ addFileSystem ( _type ?: string ) : void {
294294 const onFileSystem = ( fs : FileSystem ) : void => {
295295 this . #fileSystem = fs ;
296296 const fileSystem = {
@@ -304,7 +304,7 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
304304 window . webkitRequestFileSystem ( window . TEMPORARY , 1024 * 1024 , onFileSystem ) ;
305305 }
306306
307- removeFileSystem ( fileSystemPath : Platform . DevToolsPath . RawPathString ) : void {
307+ removeFileSystem ( _fileSystemPath : Platform . DevToolsPath . RawPathString ) : void {
308308 const removalCallback = ( entries : Entry [ ] ) : void => {
309309 entries . forEach ( entry => {
310310 if ( entry . isDirectory ) {
@@ -323,12 +323,12 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
323323 this . events . dispatchEventToListeners ( Events . FileSystemRemoved , OVERRIDES_FILE_SYSTEM_PATH ) ;
324324 }
325325
326- isolatedFileSystem ( fileSystemId : string , registeredName : string ) : FileSystem | null {
326+ isolatedFileSystem ( _fileSystemId : string , _registeredName : string ) : FileSystem | null {
327327 return this . #fileSystem;
328328 }
329329
330330 loadNetworkResource (
331- url : string , headers : string , streamId : number , callback : ( arg0 : LoadNetworkResourceResult ) => void ) : void {
331+ url : string , _headers : string , streamId : number , callback : ( arg0 : LoadNetworkResourceResult ) => void ) : void {
332332 // Read the first 3 bytes looking for the gzip signature in the file header
333333 function isGzip ( ab : ArrayBuffer ) : boolean {
334334 const buf = new Uint8Array ( ab ) ;
@@ -376,7 +376,7 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
376376 } ) ;
377377 }
378378
379- registerPreference ( name : string , options : { synced ?: boolean } ) : void {
379+ registerPreference ( _name : string , _options : { synced ?: boolean } ) : void {
380380 }
381381
382382 getPreferences ( callback : ( arg0 : {
@@ -452,16 +452,16 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
452452 callback ( hostConfigForHostedMode ) ;
453453 }
454454
455- upgradeDraggedFileSystemPermissions ( fileSystem : FileSystem ) : void {
455+ upgradeDraggedFileSystemPermissions ( _fileSystem : FileSystem ) : void {
456456 }
457457
458- indexPath ( requestId : number , fileSystemPath : Platform . DevToolsPath . RawPathString , excludedFolders : string ) : void {
458+ indexPath ( _requestId : number , _fileSystemPath : Platform . DevToolsPath . RawPathString , _excludedFolders : string ) : void {
459459 }
460460
461- stopIndexing ( requestId : number ) : void {
461+ stopIndexing ( _requestId : number ) : void {
462462 }
463463
464- searchInPath ( requestId : number , fileSystemPath : Platform . DevToolsPath . RawPathString , query : string ) : void {
464+ searchInPath ( _requestId : number , _fileSystemPath : Platform . DevToolsPath . RawPathString , _query : string ) : void {
465465 }
466466
467467 zoomFactor ( ) : number {
@@ -477,16 +477,16 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
477477 resetZoom ( ) : void {
478478 }
479479
480- setWhitelistedShortcuts ( shortcuts : string ) : void {
480+ setWhitelistedShortcuts ( _shortcuts : string ) : void {
481481 }
482482
483- setEyeDropperActive ( active : boolean ) : void {
483+ setEyeDropperActive ( _active : boolean ) : void {
484484 }
485485
486- showCertificateViewer ( certChain : string [ ] ) : void {
486+ showCertificateViewer ( _certChain : string [ ] ) : void {
487487 }
488488
489- reattach ( callback : ( ) => void ) : void {
489+ reattach ( _callback : ( ) => void ) : void {
490490 }
491491
492492 readyForTest ( ) : void {
@@ -495,64 +495,64 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
495495 connectionReady ( ) : void {
496496 }
497497
498- setOpenNewWindowForPopups ( value : boolean ) : void {
498+ setOpenNewWindowForPopups ( _value : boolean ) : void {
499499 }
500500
501- setDevicesDiscoveryConfig ( config : Adb . Config ) : void {
501+ setDevicesDiscoveryConfig ( _config : Adb . Config ) : void {
502502 }
503503
504- setDevicesUpdatesEnabled ( enabled : boolean ) : void {
504+ setDevicesUpdatesEnabled ( _enabled : boolean ) : void {
505505 }
506506
507- openRemotePage ( browserId : string , url : string ) : void {
507+ openRemotePage ( _browserId : string , _url : string ) : void {
508508 }
509509
510510 openNodeFrontend ( ) : void {
511511 }
512512
513- showContextMenuAtPoint ( x : number , y : number , items : ContextMenuDescriptor [ ] , document : Document ) : void {
513+ showContextMenuAtPoint ( _x : number , _y : number , _items : ContextMenuDescriptor [ ] , _document : Document ) : void {
514514 throw new Error ( 'Soft context menu should be used' ) ;
515515 }
516516
517517 isHostedMode ( ) : boolean {
518518 return true ;
519519 }
520520
521- setAddExtensionCallback ( callback : ( arg0 : ExtensionDescriptor ) => void ) : void {
521+ setAddExtensionCallback ( _callback : ( arg0 : ExtensionDescriptor ) => void ) : void {
522522 // Extensions are not supported in hosted mode.
523523 }
524524
525525 async initialTargetId ( ) : Promise < string | null > {
526526 return null ;
527527 }
528528
529- doAidaConversation ( request : string , streamId : number , callback : ( result : DoAidaConversationResult ) => void ) : void {
529+ doAidaConversation ( _request : string , _streamId : number , callback : ( result : DoAidaConversationResult ) => void ) : void {
530530 callback ( {
531531 error : 'Not implemented' ,
532532 } ) ;
533533 }
534534
535- registerAidaClientEvent ( request : string , callback : ( result : AidaClientResult ) => void ) : void {
535+ registerAidaClientEvent ( _request : string , callback : ( result : AidaClientResult ) => void ) : void {
536536 callback ( {
537537 error : 'Not implemented' ,
538538 } ) ;
539539 }
540540
541- recordImpression ( event : ImpressionEvent ) : void {
541+ recordImpression ( _event : ImpressionEvent ) : void {
542542 }
543- recordResize ( event : ResizeEvent ) : void {
543+ recordResize ( _event : ResizeEvent ) : void {
544544 }
545- recordClick ( event : ClickEvent ) : void {
545+ recordClick ( _event : ClickEvent ) : void {
546546 }
547- recordHover ( event : HoverEvent ) : void {
547+ recordHover ( _event : HoverEvent ) : void {
548548 }
549- recordDrag ( event : DragEvent ) : void {
549+ recordDrag ( _event : DragEvent ) : void {
550550 }
551- recordChange ( event : ChangeEvent ) : void {
551+ recordChange ( _event : ChangeEvent ) : void {
552552 }
553- recordKeyDown ( event : KeyDownEvent ) : void {
553+ recordKeyDown ( _event : KeyDownEvent ) : void {
554554 }
555- recordSettingAccess ( event : SettingAccessEvent ) : void {
555+ recordSettingAccess ( _event : SettingAccessEvent ) : void {
556556 }
557557}
558558
@@ -568,7 +568,7 @@ class InspectorFrontendAPIImpl {
568568 }
569569 }
570570
571- private dispatch ( name : symbol , signature : string [ ] , runOnceLoaded : boolean , ...params : string [ ] ) : void {
571+ private dispatch ( name : symbol , signature : string [ ] , _runOnceLoaded : boolean , ...params : string [ ] ) : void {
572572 // Single argument methods get dispatched with the param.
573573 if ( signature . length < 2 ) {
574574 try {
0 commit comments