UNPKG

1.79 kBTypeScriptView Raw
1import * as inspectorCommandTypes from './InspectorBackendCommands';
2export declare class CSSDomainDebugger implements inspectorCommandTypes.CSSDomain.CSSDomainDispatcher {
3 private _enabled;
4 events: inspectorCommandTypes.CSSDomain.CSSFrontend;
5 commands: any;
6 constructor();
7 get enabled(): boolean;
8 enable(): void;
9 /**
10 * Disables network tracking, prevents network events from being sent to the client.
11 */
12 disable(): void;
13 getMatchedStylesForNode(params: inspectorCommandTypes.CSSDomain.GetMatchedStylesForNodeMethodArguments): {
14 inlineStyle?: inspectorCommandTypes.CSSDomain.CSSStyle;
15 attributesStyle?: inspectorCommandTypes.CSSDomain.CSSStyle;
16 matchedCSSRules?: inspectorCommandTypes.CSSDomain.RuleMatch[];
17 pseudoElements?: inspectorCommandTypes.CSSDomain.PseudoElementMatches[];
18 inherited?: inspectorCommandTypes.CSSDomain.InheritedStyleEntry[];
19 cssKeyframesRules?: inspectorCommandTypes.CSSDomain.CSSKeyframesRule[];
20 };
21 getInlineStylesForNode(params: inspectorCommandTypes.CSSDomain.GetInlineStylesForNodeMethodArguments): {
22 inlineStyle?: inspectorCommandTypes.CSSDomain.CSSStyle;
23 attributesStyle?: inspectorCommandTypes.CSSDomain.CSSStyle;
24 };
25 getComputedStyleForNode(params: inspectorCommandTypes.CSSDomain.GetComputedStyleForNodeMethodArguments): {
26 computedStyle: inspectorCommandTypes.CSSDomain.CSSComputedStyleProperty[];
27 };
28 getPlatformFontsForNode(params: inspectorCommandTypes.CSSDomain.GetPlatformFontsForNodeMethodArguments): {
29 fonts: inspectorCommandTypes.CSSDomain.PlatformFontUsage[];
30 };
31 getStyleSheetText(params: inspectorCommandTypes.CSSDomain.GetStyleSheetTextMethodArguments): {
32 text: string;
33 };
34}