1 | export declare function DomainDispatcher(domain: string): ClassDecorator;
|
2 | export declare namespace HeapDomain {
|
3 | type HeapSnapshotData = string;
|
4 | interface GarbageCollection {
|
5 | type: any;
|
6 | startTime: number;
|
7 | endTime: number;
|
8 | }
|
9 | interface GetPreviewMethodArguments {
|
10 | heapObjectId: number;
|
11 | }
|
12 | interface GetRemoteObjectMethodArguments {
|
13 | heapObjectId: number;
|
14 | objectGroup?: string;
|
15 | }
|
16 | interface HeapDomainDispatcher {
|
17 | enable(): void;
|
18 | disable(): void;
|
19 | gc(): void;
|
20 | snapshot(): {
|
21 | timestamp: number;
|
22 | snapshotData: HeapSnapshotData;
|
23 | };
|
24 | startTracking(): void;
|
25 | stopTracking(): void;
|
26 | getPreview(params: GetPreviewMethodArguments): {
|
27 | string?: string;
|
28 | functionDetails?: DebuggerDomain.FunctionDetails;
|
29 | preview?: RuntimeDomain.ObjectPreview;
|
30 | };
|
31 | getRemoteObject(params: GetRemoteObjectMethodArguments): {
|
32 | result: RuntimeDomain.RemoteObject;
|
33 | };
|
34 | }
|
35 | class HeapFrontend {
|
36 | garbageCollected(collection: GarbageCollection): void;
|
37 | trackingStart(timestamp: number, snapshotData: HeapSnapshotData): void;
|
38 | trackingComplete(timestamp: number, snapshotData: HeapSnapshotData): void;
|
39 | }
|
40 | }
|
41 | export declare namespace DebuggerDomain {
|
42 | type BreakpointId = string;
|
43 | type BreakpointActionIdentifier = number;
|
44 | type ScriptId = string;
|
45 | type CallFrameId = string;
|
46 | interface Location {
|
47 | scriptId: ScriptId;
|
48 | lineNumber: number;
|
49 | columnNumber?: number;
|
50 | }
|
51 | interface BreakpointAction {
|
52 | type: any;
|
53 | data?: string;
|
54 | id?: BreakpointActionIdentifier;
|
55 | }
|
56 | interface BreakpointOptions {
|
57 | condition?: string;
|
58 | actions?: BreakpointAction[];
|
59 | autoContinue?: boolean;
|
60 | ignoreCount?: number;
|
61 | }
|
62 | interface FunctionDetails {
|
63 | location: Location;
|
64 | name?: string;
|
65 | displayName?: string;
|
66 | scopeChain?: Scope[];
|
67 | }
|
68 | interface CallFrame {
|
69 | callFrameId: CallFrameId;
|
70 | functionName: string;
|
71 | location: Location;
|
72 | scopeChain: Scope[];
|
73 | this: RuntimeDomain.RemoteObject;
|
74 | isTailDeleted: boolean;
|
75 | }
|
76 | interface Scope {
|
77 | object: RuntimeDomain.RemoteObject;
|
78 | type: any;
|
79 | name?: string;
|
80 | location?: Location;
|
81 | empty?: boolean;
|
82 | }
|
83 | interface ProbeSample {
|
84 | probeId: BreakpointActionIdentifier;
|
85 | sampleId: number;
|
86 | batchId: number;
|
87 | timestamp: number;
|
88 | payload: RuntimeDomain.RemoteObject;
|
89 | }
|
90 | interface AssertPauseReason {
|
91 | message?: string;
|
92 | }
|
93 | interface BreakpointPauseReason {
|
94 | breakpointId: string;
|
95 | }
|
96 | interface CSPViolationPauseReason {
|
97 | directive: string;
|
98 | }
|
99 | interface SetBreakpointsActiveMethodArguments {
|
100 | active: boolean;
|
101 | }
|
102 | interface SetBreakpointByUrlMethodArguments {
|
103 | lineNumber: number;
|
104 | url?: string;
|
105 | urlRegex?: string;
|
106 | columnNumber?: number;
|
107 | options?: BreakpointOptions;
|
108 | }
|
109 | interface SetBreakpointMethodArguments {
|
110 | location: Location;
|
111 | options?: BreakpointOptions;
|
112 | }
|
113 | interface RemoveBreakpointMethodArguments {
|
114 | breakpointId: BreakpointId;
|
115 | }
|
116 | interface ContinueToLocationMethodArguments {
|
117 | location: Location;
|
118 | }
|
119 | interface SearchInContentMethodArguments {
|
120 | scriptId: ScriptId;
|
121 | query: string;
|
122 | caseSensitive?: boolean;
|
123 | isRegex?: boolean;
|
124 | }
|
125 | interface GetScriptSourceMethodArguments {
|
126 | scriptId: ScriptId;
|
127 | }
|
128 | interface SetScriptSourceMethodArguments {
|
129 | scriptUrl: string;
|
130 | scriptSource: string;
|
131 | }
|
132 | interface GetFunctionDetailsMethodArguments {
|
133 | functionId: RuntimeDomain.RemoteObjectId;
|
134 | }
|
135 | interface SetPauseOnExceptionsMethodArguments {
|
136 | state: any;
|
137 | }
|
138 | interface SetPauseOnAssertionsMethodArguments {
|
139 | enabled: boolean;
|
140 | }
|
141 | interface EvaluateOnCallFrameMethodArguments {
|
142 | callFrameId: CallFrameId;
|
143 | expression: string;
|
144 | objectGroup?: string;
|
145 | includeCommandLineAPI?: boolean;
|
146 | doNotPauseOnExceptionsAndMuteConsole?: boolean;
|
147 | returnByValue?: boolean;
|
148 | generatePreview?: boolean;
|
149 | saveResult?: boolean;
|
150 | }
|
151 | interface SetOverlayMessageMethodArguments {
|
152 | message?: string;
|
153 | }
|
154 | interface DebuggerDomainDispatcher {
|
155 | enable(): void;
|
156 | disable(): void;
|
157 | setBreakpointsActive(params: SetBreakpointsActiveMethodArguments): void;
|
158 | setBreakpointByUrl(params: SetBreakpointByUrlMethodArguments): {
|
159 | breakpointId: BreakpointId;
|
160 | locations: Location[];
|
161 | };
|
162 | setBreakpoint(params: SetBreakpointMethodArguments): {
|
163 | breakpointId: BreakpointId;
|
164 | actualLocation: Location;
|
165 | };
|
166 | removeBreakpoint(params: RemoveBreakpointMethodArguments): void;
|
167 | continueToLocation(params: ContinueToLocationMethodArguments): void;
|
168 | stepOver(): void;
|
169 | stepInto(): void;
|
170 | stepOut(): void;
|
171 | pause(): void;
|
172 | resume(): void;
|
173 | searchInContent(params: SearchInContentMethodArguments): {
|
174 | result: GenericTypesDomain.SearchMatch[];
|
175 | };
|
176 | getScriptSource(params: GetScriptSourceMethodArguments): {
|
177 | scriptSource: string;
|
178 | };
|
179 | setScriptSource(params: SetScriptSourceMethodArguments): void;
|
180 | getFunctionDetails(params: GetFunctionDetailsMethodArguments): {
|
181 | details: FunctionDetails;
|
182 | };
|
183 | setPauseOnExceptions(params: SetPauseOnExceptionsMethodArguments): void;
|
184 | setPauseOnAssertions(params: SetPauseOnAssertionsMethodArguments): void;
|
185 | evaluateOnCallFrame(params: EvaluateOnCallFrameMethodArguments): {
|
186 | result: RuntimeDomain.RemoteObject;
|
187 | wasThrown?: boolean;
|
188 | savedResultIndex?: number;
|
189 | };
|
190 | setOverlayMessage(params: SetOverlayMessageMethodArguments): void;
|
191 | }
|
192 | class DebuggerFrontend {
|
193 | globalObjectCleared(): void;
|
194 | scriptParsed(scriptId: ScriptId, url: string, startLine: number, startColumn: number, endLine: number, endColumn: number, isContentScript?: boolean, sourceURL?: string, sourceMapURL?: string): void;
|
195 | scriptFailedToParse(url: string, scriptSource: string, startLine: number, errorLine: number, errorMessage: string): void;
|
196 | breakpointResolved(breakpointId: BreakpointId, location: Location): void;
|
197 | paused(callFrames: CallFrame[], reason: any, data?: Object): void;
|
198 | resumed(): void;
|
199 | didSampleProbe(sample: ProbeSample): void;
|
200 | playBreakpointActionSound(breakpointActionId: BreakpointActionIdentifier): void;
|
201 | }
|
202 | }
|
203 | export declare namespace RuntimeDomain {
|
204 | type RemoteObjectId = string;
|
205 | type ExecutionContextId = number;
|
206 | interface RemoteObject {
|
207 | type: any;
|
208 | subtype?: any;
|
209 | className?: string;
|
210 | value?: any;
|
211 | description?: string;
|
212 | objectId?: RemoteObjectId;
|
213 | size?: number;
|
214 | classPrototype?: RemoteObject;
|
215 | preview?: ObjectPreview;
|
216 | }
|
217 | interface ObjectPreview {
|
218 | type: any;
|
219 | subtype?: any;
|
220 | description?: string;
|
221 | lossless: boolean;
|
222 | overflow?: boolean;
|
223 | properties?: PropertyPreview[];
|
224 | entries?: EntryPreview[];
|
225 | size?: number;
|
226 | }
|
227 | interface PropertyPreview {
|
228 | name: string;
|
229 | type: any;
|
230 | subtype?: any;
|
231 | value?: string;
|
232 | valuePreview?: ObjectPreview;
|
233 | internal?: boolean;
|
234 | }
|
235 | interface EntryPreview {
|
236 | key?: ObjectPreview;
|
237 | value: ObjectPreview;
|
238 | }
|
239 | interface CollectionEntry {
|
240 | key?: RemoteObject;
|
241 | value: RemoteObject;
|
242 | }
|
243 | interface PropertyDescriptor {
|
244 | name: string;
|
245 | value?: RemoteObject;
|
246 | writable?: boolean;
|
247 | get?: RemoteObject;
|
248 | set?: RemoteObject;
|
249 | configurable: boolean;
|
250 | enumerable: boolean;
|
251 | wasThrown?: boolean;
|
252 | isOwn?: boolean;
|
253 | symbol?: RemoteObject;
|
254 | nativeGetter?: boolean;
|
255 | }
|
256 | interface InternalPropertyDescriptor {
|
257 | name: string;
|
258 | value?: RemoteObject;
|
259 | }
|
260 | interface CallArgument {
|
261 | value?: any;
|
262 | objectId?: RemoteObjectId;
|
263 | }
|
264 | interface ExecutionContextDescription {
|
265 | id: ExecutionContextId;
|
266 | isPageContext: boolean;
|
267 | name: string;
|
268 | frameId: NetworkDomain.FrameId;
|
269 | }
|
270 | interface ErrorRange {
|
271 | startOffset: number;
|
272 | endOffset: number;
|
273 | }
|
274 | interface StructureDescription {
|
275 | fields?: string[];
|
276 | optionalFields?: string[];
|
277 | constructorName?: string;
|
278 | prototypeStructure?: StructureDescription;
|
279 | isImprecise?: boolean;
|
280 | }
|
281 | interface TypeSet {
|
282 | isFunction: boolean;
|
283 | isUndefined: boolean;
|
284 | isNull: boolean;
|
285 | isBoolean: boolean;
|
286 | isInteger: boolean;
|
287 | isNumber: boolean;
|
288 | isString: boolean;
|
289 | isObject: boolean;
|
290 | isSymbol: boolean;
|
291 | }
|
292 | interface TypeDescription {
|
293 | isValid: boolean;
|
294 | leastCommonAncestor?: string;
|
295 | typeSet?: TypeSet;
|
296 | structures?: StructureDescription[];
|
297 | isTruncated?: boolean;
|
298 | }
|
299 | interface TypeLocation {
|
300 | typeInformationDescriptor: number;
|
301 | sourceID: string;
|
302 | divot: number;
|
303 | }
|
304 | interface BasicBlock {
|
305 | startOffset: number;
|
306 | endOffset: number;
|
307 | hasExecuted: boolean;
|
308 | executionCount: number;
|
309 | }
|
310 | const enum SyntaxErrorType {
|
311 | None = 0,
|
312 | Irrecoverable = 1,
|
313 | UnterminatedLiteral = 2,
|
314 | Recoverable = 3
|
315 | }
|
316 | interface ParseMethodArguments {
|
317 | source: string;
|
318 | }
|
319 | interface EvaluateMethodArguments {
|
320 | expression: string;
|
321 | objectGroup?: string;
|
322 | includeCommandLineAPI?: boolean;
|
323 | doNotPauseOnExceptionsAndMuteConsole?: boolean;
|
324 | contextId?: ExecutionContextId;
|
325 | returnByValue?: boolean;
|
326 | generatePreview?: boolean;
|
327 | saveResult?: boolean;
|
328 | }
|
329 | interface CallFunctionOnMethodArguments {
|
330 | objectId: RemoteObjectId;
|
331 | functionDeclaration: string;
|
332 | arguments?: CallArgument[];
|
333 | doNotPauseOnExceptionsAndMuteConsole?: boolean;
|
334 | returnByValue?: boolean;
|
335 | generatePreview?: boolean;
|
336 | }
|
337 | interface GetPropertiesMethodArguments {
|
338 | objectId: RemoteObjectId;
|
339 | ownProperties?: boolean;
|
340 | generatePreview?: boolean;
|
341 | }
|
342 | interface GetDisplayablePropertiesMethodArguments {
|
343 | objectId: RemoteObjectId;
|
344 | generatePreview?: boolean;
|
345 | }
|
346 | interface GetCollectionEntriesMethodArguments {
|
347 | objectId: RemoteObjectId;
|
348 | objectGroup?: string;
|
349 | startIndex?: number;
|
350 | numberToFetch?: number;
|
351 | }
|
352 | interface SaveResultMethodArguments {
|
353 | value: CallArgument;
|
354 | contextId?: ExecutionContextId;
|
355 | }
|
356 | interface ReleaseObjectMethodArguments {
|
357 | objectId: RemoteObjectId;
|
358 | }
|
359 | interface ReleaseObjectGroupMethodArguments {
|
360 | objectGroup: string;
|
361 | }
|
362 | interface GetRuntimeTypesForVariablesAtOffsetsMethodArguments {
|
363 | locations: TypeLocation[];
|
364 | }
|
365 | interface GetBasicBlocksMethodArguments {
|
366 | sourceID: string;
|
367 | }
|
368 | interface RuntimeDomainDispatcher {
|
369 | parse(params: ParseMethodArguments): {
|
370 | result: SyntaxErrorType;
|
371 | message?: string;
|
372 | range?: ErrorRange;
|
373 | };
|
374 | evaluate(params: EvaluateMethodArguments): {
|
375 | result: RemoteObject;
|
376 | wasThrown?: boolean;
|
377 | savedResultIndex?: number;
|
378 | };
|
379 | callFunctionOn(params: CallFunctionOnMethodArguments): {
|
380 | result: RemoteObject;
|
381 | wasThrown?: boolean;
|
382 | };
|
383 | getProperties(params: GetPropertiesMethodArguments): {
|
384 | result: PropertyDescriptor[];
|
385 | internalProperties?: InternalPropertyDescriptor[];
|
386 | };
|
387 | getDisplayableProperties(params: GetDisplayablePropertiesMethodArguments): {
|
388 | properties: PropertyDescriptor[];
|
389 | internalProperties?: InternalPropertyDescriptor[];
|
390 | };
|
391 | getCollectionEntries(params: GetCollectionEntriesMethodArguments): {
|
392 | entries: CollectionEntry[];
|
393 | };
|
394 | saveResult(params: SaveResultMethodArguments): {
|
395 | savedResultIndex?: number;
|
396 | };
|
397 | releaseObject(params: ReleaseObjectMethodArguments): void;
|
398 | releaseObjectGroup(params: ReleaseObjectGroupMethodArguments): void;
|
399 | enable(): void;
|
400 | disable(): void;
|
401 | getRuntimeTypesForVariablesAtOffsets(params: GetRuntimeTypesForVariablesAtOffsetsMethodArguments): {
|
402 | types: TypeDescription[];
|
403 | };
|
404 | enableTypeProfiler(): void;
|
405 | disableTypeProfiler(): void;
|
406 | enableControlFlowProfiler(): void;
|
407 | disableControlFlowProfiler(): void;
|
408 | getBasicBlocks(params: GetBasicBlocksMethodArguments): {
|
409 | basicBlocks: BasicBlock[];
|
410 | };
|
411 | }
|
412 | class RuntimeFrontend {
|
413 | executionContextCreated(context: ExecutionContextDescription): void;
|
414 | }
|
415 | }
|
416 | export declare namespace ConsoleDomain {
|
417 | interface ConsoleMessage {
|
418 | source: any;
|
419 | level: any;
|
420 | text: string;
|
421 | type?: any;
|
422 | url?: string;
|
423 | line?: number;
|
424 | column?: number;
|
425 | repeatCount?: number;
|
426 | parameters?: RuntimeDomain.RemoteObject[];
|
427 | stackTrace?: CallFrame[];
|
428 | networkRequestId?: NetworkDomain.RequestId;
|
429 | }
|
430 | interface CallFrame {
|
431 | functionName: string;
|
432 | url: string;
|
433 | scriptId: DebuggerDomain.ScriptId;
|
434 | lineNumber: number;
|
435 | columnNumber: number;
|
436 | }
|
437 | interface SetMonitoringXHREnabledMethodArguments {
|
438 | enabled: boolean;
|
439 | }
|
440 | interface AddInspectedNodeMethodArguments {
|
441 | nodeId: DOMDomain.NodeId;
|
442 | }
|
443 | interface ConsoleDomainDispatcher {
|
444 | enable(): void;
|
445 | disable(): void;
|
446 | clearMessages(): void;
|
447 | setMonitoringXHREnabled(params: SetMonitoringXHREnabledMethodArguments): void;
|
448 | addInspectedNode(params: AddInspectedNodeMethodArguments): void;
|
449 | }
|
450 | class ConsoleFrontend {
|
451 | messageAdded(message: ConsoleMessage): void;
|
452 | messageRepeatCountUpdated(count: number): void;
|
453 | messagesCleared(): void;
|
454 | heapSnapshot(timestamp: number, snapshotData: HeapDomain.HeapSnapshotData, title?: string): void;
|
455 | }
|
456 | }
|
457 | export declare namespace GenericTypesDomain {
|
458 | interface SearchMatch {
|
459 | lineNumber: number;
|
460 | lineContent: string;
|
461 | }
|
462 | }
|
463 | export declare namespace PageDomain {
|
464 | type ScriptIdentifier = string;
|
465 | interface Frame {
|
466 | id: string;
|
467 | parentId?: string;
|
468 | loaderId: NetworkDomain.LoaderId;
|
469 | name?: string;
|
470 | url: string;
|
471 | securityOrigin: string;
|
472 | mimeType: string;
|
473 | }
|
474 | interface FrameResource {
|
475 | url: string;
|
476 | type: ResourceType;
|
477 | mimeType: string;
|
478 | failed?: boolean;
|
479 | canceled?: boolean;
|
480 | sourceMapURL?: string;
|
481 | }
|
482 | interface FrameResourceTree {
|
483 | frame: Frame;
|
484 | childFrames?: FrameResourceTree[];
|
485 | resources: FrameResource[];
|
486 | }
|
487 | interface SearchResult {
|
488 | url: string;
|
489 | frameId: NetworkDomain.FrameId;
|
490 | matchesCount: number;
|
491 | requestId?: NetworkDomain.RequestId;
|
492 | }
|
493 | interface Cookie {
|
494 | name: string;
|
495 | value: string;
|
496 | domain: string;
|
497 | path: string;
|
498 | expires: number;
|
499 | size: number;
|
500 | httpOnly: boolean;
|
501 | secure: boolean;
|
502 | session: boolean;
|
503 | }
|
504 | const enum ResourceType {
|
505 | Document = 0,
|
506 | Stylesheet = 1,
|
507 | Image = 2,
|
508 | Font = 3,
|
509 | Script = 4,
|
510 | XHR = 5,
|
511 | WebSocket = 6,
|
512 | Other = 7
|
513 | }
|
514 | const enum CoordinateSystem {
|
515 | Viewport = 0,
|
516 | Page = 1
|
517 | }
|
518 | interface AddScriptToEvaluateOnLoadMethodArguments {
|
519 | scriptSource: string;
|
520 | }
|
521 | interface RemoveScriptToEvaluateOnLoadMethodArguments {
|
522 | identifier: ScriptIdentifier;
|
523 | }
|
524 | interface ReloadMethodArguments {
|
525 | ignoreCache?: boolean;
|
526 | scriptToEvaluateOnLoad?: string;
|
527 | }
|
528 | interface NavigateMethodArguments {
|
529 | url: string;
|
530 | }
|
531 | interface DeleteCookieMethodArguments {
|
532 | cookieName: string;
|
533 | url: string;
|
534 | }
|
535 | interface GetResourceContentMethodArguments {
|
536 | frameId: NetworkDomain.FrameId;
|
537 | url: string;
|
538 | }
|
539 | interface SearchInResourceMethodArguments {
|
540 | frameId: NetworkDomain.FrameId;
|
541 | url: string;
|
542 | query: string;
|
543 | caseSensitive?: boolean;
|
544 | isRegex?: boolean;
|
545 | requestId?: NetworkDomain.RequestId;
|
546 | }
|
547 | interface SearchInResourcesMethodArguments {
|
548 | text: string;
|
549 | caseSensitive?: boolean;
|
550 | isRegex?: boolean;
|
551 | }
|
552 | interface SetDocumentContentMethodArguments {
|
553 | frameId: NetworkDomain.FrameId;
|
554 | html: string;
|
555 | }
|
556 | interface SetShowPaintRectsMethodArguments {
|
557 | result: boolean;
|
558 | }
|
559 | interface SetScriptExecutionDisabledMethodArguments {
|
560 | value: boolean;
|
561 | }
|
562 | interface SetTouchEmulationEnabledMethodArguments {
|
563 | enabled: boolean;
|
564 | }
|
565 | interface SetEmulatedMediaMethodArguments {
|
566 | media: string;
|
567 | }
|
568 | interface SetCompositingBordersVisibleMethodArguments {
|
569 | visible: boolean;
|
570 | }
|
571 | interface SnapshotNodeMethodArguments {
|
572 | nodeId: DOMDomain.NodeId;
|
573 | }
|
574 | interface SnapshotRectMethodArguments {
|
575 | x: number;
|
576 | y: number;
|
577 | width: number;
|
578 | height: number;
|
579 | coordinateSystem: CoordinateSystem;
|
580 | }
|
581 | interface HandleJavaScriptDialogMethodArguments {
|
582 | accept: boolean;
|
583 | promptText?: string;
|
584 | }
|
585 | interface PageDomainDispatcher {
|
586 | enable(): void;
|
587 | disable(): void;
|
588 | addScriptToEvaluateOnLoad(params: AddScriptToEvaluateOnLoadMethodArguments): {
|
589 | identifier: ScriptIdentifier;
|
590 | };
|
591 | removeScriptToEvaluateOnLoad(params: RemoveScriptToEvaluateOnLoadMethodArguments): void;
|
592 | reload(params: ReloadMethodArguments): void;
|
593 | navigate(params: NavigateMethodArguments): void;
|
594 | getCookies(): {
|
595 | cookies: Cookie[];
|
596 | };
|
597 | deleteCookie(params: DeleteCookieMethodArguments): void;
|
598 | getResourceTree(): {
|
599 | frameTree: FrameResourceTree;
|
600 | };
|
601 | getResourceContent(params: GetResourceContentMethodArguments): {
|
602 | content: string;
|
603 | base64Encoded: boolean;
|
604 | };
|
605 | searchInResource(params: SearchInResourceMethodArguments): {
|
606 | result: GenericTypesDomain.SearchMatch[];
|
607 | };
|
608 | searchInResources(params: SearchInResourcesMethodArguments): {
|
609 | result: SearchResult[];
|
610 | };
|
611 | setDocumentContent(params: SetDocumentContentMethodArguments): void;
|
612 | setShowPaintRects(params: SetShowPaintRectsMethodArguments): void;
|
613 | getScriptExecutionStatus(): {
|
614 | result: any;
|
615 | };
|
616 | setScriptExecutionDisabled(params: SetScriptExecutionDisabledMethodArguments): void;
|
617 | setTouchEmulationEnabled(params: SetTouchEmulationEnabledMethodArguments): void;
|
618 | setEmulatedMedia(params: SetEmulatedMediaMethodArguments): void;
|
619 | getCompositingBordersVisible(): {
|
620 | result: boolean;
|
621 | };
|
622 | setCompositingBordersVisible(params: SetCompositingBordersVisibleMethodArguments): void;
|
623 | snapshotNode(params: SnapshotNodeMethodArguments): {
|
624 | dataURL: string;
|
625 | };
|
626 | snapshotRect(params: SnapshotRectMethodArguments): {
|
627 | dataURL: string;
|
628 | };
|
629 | handleJavaScriptDialog(params: HandleJavaScriptDialogMethodArguments): void;
|
630 | archive(): {
|
631 | data: string;
|
632 | };
|
633 | }
|
634 | class PageFrontend {
|
635 | domContentEventFired(timestamp: number): void;
|
636 | loadEventFired(timestamp: number): void;
|
637 | frameNavigated(frame: Frame): void;
|
638 | frameDetached(frameId: NetworkDomain.FrameId): void;
|
639 | frameStartedLoading(frameId: NetworkDomain.FrameId): void;
|
640 | frameStoppedLoading(frameId: NetworkDomain.FrameId): void;
|
641 | frameScheduledNavigation(frameId: NetworkDomain.FrameId, delay: number): void;
|
642 | frameClearedScheduledNavigation(frameId: NetworkDomain.FrameId): void;
|
643 | javascriptDialogOpening(message: string): void;
|
644 | javascriptDialogClosed(): void;
|
645 | scriptsEnabled(isEnabled: boolean): void;
|
646 | }
|
647 | }
|
648 | export declare namespace NetworkDomain {
|
649 | type LoaderId = string;
|
650 | type FrameId = string;
|
651 | type RequestId = string;
|
652 | type Timestamp = number;
|
653 | interface Headers {
|
654 | }
|
655 | interface ResourceTiming {
|
656 | startTime: number;
|
657 | domainLookupStart: number;
|
658 | domainLookupEnd: number;
|
659 | connectStart: number;
|
660 | connectEnd: number;
|
661 | secureConnectionStart: number;
|
662 | requestStart: number;
|
663 | responseStart: number;
|
664 | }
|
665 | interface Request {
|
666 | url: string;
|
667 | method: string;
|
668 | headers: Headers;
|
669 | postData?: string;
|
670 | }
|
671 | interface Response {
|
672 | url: string;
|
673 | status: number;
|
674 | statusText: string;
|
675 | headers: Headers;
|
676 | headersText?: string;
|
677 | mimeType: string;
|
678 | requestHeaders?: Headers;
|
679 | requestHeadersText?: string;
|
680 | fromDiskCache?: boolean;
|
681 | timing?: ResourceTiming;
|
682 | }
|
683 | interface WebSocketRequest {
|
684 | headers: Headers;
|
685 | }
|
686 | interface WebSocketResponse {
|
687 | status: number;
|
688 | statusText: string;
|
689 | headers: Headers;
|
690 | }
|
691 | interface WebSocketFrame {
|
692 | opcode: number;
|
693 | mask: boolean;
|
694 | payloadData: string;
|
695 | }
|
696 | interface CachedResource {
|
697 | url: string;
|
698 | type: PageDomain.ResourceType;
|
699 | response?: Response;
|
700 | bodySize: number;
|
701 | sourceMapURL?: string;
|
702 | }
|
703 | interface Initiator {
|
704 | type: any;
|
705 | stackTrace?: ConsoleDomain.CallFrame[];
|
706 | url?: string;
|
707 | lineNumber?: number;
|
708 | }
|
709 | interface SetExtraHTTPHeadersMethodArguments {
|
710 | headers: Headers;
|
711 | }
|
712 | interface GetResponseBodyMethodArguments {
|
713 | requestId: RequestId;
|
714 | }
|
715 | interface SetCacheDisabledMethodArguments {
|
716 | cacheDisabled: boolean;
|
717 | }
|
718 | interface LoadResourceMethodArguments {
|
719 | frameId: FrameId;
|
720 | url: string;
|
721 | }
|
722 | interface NetworkDomainDispatcher {
|
723 | enable(): void;
|
724 | disable(): void;
|
725 | setExtraHTTPHeaders(params: SetExtraHTTPHeadersMethodArguments): void;
|
726 | getResponseBody(params: GetResponseBodyMethodArguments): {
|
727 | body: string;
|
728 | base64Encoded: boolean;
|
729 | };
|
730 | setCacheDisabled(params: SetCacheDisabledMethodArguments): void;
|
731 | loadResource(params: LoadResourceMethodArguments): {
|
732 | content: string;
|
733 | mimeType: string;
|
734 | status: number;
|
735 | };
|
736 | }
|
737 | class NetworkFrontend {
|
738 | requestWillBeSent(requestId: RequestId, frameId: FrameId, loaderId: LoaderId, documentURL: string, request: Request, timestamp: Timestamp, initiator: Initiator, redirectResponse?: Response, type?: PageDomain.ResourceType): void;
|
739 | requestServedFromCache(requestId: RequestId): void;
|
740 | responseReceived(requestId: RequestId, frameId: FrameId, loaderId: LoaderId, timestamp: Timestamp, type: PageDomain.ResourceType, response: Response): void;
|
741 | dataReceived(requestId: RequestId, timestamp: Timestamp, dataLength: number, encodedDataLength: number): void;
|
742 | loadingFinished(requestId: RequestId, timestamp: Timestamp, sourceMapURL?: string): void;
|
743 | loadingFailed(requestId: RequestId, timestamp: Timestamp, errorText: string, canceled?: boolean): void;
|
744 | requestServedFromMemoryCache(requestId: RequestId, frameId: FrameId, loaderId: LoaderId, documentURL: string, timestamp: Timestamp, initiator: Initiator, resource: CachedResource): void;
|
745 | webSocketWillSendHandshakeRequest(requestId: RequestId, timestamp: Timestamp, request: WebSocketRequest): void;
|
746 | webSocketHandshakeResponseReceived(requestId: RequestId, timestamp: Timestamp, response: WebSocketResponse): void;
|
747 | webSocketCreated(requestId: RequestId, url: string): void;
|
748 | webSocketClosed(requestId: RequestId, timestamp: Timestamp): void;
|
749 | webSocketFrameReceived(requestId: RequestId, timestamp: Timestamp, response: WebSocketFrame): void;
|
750 | webSocketFrameError(requestId: RequestId, timestamp: Timestamp, errorMessage: string): void;
|
751 | webSocketFrameSent(requestId: RequestId, timestamp: Timestamp, response: WebSocketFrame): void;
|
752 | }
|
753 | }
|
754 | export declare namespace DOMDomain {
|
755 | type NodeId = number;
|
756 | type BackendNodeId = number;
|
757 | interface Node {
|
758 | nodeId: NodeId;
|
759 | nodeType: number;
|
760 | nodeName: string;
|
761 | localName: string;
|
762 | nodeValue: string;
|
763 | childNodeCount?: number;
|
764 | children?: Node[];
|
765 | attributes?: string[];
|
766 | documentURL?: string;
|
767 | baseURL?: string;
|
768 | publicId?: string;
|
769 | systemId?: string;
|
770 | xmlVersion?: string;
|
771 | name?: string;
|
772 | value?: string;
|
773 | pseudoType?: PseudoType;
|
774 | shadowRootType?: ShadowRootType;
|
775 | frameId?: NetworkDomain.FrameId;
|
776 | contentDocument?: Node;
|
777 | shadowRoots?: Node[];
|
778 | templateContent?: Node;
|
779 | pseudoElements?: Node[];
|
780 | role?: string;
|
781 | contentSecurityPolicyHash?: string;
|
782 | }
|
783 | interface RGBAColor {
|
784 | r: number;
|
785 | g: number;
|
786 | b: number;
|
787 | a?: number;
|
788 | }
|
789 | interface HighlightConfig {
|
790 | showInfo?: boolean;
|
791 | contentColor?: RGBAColor;
|
792 | paddingColor?: RGBAColor;
|
793 | borderColor?: RGBAColor;
|
794 | marginColor?: RGBAColor;
|
795 | }
|
796 | const enum PseudoType {
|
797 | Before = 0,
|
798 | After = 1
|
799 | }
|
800 | const enum ShadowRootType {
|
801 | UserAgent = 0,
|
802 | Open = 1,
|
803 | Closed = 2
|
804 | }
|
805 | const enum LiveRegionRelevant {
|
806 | Additions = 0,
|
807 | Removals = 1,
|
808 | Text = 2
|
809 | }
|
810 | interface RemoveNodeMethodArguments {
|
811 | nodeId: NodeId;
|
812 | }
|
813 | interface SetAttributeValueMethodArguments {
|
814 | nodeId: NodeId;
|
815 | name: string;
|
816 | value: string;
|
817 | }
|
818 | interface SetAttributesAsTextMethodArguments {
|
819 | nodeId: NodeId;
|
820 | text: string;
|
821 | name?: string;
|
822 | }
|
823 | interface RemoveAttributeMethodArguments {
|
824 | nodeId: NodeId;
|
825 | name: string;
|
826 | }
|
827 | interface PerformSearchMethodArguments {
|
828 | query: string;
|
829 | nodeIds?: NodeId[];
|
830 | }
|
831 | interface GetSearchResultsMethodArguments {
|
832 | searchId: string;
|
833 | fromIndex: number;
|
834 | toIndex: number;
|
835 | }
|
836 | interface DiscardSearchResultsMethodArguments {
|
837 | searchId: string;
|
838 | }
|
839 | interface HighlightNodeMethodArguments {
|
840 | highlightConfig: HighlightConfig;
|
841 | nodeId?: NodeId;
|
842 | objectId?: RuntimeDomain.RemoteObjectId;
|
843 | }
|
844 | interface ResolveNodeMethodArguments {
|
845 | nodeId: NodeId;
|
846 | objectGroup?: string;
|
847 | }
|
848 | interface DOMDomainDispatcher {
|
849 | enable(): void;
|
850 | disable(): void;
|
851 | getDocument(): {
|
852 | root: Node;
|
853 | };
|
854 | removeNode(params: RemoveNodeMethodArguments): void;
|
855 | setAttributeValue(params: SetAttributeValueMethodArguments): void;
|
856 | setAttributesAsText(params: SetAttributesAsTextMethodArguments): void;
|
857 | removeAttribute(params: RemoveAttributeMethodArguments): void;
|
858 | performSearch(params: PerformSearchMethodArguments): {
|
859 | searchId: string;
|
860 | resultCount: number;
|
861 | };
|
862 | getSearchResults(params: GetSearchResultsMethodArguments): {
|
863 | nodeIds: NodeId[];
|
864 | };
|
865 | discardSearchResults(params: DiscardSearchResultsMethodArguments): void;
|
866 | highlightNode(params: HighlightNodeMethodArguments): void;
|
867 | hideHighlight(): void;
|
868 | resolveNode(params: ResolveNodeMethodArguments): {
|
869 | object: RuntimeDomain.RemoteObject;
|
870 | };
|
871 | }
|
872 | class DOMFrontend {
|
873 | documentUpdated(): void;
|
874 | setChildNodes(parentId: NodeId, nodes: Node[]): void;
|
875 | attributeModified(nodeId: NodeId, name: string, value: string): void;
|
876 | attributeRemoved(nodeId: NodeId, name: string): void;
|
877 | inlineStyleInvalidated(nodeIds: NodeId[]): void;
|
878 | characterDataModified(nodeId: NodeId, characterData: string): void;
|
879 | childNodeCountUpdated(nodeId: NodeId, childNodeCount: number): void;
|
880 | childNodeInserted(parentNodeId: NodeId, previousNodeId: NodeId, node: Node): void;
|
881 | childNodeRemoved(parentNodeId: NodeId, nodeId: NodeId): void;
|
882 | shadowRootPushed(hostId: NodeId, root: Node): void;
|
883 | shadowRootPopped(hostId: NodeId, rootId: NodeId): void;
|
884 | pseudoElementAdded(parentId: NodeId, pseudoElement: Node): void;
|
885 | pseudoElementRemoved(parentId: NodeId, pseudoElementId: NodeId): void;
|
886 | }
|
887 | }
|
888 | export declare namespace CSSDomain {
|
889 | type StyleSheetId = string;
|
890 | interface PseudoElementMatches {
|
891 | pseudoType: DOMDomain.PseudoType;
|
892 | matches: RuleMatch[];
|
893 | }
|
894 | interface InheritedStyleEntry {
|
895 | inlineStyle?: CSSStyle;
|
896 | matchedCSSRules: RuleMatch[];
|
897 | }
|
898 | interface RuleMatch {
|
899 | rule: CSSRule;
|
900 | matchingSelectors: number[];
|
901 | }
|
902 | interface Value {
|
903 | text: string;
|
904 | range?: SourceRange;
|
905 | }
|
906 | interface SelectorList {
|
907 | selectors: Value[];
|
908 | text: string;
|
909 | }
|
910 | interface CSSStyleSheetHeader {
|
911 | styleSheetId: StyleSheetId;
|
912 | frameId: string;
|
913 | sourceURL: string;
|
914 | sourceMapURL?: string;
|
915 | origin: StyleSheetOrigin;
|
916 | title: string;
|
917 | ownerNode?: DOMDomain.BackendNodeId;
|
918 | disabled: boolean;
|
919 | hasSourceURL?: boolean;
|
920 | isInline: boolean;
|
921 | startLine: number;
|
922 | startColumn: number;
|
923 | }
|
924 | interface CSSRule {
|
925 | styleSheetId?: StyleSheetId;
|
926 | selectorList: SelectorList;
|
927 | origin: StyleSheetOrigin;
|
928 | style: CSSStyle;
|
929 | media?: CSSMedia[];
|
930 | }
|
931 | interface SourceRange {
|
932 | startLine: number;
|
933 | startColumn: number;
|
934 | endLine: number;
|
935 | endColumn: number;
|
936 | }
|
937 | interface ShorthandEntry {
|
938 | name: string;
|
939 | value: string;
|
940 | important?: boolean;
|
941 | }
|
942 | interface CSSComputedStyleProperty {
|
943 | name: string;
|
944 | value: string;
|
945 | }
|
946 | interface CSSStyle {
|
947 | styleSheetId?: StyleSheetId;
|
948 | cssProperties: CSSProperty[];
|
949 | shorthandEntries: ShorthandEntry[];
|
950 | cssText?: string;
|
951 | range?: SourceRange;
|
952 | }
|
953 | interface CSSProperty {
|
954 | name: string;
|
955 | value: string;
|
956 | important?: boolean;
|
957 | implicit?: boolean;
|
958 | text?: string;
|
959 | parsedOk?: boolean;
|
960 | disabled?: boolean;
|
961 | range?: SourceRange;
|
962 | }
|
963 | interface CSSMedia {
|
964 | text: string;
|
965 | source: any;
|
966 | sourceURL?: string;
|
967 | range?: SourceRange;
|
968 | styleSheetId?: StyleSheetId;
|
969 | mediaList?: MediaQuery[];
|
970 | }
|
971 | interface MediaQuery {
|
972 | expressions: MediaQueryExpression[];
|
973 | active: boolean;
|
974 | }
|
975 | interface MediaQueryExpression {
|
976 | value: number;
|
977 | unit: string;
|
978 | feature: string;
|
979 | valueRange?: SourceRange;
|
980 | computedLength?: number;
|
981 | }
|
982 | interface PlatformFontUsage {
|
983 | familyName: string;
|
984 | isCustomFont: boolean;
|
985 | glyphCount: number;
|
986 | }
|
987 | interface CSSKeyframesRule {
|
988 | animationName: Value;
|
989 | keyframes: CSSKeyframeRule[];
|
990 | }
|
991 | interface CSSKeyframeRule {
|
992 | styleSheetId?: StyleSheetId;
|
993 | origin: StyleSheetOrigin;
|
994 | keyText: Value;
|
995 | style: CSSStyle;
|
996 | }
|
997 | interface StyleDeclarationEdit {
|
998 | styleSheetId: StyleSheetId;
|
999 | range: SourceRange;
|
1000 | text: string;
|
1001 | }
|
1002 | const enum StyleSheetOrigin {
|
1003 | Injected = 0,
|
1004 | UserAgent = 1,
|
1005 | Inspector = 2,
|
1006 | Regular = 3
|
1007 | }
|
1008 | interface GetMatchedStylesForNodeMethodArguments {
|
1009 | nodeId: DOMDomain.NodeId;
|
1010 | }
|
1011 | interface GetInlineStylesForNodeMethodArguments {
|
1012 | nodeId: DOMDomain.NodeId;
|
1013 | }
|
1014 | interface GetComputedStyleForNodeMethodArguments {
|
1015 | nodeId: DOMDomain.NodeId;
|
1016 | }
|
1017 | interface GetPlatformFontsForNodeMethodArguments {
|
1018 | nodeId: DOMDomain.NodeId;
|
1019 | }
|
1020 | interface GetStyleSheetTextMethodArguments {
|
1021 | styleSheetId: StyleSheetId;
|
1022 | }
|
1023 | interface CSSDomainDispatcher {
|
1024 | enable(): void;
|
1025 | disable(): void;
|
1026 | getMatchedStylesForNode(params: GetMatchedStylesForNodeMethodArguments): {
|
1027 | inlineStyle?: CSSStyle;
|
1028 | attributesStyle?: CSSStyle;
|
1029 | matchedCSSRules?: RuleMatch[];
|
1030 | pseudoElements?: PseudoElementMatches[];
|
1031 | inherited?: InheritedStyleEntry[];
|
1032 | cssKeyframesRules?: CSSKeyframesRule[];
|
1033 | };
|
1034 | getInlineStylesForNode(params: GetInlineStylesForNodeMethodArguments): {
|
1035 | inlineStyle?: CSSStyle;
|
1036 | attributesStyle?: CSSStyle;
|
1037 | };
|
1038 | getComputedStyleForNode(params: GetComputedStyleForNodeMethodArguments): {
|
1039 | computedStyle: CSSComputedStyleProperty[];
|
1040 | };
|
1041 | getPlatformFontsForNode(params: GetPlatformFontsForNodeMethodArguments): {
|
1042 | fonts: PlatformFontUsage[];
|
1043 | };
|
1044 | getStyleSheetText(params: GetStyleSheetTextMethodArguments): {
|
1045 | text: string;
|
1046 | };
|
1047 | }
|
1048 | class CSSFrontend {
|
1049 | mediaQueryResultChanged(): void;
|
1050 | fontsUpdated(): void;
|
1051 | styleSheetChanged(styleSheetId: StyleSheetId): void;
|
1052 | styleSheetAdded(header: CSSStyleSheetHeader): void;
|
1053 | styleSheetRemoved(styleSheetId: StyleSheetId): void;
|
1054 | layoutEditorChange(styleSheetId: StyleSheetId, changeRange: SourceRange): void;
|
1055 | }
|
1056 | }
|