declare namespace ProtocolIOS90 { type integer = number namespace ApplicationCache { /** * Detailed application cache resource information. */ interface ApplicationCacheResource { /** * Resource url. */ url: string; /** * Resource size. */ size: integer; /** * Resource type. */ type: string; } /** * Detailed application cache information. */ interface ApplicationCache { /** * Manifest URL. */ manifestURL: string; /** * Application cache size. */ size: number; /** * Application cache creation time. */ creationTime: number; /** * Application cache update time. */ updateTime: number; /** * Application cache resources. */ resources: ApplicationCacheResource[]; } /** * Frame identifier - manifest URL pair. */ interface FrameWithManifest { /** * Frame identifier. */ frameId: Network.FrameId; /** * Manifest URL. */ manifestURL: string; /** * Application cache status. */ status: integer; } interface GetFramesWithManifestsResponse { /** * Array of frame identifiers with manifest urls for each frame containing a document associated with some application cache. */ frameIds: FrameWithManifest[]; } interface GetManifestForFrameRequest { /** * Identifier of the frame containing document whose manifest is retrieved. */ frameId: Network.FrameId; } interface GetManifestForFrameResponse { /** * Manifest URL for document in the given frame. */ manifestURL: string; } interface GetApplicationCacheForFrameRequest { /** * Identifier of the frame containing document whose application cache is retrieved. */ frameId: Network.FrameId; } interface GetApplicationCacheForFrameResponse { /** * Relevant application cache data for the document in given frame. */ applicationCache: ApplicationCache; } interface ApplicationCacheStatusUpdatedEvent { /** * Identifier of the frame containing document whose application cache updated status. */ frameId: Network.FrameId; /** * Manifest URL. */ manifestURL: string; /** * Updated application cache status. */ status: integer; } interface NetworkStateUpdatedEvent { isNowOnline: boolean; } } /** * This domain exposes CSS read/write operations. All CSS objects, like stylesheets, rules, and styles, have an associated id used in subsequent operations on the related object. Each object type has a specific id structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the get*ForNode() calls (which accept a DOM node id). Alternatively, a client can discover all the existing stylesheets with the getAllStyleSheets() method and subsequently load the required stylesheet contents using the getStyleSheet[Text]() methods. */ namespace CSS { type StyleSheetId = string; /** * This object identifies a CSS style in a unique way. */ interface CSSStyleId { /** * Enclosing stylesheet identifier. */ styleSheetId: StyleSheetId; /** * The style ordinal within the stylesheet. */ ordinal: integer; } /** * Stylesheet type: "user" for user stylesheets, "user-agent" for user-agent stylesheets, "inspector" for stylesheets created by the inspector (i.e. those holding the "via inspector" rules), "regular" for regular stylesheets. */ enum StyleSheetOrigin { User = 'user', UserAgent = 'user-agent', Inspector = 'inspector', Regular = 'regular', } /** * This object identifies a CSS rule in a unique way. */ interface CSSRuleId { /** * Enclosing stylesheet identifier. */ styleSheetId: StyleSheetId; /** * The rule ordinal within the stylesheet. */ ordinal: integer; } /** * CSS rule collection for a single pseudo style. */ interface PseudoIdMatches { /** * Pseudo style identifier (see enum PseudoId in RenderStyleConstants.h). */ pseudoId: integer; /** * Matches of CSS rules applicable to the pseudo style. */ matches: RuleMatch[]; } /** * CSS rule collection for a single pseudo style. */ interface InheritedStyleEntry { /** * The ancestor node's inline style, if any, in the style inheritance chain. */ inlineStyle?: CSSStyle; /** * Matches of CSS rules matching the ancestor node in the style inheritance chain. */ matchedCSSRules: RuleMatch[]; } /** * Match data for a CSS rule. */ interface RuleMatch { /** * CSS rule in the match. */ rule: CSSRule; /** * Matching selector indices in the rule's selectorList selectors (0-based). */ matchingSelectors: integer[]; } /** * CSS selector. */ interface CSSSelector { /** * Canonicalized selector text. */ text: string; /** * Specificity (a, b, c) tuple. Included if the selector is sent in response to CSS.getMatchedStylesForNode which provides a context element. */ specificity?: integer[]; /** * Whether or not the specificity can be dynamic. Included if the selector is sent in response to CSS.getMatchedStylesForNode which provides a context element. */ dynamic?: boolean; } /** * Selector list data. */ interface SelectorList { /** * Selectors in the list. */ selectors: CSSSelector[]; /** * Rule selector text. */ text: string; /** * Rule selector range in the underlying resource (if available). */ range?: SourceRange; } /** * CSS style information for a DOM style attribute. */ interface CSSStyleAttribute { /** * DOM attribute name (e.g. "width"). */ name: string; /** * CSS style generated by the respective DOM attribute. */ style: CSSStyle; } /** * CSS stylesheet metainformation. */ interface CSSStyleSheetHeader { /** * The stylesheet identifier. */ styleSheetId: StyleSheetId; /** * Owner frame identifier. */ frameId: Network.FrameId; /** * Stylesheet resource URL. */ sourceURL: string; /** * Stylesheet origin. */ origin: StyleSheetOrigin; /** * Stylesheet title. */ title: string; /** * Denotes whether the stylesheet is disabled. */ disabled: boolean; } /** * CSS stylesheet contents. */ interface CSSStyleSheetBody { /** * The stylesheet identifier. */ styleSheetId: StyleSheetId; /** * Stylesheet resource URL. */ rules: CSSRule[]; /** * Stylesheet resource contents (if available). */ text?: string; } /** * CSS rule representation. */ interface CSSRule { /** * The CSS rule identifier (absent for user agent stylesheet and user-specified stylesheet rules). */ ruleId?: CSSRuleId; /** * Rule selector data. */ selectorList: SelectorList; /** * Parent stylesheet resource URL (for regular rules). */ sourceURL?: string; /** * Line ordinal of the rule selector start character in the resource. */ sourceLine: integer; /** * Parent stylesheet's origin. */ origin: StyleSheetOrigin; /** * Associated style declaration. */ style: CSSStyle; /** * Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards. */ media?: CSSMedia[]; } /** * Text range within a resource. */ interface SourceRange { /** * Start line of range. */ startLine: integer; /** * Start column of range (inclusive). */ startColumn: integer; /** * End line of range */ endLine: integer; /** * End column of range (exclusive). */ endColumn: integer; } interface ShorthandEntry { /** * Shorthand name. */ name: string; /** * Shorthand value. */ value: string; } interface CSSPropertyInfo { /** * Property name. */ name: string; /** * Longhand property names. */ longhands?: string[]; /** * Supported values for this property. */ values?: string[]; } interface CSSComputedStyleProperty { /** * Computed style property name. */ name: string; /** * Computed style property value. */ value: string; } /** * CSS style representation. */ interface CSSStyle { /** * The CSS style identifier (absent for attribute styles). */ styleId?: CSSStyleId; /** * CSS properties in the style. */ cssProperties: CSSProperty[]; /** * Computed values for all shorthands found in the style. */ shorthandEntries: ShorthandEntry[]; /** * Style declaration text (if available). */ cssText?: string; /** * Style declaration range in the enclosing stylesheet (if available). */ range?: SourceRange; /** * The effective "width" property value from this style. */ width?: string; /** * The effective "height" property value from this style. */ height?: string; } /** * The property status: "active" if the property is effective in the style, "inactive" if the property is overridden by a same-named property in this style later on, "disabled" if the property is disabled by the user, "style" (implied if absent) if the property is reported by the browser rather than by the CSS source parser. */ enum CSSPropertyStatus { Active = 'active', Inactive = 'inactive', Disabled = 'disabled', Style = 'style', } /** * CSS style effective visual dimensions and source offsets. */ interface CSSProperty { /** * The property name. */ name: string; /** * The property value. */ value: string; /** * The property priority (implies "" if absent). */ priority?: string; /** * Whether the property is implicit (implies false if absent). */ implicit?: boolean; /** * The full property text as specified in the style. */ text?: string; /** * Whether the property is understood by the browser (implies true if absent). */ parsedOk?: boolean; /** * Whether the property is active or disabled. */ status?: CSSPropertyStatus; /** * The entire property range in the enclosing style declaration (if available). */ range?: SourceRange; } enum CSSMediaSource { MediaRule = 'mediaRule', ImportRule = 'importRule', LinkedSheet = 'linkedSheet', InlineSheet = 'inlineSheet', } /** * CSS media query descriptor. */ interface CSSMedia { /** * Media query text. */ text: string; /** * Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline stylesheet's STYLE tag. (CSSMediaSource enum) */ source: ('mediaRule' | 'importRule' | 'linkedSheet' | 'inlineSheet'); /** * URL of the document containing the media query description. */ sourceURL?: string; /** * Line in the document containing the media query (not defined for the "stylesheet" source). */ sourceLine?: integer; } enum RegionRegionOverset { Overset = 'overset', Fit = 'fit', Empty = 'empty', } /** * This object represents a region that flows from a Named Flow. */ interface Region { /** * The "overset" attribute of a Named Flow. (RegionRegionOverset enum) */ regionOverset: ('overset' | 'fit' | 'empty'); /** * The corresponding DOM node id. */ nodeId: DOM.NodeId; } /** * This object represents a Named Flow. */ interface NamedFlow { /** * The document node id. */ documentNodeId: DOM.NodeId; /** * Named Flow identifier. */ name: string; /** * The "overset" attribute of a Named Flow. */ overset: boolean; /** * An array of nodes that flow into the Named Flow. */ content: DOM.NodeId[]; /** * An array of regions associated with the Named Flow. */ regions: Region[]; } interface GetMatchedStylesForNodeRequest { nodeId: DOM.NodeId; /** * Whether to include pseudo styles (default: true). */ includePseudo?: boolean; /** * Whether to include inherited styles (default: true). */ includeInherited?: boolean; } interface GetMatchedStylesForNodeResponse { /** * CSS rules matching this node, from all applicable stylesheets. */ matchedCSSRules?: RuleMatch[]; /** * Pseudo style matches for this node. */ pseudoElements?: PseudoIdMatches[]; /** * A chain of inherited styles (from the immediate node parent up to the DOM tree root). */ inherited?: InheritedStyleEntry[]; } interface GetInlineStylesForNodeRequest { nodeId: DOM.NodeId; } interface GetInlineStylesForNodeResponse { /** * Inline style for the specified DOM node. */ inlineStyle?: CSSStyle; /** * Attribute-defined element style (e.g. resulting from "width=20 height=100%"). */ attributesStyle?: CSSStyle; } interface GetComputedStyleForNodeRequest { nodeId: DOM.NodeId; } interface GetComputedStyleForNodeResponse { /** * Computed style for the specified DOM node. */ computedStyle: CSSComputedStyleProperty[]; } interface GetAllStyleSheetsResponse { /** * Descriptor entries for all available stylesheets. */ headers: CSSStyleSheetHeader[]; } interface GetStyleSheetRequest { styleSheetId: StyleSheetId; } interface GetStyleSheetResponse { /** * Stylesheet contents for the specified styleSheetId. */ styleSheet: CSSStyleSheetBody; } interface GetStyleSheetTextRequest { styleSheetId: StyleSheetId; } interface GetStyleSheetTextResponse { /** * The stylesheet text. */ text: string; } interface SetStyleSheetTextRequest { styleSheetId: StyleSheetId; text: string; } interface SetStyleTextRequest { styleId: CSSStyleId; text: string; } interface SetStyleTextResponse { /** * The resulting style after the text modification. */ style: CSSStyle; } interface SetRuleSelectorRequest { ruleId: CSSRuleId; selector: string; } interface SetRuleSelectorResponse { /** * The resulting rule after the selector modification. */ rule: CSSRule; } interface AddRuleRequest { contextNodeId: DOM.NodeId; selector: string; } interface AddRuleResponse { /** * The newly created rule. */ rule: CSSRule; } interface GetSupportedCSSPropertiesResponse { /** * Supported property metainfo. */ cssProperties: CSSPropertyInfo[]; } interface ForcePseudoStateRequest { /** * The element id for which to force the pseudo state. */ nodeId: DOM.NodeId; /** * Element pseudo classes to force when computing the element's style. */ forcedPseudoClasses: ('active' | 'focus' | 'hover' | 'visited')[]; } interface GetNamedFlowCollectionRequest { /** * The document node id for which to get the Named Flow Collection. */ documentNodeId: DOM.NodeId; } interface GetNamedFlowCollectionResponse { /** * An array containing the Named Flows in the document. */ namedFlows: NamedFlow[]; } /** * Fired whenever a stylesheet is changed as a result of the client operation. */ interface StyleSheetChangedEvent { styleSheetId: StyleSheetId; } /** * Fires when a Named Flow is created. */ interface NamedFlowCreatedEvent { /** * The new Named Flow. */ namedFlow: NamedFlow; } /** * Fires when a Named Flow is removed: has no associated content nodes and regions. */ interface NamedFlowRemovedEvent { /** * The document node id. */ documentNodeId: DOM.NodeId; /** * Identifier of the removed Named Flow. */ flowName: string; } /** * Fires if any of the regionOverset values changed in a Named Flow's region chain. */ interface RegionOversetChangedEvent { /** * The Named Flow containing the regions whose regionOverset values changed. */ namedFlow: NamedFlow; } /** * Fires when a Named Flow's has been registered with a new content node. */ interface RegisteredNamedFlowContentElementEvent { /** * The document node id. */ documentNodeId: DOM.NodeId; /** * Named Flow identifier for which the new content element was registered. */ flowName: string; /** * The node id of the registered content node. */ contentNodeId: DOM.NodeId; /** * The node id of the element following the registered content node. */ nextContentNodeId: DOM.NodeId; } /** * Fires when a Named Flow's has been registered with a new content node. */ interface UnregisteredNamedFlowContentElementEvent { /** * The document node id. */ documentNodeId: DOM.NodeId; /** * Named Flow identifier for which the new content element was unregistered. */ flowName: string; /** * The node id of the unregistered content node. */ contentNodeId: DOM.NodeId; } } /** * Console domain defines methods and events for interaction with the JavaScript console. Console collects messages created by means of the JavaScript Console API. One needs to enable this domain using enable command in order to start receiving the console messages. Browser collects messages issued while console domain is not enabled as well and reports them using messageAdded notification upon enabling. */ namespace Console { enum ConsoleMessageSource { XML = 'xml', Javascript = 'javascript', Network = 'network', ConsoleAPI = 'console-api', Storage = 'storage', Appcache = 'appcache', Rendering = 'rendering', Css = 'css', Security = 'security', ContentBlocker = 'content-blocker', Other = 'other', } enum ConsoleMessageLevel { Log = 'log', Info = 'info', Warning = 'warning', Error = 'error', Debug = 'debug', } enum ConsoleMessageType { Log = 'log', Dir = 'dir', DirXML = 'dirxml', Table = 'table', Trace = 'trace', Clear = 'clear', StartGroup = 'startGroup', StartGroupCollapsed = 'startGroupCollapsed', EndGroup = 'endGroup', Assert = 'assert', Timing = 'timing', Profile = 'profile', ProfileEnd = 'profileEnd', } /** * Console message. */ interface ConsoleMessage { /** * Message source. (ConsoleMessageSource enum) */ source: ('xml' | 'javascript' | 'network' | 'console-api' | 'storage' | 'appcache' | 'rendering' | 'css' | 'security' | 'content-blocker' | 'other'); /** * Message severity. (ConsoleMessageLevel enum) */ level: ('log' | 'info' | 'warning' | 'error' | 'debug'); /** * Message text. */ text: string; /** * Console message type. (ConsoleMessageType enum) */ type?: ('log' | 'dir' | 'dirxml' | 'table' | 'trace' | 'clear' | 'startGroup' | 'startGroupCollapsed' | 'endGroup' | 'assert' | 'timing' | 'profile' | 'profileEnd'); /** * URL of the message origin. */ url?: string; /** * Line number in the resource that generated this message. */ line?: integer; /** * Column number on the line in the resource that generated this message. */ column?: integer; /** * Repeat count for repeated messages. */ repeatCount?: integer; /** * Message parameters in case of the formatted message. */ parameters?: Runtime.RemoteObject[]; /** * JavaScript stack trace for assertions and error messages. */ stackTrace?: StackTrace; /** * Identifier of the network request associated with this message. */ networkRequestId?: Network.RequestId; } /** * Stack entry for console errors and assertions. */ interface CallFrame { /** * JavaScript function name. */ functionName: string; /** * JavaScript script name or url. */ url: string; /** * JavaScript script line number. */ lineNumber: integer; /** * JavaScript script column number. */ columnNumber: integer; } /** * Call frames for assertions or error messages. */ type StackTrace = CallFrame[]; interface SetMonitoringXHREnabledRequest { /** * Monitoring enabled state. */ enabled: boolean; } interface AddInspectedNodeRequest { /** * DOM node id to be accessible by means of $x command line API. */ nodeId: DOM.NodeId; } /** * Issued when new console message is added. */ interface MessageAddedEvent { /** * Console message that has been added. */ message: ConsoleMessage; } /** * Issued when subsequent message(s) are equal to the previous one(s). */ interface MessageRepeatCountUpdatedEvent { /** * New repeat count value. */ count: integer; } } /** * This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an id. This id can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.

Note that iframe owner elements will return corresponding document elements as their child nodes.

*/ namespace DOM { /** * Unique DOM node identifier. */ type NodeId = integer; /** * Unique DOM node identifier used to reference a node that may not have been pushed to the front-end. */ type BackendNodeId = integer; /** * Token values of @aria-relevant attribute. */ enum LiveRegionRelevant { Additions = 'additions', Removals = 'removals', Text = 'text', } /** * DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type. */ interface Node { /** * Node identifier that is passed into the rest of the DOM messages as the nodeId. Backend will only push node with given id once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client. */ nodeId: NodeId; /** * Node's nodeType. */ nodeType: integer; /** * Node's nodeName. */ nodeName: string; /** * Node's localName. */ localName: string; /** * Node's nodeValue. */ nodeValue: string; /** * Child count for Container nodes. */ childNodeCount?: integer; /** * Child nodes of this node when requested with children. */ children?: Node[]; /** * Attributes of the Element node in the form of flat array [name1, value1, name2, value2]. */ attributes?: string[]; /** * Document URL that Document or FrameOwner node points to. */ documentURL?: string; /** * Base URL that Document or FrameOwner node uses for URL completion. */ baseURL?: string; /** * DocumentType's publicId. */ publicId?: string; /** * DocumentType's systemId. */ systemId?: string; /** * DocumentType's internalSubset. */ internalSubset?: string; /** * Document's XML version in case of XML documents. */ xmlVersion?: string; /** * Attr's name. */ name?: string; /** * Attr's value. */ value?: string; /** * Frame ID for frame owner elements. */ frameId?: Network.FrameId; /** * Content document for frame owner elements. */ contentDocument?: Node; /** * Shadow root list for given element host. */ shadowRoots?: Node[]; /** * Content document fragment for template elements */ templateContent?: Node; /** * Computed value for first recognized role token, default role per element, or overridden role. */ role?: string; } /** * A structure holding event listener properties. */ interface EventListener { /** * EventListener's type. */ type: string; /** * EventListener's useCapture. */ useCapture: boolean; /** * EventListener's isAttribute. */ isAttribute: boolean; /** * Target DOMNode id. */ nodeId: NodeId; /** * Event handler function body. */ handlerBody: string; /** * Handler code location. */ location?: Debugger.Location; /** * Source script URL. */ sourceName?: string; /** * Event handler function value. */ handler?: Runtime.RemoteObject; } enum AccessibilityPropertiesChecked { True = 'true', False = 'false', Mixed = 'mixed', } enum AccessibilityPropertiesInvalid { True = 'true', False = 'false', Grammar = 'grammar', Spelling = 'spelling', } enum AccessibilityPropertiesLiveRegionStatus { Assertive = 'assertive', Polite = 'polite', Off = 'off', } /** * A structure holding accessibility properties. */ interface AccessibilityProperties { /** * DOMNode id of the accessibility object referenced by aria-activedescendant. */ activeDescendantNodeId?: NodeId; /** * Value of @aria-busy on current or ancestor node. */ busy?: boolean; /** * Checked state of certain form controls. (AccessibilityPropertiesChecked enum) */ checked?: ('true' | 'false' | 'mixed'); /** * Array of DOMNode ids of the accessibility tree children if available. */ childNodeIds?: NodeId[]; /** * Array of DOMNode ids of any nodes referenced via @aria-controls. */ controlledNodeIds?: NodeId[]; /** * Disabled state of form controls. */ disabled?: boolean; /** * Indicates whether there is an existing AX object for the DOM node. If this is false, all the other properties will be default values. */ exists: boolean; /** * Expanded state. */ expanded?: boolean; /** * Array of DOMNode ids of any nodes referenced via @aria-flowto. */ flowedNodeIds?: NodeId[]; /** * Focused state. Only defined on focusable elements. */ focused?: boolean; /** * Indicates whether the accessibility of the associated AX object node is ignored, whether heuristically or explicitly. */ ignored?: boolean; /** * State indicating whether the accessibility of the associated AX object node is ignored by default for node type. */ ignoredByDefault?: boolean; /** * Invalid status of form controls. (AccessibilityPropertiesInvalid enum) */ invalid?: ('true' | 'false' | 'grammar' | 'spelling'); /** * Hidden state. True if node or an ancestor is hidden via CSS or explicit @aria-hidden, to clarify why the element is ignored. */ hidden?: boolean; /** * Computed label value for the node, sometimes calculated by referencing other nodes. */ label: string; /** * Value of @aria-atomic. */ liveRegionAtomic?: boolean; /** * Token value(s) of element's @aria-relevant attribute. Array of string values matching $ref LiveRegionRelevant. FIXME: Enum values blocked by http://webkit.org/b/133711 */ liveRegionRelevant?: string[]; /** * Value of element's @aria-live attribute. (AccessibilityPropertiesLiveRegionStatus enum) */ liveRegionStatus?: ('assertive' | 'polite' | 'off'); /** * DOMNode id of node or closest ancestor node that has a mousedown, mouseup, or click event handler. */ mouseEventNodeId?: NodeId; /** * Target DOMNode id. */ nodeId: NodeId; /** * Array of DOMNode ids of any nodes referenced via @aria-owns. */ ownedNodeIds?: NodeId[]; /** * DOMNode id of the accessibility tree parent object if available. */ parentNodeId?: NodeId; /** * Pressed state for toggle buttons. */ pressed?: boolean; /** * Readonly state of text controls. */ readonly?: boolean; /** * Required state of form controls. */ required?: boolean; /** * Computed value for first recognized role token, default role per element, or overridden role. */ role: string; /** * Selected state of certain form controls. */ selected?: boolean; /** * Array of DOMNode ids of any children marked as selected. */ selectedChildNodeIds?: NodeId[]; } /** * A structure holding an RGBA color. */ interface RGBAColor { /** * The red component, in the [0-255] range. */ r: integer; /** * The green component, in the [0-255] range. */ g: integer; /** * The blue component, in the [0-255] range. */ b: integer; /** * The alpha component, in the [0-1] range (default: 1). */ a?: number; } /** * An array of quad vertices, x immediately followed by y for each point, points clock-wise. */ type Quad = number[]; /** * Configuration data for the highlighting of page elements. */ interface HighlightConfig { /** * Whether the node info tooltip should be shown (default: false). */ showInfo?: boolean; /** * The content box highlight fill color (default: transparent). */ contentColor?: RGBAColor; /** * The padding highlight fill color (default: transparent). */ paddingColor?: RGBAColor; /** * The border highlight fill color (default: transparent). */ borderColor?: RGBAColor; /** * The margin highlight fill color (default: transparent). */ marginColor?: RGBAColor; } interface GetDocumentResponse { /** * Resulting node. */ root: Node; } interface RequestChildNodesRequest { /** * Id of the node to get children for. */ nodeId: NodeId; /** * The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0. */ depth?: integer; } interface QuerySelectorRequest { /** * Id of the node to query upon. */ nodeId: NodeId; /** * Selector string. */ selector: string; } interface QuerySelectorResponse { /** * Query selector result. */ nodeId: NodeId; } interface QuerySelectorAllRequest { /** * Id of the node to query upon. */ nodeId: NodeId; /** * Selector string. */ selector: string; } interface QuerySelectorAllResponse { /** * Query selector result. */ nodeIds: NodeId[]; } interface SetNodeNameRequest { /** * Id of the node to set name for. */ nodeId: NodeId; /** * New node's name. */ name: string; } interface SetNodeNameResponse { /** * New node's id. */ nodeId: NodeId; } interface SetNodeValueRequest { /** * Id of the node to set value for. */ nodeId: NodeId; /** * New node's value. */ value: string; } interface RemoveNodeRequest { /** * Id of the node to remove. */ nodeId: NodeId; } interface SetAttributeValueRequest { /** * Id of the element to set attribute for. */ nodeId: NodeId; /** * Attribute name. */ name: string; /** * Attribute value. */ value: string; } interface SetAttributesAsTextRequest { /** * Id of the element to set attributes for. */ nodeId: NodeId; /** * Text with a number of attributes. Will parse this text using HTML parser. */ text: string; /** * Attribute name to replace with new attributes derived from text in case text parsed successfully. */ name?: string; } interface RemoveAttributeRequest { /** * Id of the element to remove attribute from. */ nodeId: NodeId; /** * Name of the attribute to remove. */ name: string; } interface GetEventListenersForNodeRequest { /** * Id of the node to get listeners for. */ nodeId: NodeId; /** * Symbolic group name for handler value. Handler value is not returned without this parameter specified. */ objectGroup?: string; } interface GetEventListenersForNodeResponse { /** * Array of relevant listeners. */ listeners: EventListener[]; } interface GetAccessibilityPropertiesForNodeRequest { /** * Id of the node for which to get accessibility properties. */ nodeId: NodeId; } interface GetAccessibilityPropertiesForNodeResponse { /** * Dictionary of relevant accessibility properties. */ properties: AccessibilityProperties; } interface GetOuterHTMLRequest { /** * Id of the node to get markup for. */ nodeId: NodeId; } interface GetOuterHTMLResponse { /** * Outer HTML markup. */ outerHTML: string; } interface SetOuterHTMLRequest { /** * Id of the node to set markup for. */ nodeId: NodeId; /** * Outer HTML markup to set. */ outerHTML: string; } interface PerformSearchRequest { /** * Plain text or query selector or XPath search query. */ query: string; /** * Ids of nodes to use as starting points for the search. */ nodeIds?: NodeId[]; } interface PerformSearchResponse { /** * Unique search session identifier. */ searchId: string; /** * Number of search results. */ resultCount: integer; } interface GetSearchResultsRequest { /** * Unique search session identifier. */ searchId: string; /** * Start index of the search result to be returned. */ fromIndex: integer; /** * End index of the search result to be returned. */ toIndex: integer; } interface GetSearchResultsResponse { /** * Ids of the search result nodes. */ nodeIds: NodeId[]; } interface DiscardSearchResultsRequest { /** * Unique search session identifier. */ searchId: string; } interface RequestNodeRequest { /** * JavaScript object id to convert into node. */ objectId: Runtime.RemoteObjectId; } interface RequestNodeResponse { /** * Node id for given object. */ nodeId: NodeId; } interface SetInspectModeEnabledRequest { /** * True to enable inspection mode, false to disable it. */ enabled: boolean; /** * A descriptor for the highlight appearance of hovered-over nodes. May be omitted if enabled == false. */ highlightConfig?: HighlightConfig; } interface HighlightRectRequest { /** * X coordinate */ x: integer; /** * Y coordinate */ y: integer; /** * Rectangle width */ width: integer; /** * Rectangle height */ height: integer; /** * The highlight fill color (default: transparent). */ color?: RGBAColor; /** * The highlight outline color (default: transparent). */ outlineColor?: RGBAColor; /** * Indicates whether the provided parameters are in page coordinates or in viewport coordinates (the default). */ usePageCoordinates?: boolean; } interface HighlightQuadRequest { /** * Quad to highlight */ quad: Quad; /** * The highlight fill color (default: transparent). */ color?: RGBAColor; /** * The highlight outline color (default: transparent). */ outlineColor?: RGBAColor; /** * Indicates whether the provided parameters are in page coordinates or in viewport coordinates (the default). */ usePageCoordinates?: boolean; } interface HighlightSelectorRequest { /** * A descriptor for the highlight appearance. */ highlightConfig: HighlightConfig; /** * A CSS selector for finding matching nodes to highlight. */ selectorString: string; /** * Identifier of the frame which will be searched using the selector. If not provided, the main frame will be used. */ frameId?: string; } interface HighlightNodeRequest { /** * A descriptor for the highlight appearance. */ highlightConfig: HighlightConfig; /** * Identifier of the node to highlight. */ nodeId?: NodeId; /** * JavaScript object id of the node to be highlighted. */ objectId?: Runtime.RemoteObjectId; } interface HighlightFrameRequest { /** * Identifier of the frame to highlight. */ frameId: Network.FrameId; /** * The content box highlight fill color (default: transparent). */ contentColor?: RGBAColor; /** * The content box highlight outline color (default: transparent). */ contentOutlineColor?: RGBAColor; } interface PushNodeByPathToFrontendRequest { /** * Path to node in the proprietary format. */ path: string; } interface PushNodeByPathToFrontendResponse { /** * Id of the node for given path. */ nodeId: NodeId; } interface PushNodeByBackendIdToFrontendRequest { /** * The backend node id of the node. */ backendNodeId: BackendNodeId; } interface PushNodeByBackendIdToFrontendResponse { /** * The pushed node's id. */ nodeId: NodeId; } interface ReleaseBackendNodeIdsRequest { /** * The backend node ids group name. */ nodeGroup: string; } interface ResolveNodeRequest { /** * Id of the node to resolve. */ nodeId: NodeId; /** * Symbolic group name that can be used to release multiple objects. */ objectGroup?: string; } interface ResolveNodeResponse { /** * JavaScript object wrapper for given node. */ object: Runtime.RemoteObject; } interface GetAttributesRequest { /** * Id of the node to retrieve attibutes for. */ nodeId: NodeId; } interface GetAttributesResponse { /** * An interleaved array of node attribute names and values. */ attributes: string[]; } interface MoveToRequest { /** * Id of the node to drop. */ nodeId: NodeId; /** * Id of the element to drop into. */ targetNodeId: NodeId; /** * Drop node before given one. */ insertBeforeNodeId?: NodeId; } interface MoveToResponse { /** * New id of the moved node. */ nodeId: NodeId; } interface FocusRequest { /** * Id of the node to focus. */ nodeId: NodeId; } /** * Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids. */ interface SetChildNodesEvent { /** * Parent node id to populate with children. */ parentId: NodeId; /** * Child nodes array. */ nodes: Node[]; } /** * Fired when Element's attribute is modified. */ interface AttributeModifiedEvent { /** * Id of the node that has changed. */ nodeId: NodeId; /** * Attribute name. */ name: string; /** * Attribute value. */ value: string; } /** * Fired when Element's attribute is removed. */ interface AttributeRemovedEvent { /** * Id of the node that has changed. */ nodeId: NodeId; /** * A ttribute name. */ name: string; } /** * Fired when Element's inline style is modified via a CSS property modification. */ interface InlineStyleInvalidatedEvent { /** * Ids of the nodes for which the inline styles have been invalidated. */ nodeIds: NodeId[]; } /** * Mirrors DOMCharacterDataModified event. */ interface CharacterDataModifiedEvent { /** * Id of the node that has changed. */ nodeId: NodeId; /** * New text value. */ characterData: string; } /** * Fired when Container's child node count has changed. */ interface ChildNodeCountUpdatedEvent { /** * Id of the node that has changed. */ nodeId: NodeId; /** * New node count. */ childNodeCount: integer; } /** * Mirrors DOMNodeInserted event. */ interface ChildNodeInsertedEvent { /** * Id of the node that has changed. */ parentNodeId: NodeId; /** * If of the previous siblint. */ previousNodeId: NodeId; /** * Inserted node data. */ node: Node; } /** * Mirrors DOMNodeRemoved event. */ interface ChildNodeRemovedEvent { /** * Parent id. */ parentNodeId: NodeId; /** * Id of the node that has been removed. */ nodeId: NodeId; } /** * Called when shadow root is pushed into the element. */ interface ShadowRootPushedEvent { /** * Host element id. */ hostId: NodeId; /** * Shadow root. */ root: Node; } /** * Called when shadow root is popped from the element. */ interface ShadowRootPoppedEvent { /** * Host element id. */ hostId: NodeId; /** * Shadow root id. */ rootId: NodeId; } } /** * Query and modify DOM storage. */ namespace DOMStorage { /** * DOM Storage identifier. */ interface StorageId { /** * Security origin for the storage. */ securityOrigin: string; /** * Whether the storage is local storage (not session storage). */ isLocalStorage: boolean; } /** * DOM Storage item. */ type Item = string[]; interface GetDOMStorageItemsRequest { storageId: StorageId; } interface GetDOMStorageItemsResponse { entries: Item[]; } interface SetDOMStorageItemRequest { storageId: StorageId; key: string; value: string; } interface RemoveDOMStorageItemRequest { storageId: StorageId; key: string; } interface DomStorageItemsClearedEvent { storageId: StorageId; } interface DomStorageItemRemovedEvent { storageId: StorageId; key: string; } interface DomStorageItemAddedEvent { storageId: StorageId; key: string; newValue: string; } interface DomStorageItemUpdatedEvent { storageId: StorageId; key: string; oldValue: string; newValue: string; } } namespace Database { /** * Unique identifier of Database object. */ type DatabaseId = string; /** * Database object. */ interface Database { /** * Database ID. */ id: DatabaseId; /** * Database domain. */ domain: string; /** * Database name. */ name: string; /** * Database version. */ version: string; } /** * Database error. */ interface Error { /** * Error message. */ message: string; /** * Error code. */ code: integer; } interface GetDatabaseTableNamesRequest { databaseId: DatabaseId; } interface GetDatabaseTableNamesResponse { tableNames: string[]; } interface ExecuteSQLRequest { databaseId: DatabaseId; query: string; } interface ExecuteSQLResponse { columnNames?: string[]; values?: any[]; sqlError?: Error; } interface AddDatabaseEvent { database: Database; } } /** * Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc. */ namespace Debugger { /** * Breakpoint identifier. */ type BreakpointId = string; /** * Breakpoint action identifier. */ type BreakpointActionIdentifier = integer; /** * Unique script identifier. */ type ScriptId = string; /** * Call frame identifier. */ type CallFrameId = string; /** * Location in the source code. */ interface Location { /** * Script identifier as reported in the Debugger.scriptParsed. */ scriptId: ScriptId; /** * Line number in the script. */ lineNumber: integer; /** * Column number in the script. */ columnNumber?: integer; } enum BreakpointActionType { Log = 'log', Evaluate = 'evaluate', Sound = 'sound', Probe = 'probe', } /** * Action to perform when a breakpoint is triggered. */ interface BreakpointAction { /** * Different kinds of breakpoint actions. (BreakpointActionType enum) */ type: ('log' | 'evaluate' | 'sound' | 'probe'); /** * Data associated with this breakpoint type (e.g. for type "eval" this is the JavaScript string to evalulate). */ data?: string; /** * A frontend-assigned identifier for this breakpoint action. */ id?: BreakpointActionIdentifier; } /** * Extra options that modify breakpoint behavior. */ interface BreakpointOptions { /** * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true. */ condition?: string; /** * Actions to perform automatically when the breakpoint is triggered. */ actions?: BreakpointAction[]; /** * Automatically continue after hitting this breakpoint and running actions. */ autoContinue?: boolean; } /** * Information about the function. */ interface FunctionDetails { /** * Location of the function. */ location: Location; /** * Name of the function. Not present for anonymous functions. */ name?: string; /** * Display name of the function(specified in 'displayName' property on the function object). */ displayName?: string; /** * Name of the function inferred from its initial assignment. */ inferredName?: string; /** * Scope chain for this closure. */ scopeChain?: Scope[]; } /** * JavaScript call frame. Array of call frames form the call stack. */ interface CallFrame { /** * Call frame identifier. This identifier is only valid while the virtual machine is paused. */ callFrameId: CallFrameId; /** * Name of the JavaScript function called on this call frame. */ functionName: string; /** * Location in the source code. */ location: Location; /** * Scope chain for this call frame. */ scopeChain: Scope[]; /** * this object for this call frame. */ this: Runtime.RemoteObject; } enum ScopeType { Global = 'global', Local = 'local', With = 'with', Closure = 'closure', Catch = 'catch', FunctionName = 'functionName', } /** * Scope description. */ interface Scope { /** * Scope type. (ScopeType enum) */ type: ('global' | 'local' | 'with' | 'closure' | 'catch' | 'functionName'); /** * Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties. */ object: Runtime.RemoteObject; } /** * A sample collected by evaluating a probe breakpoint action. */ interface ProbeSample { /** * Identifier of the probe breakpoint action that created the sample. */ probeId: BreakpointActionIdentifier; /** * Unique identifier for this sample. */ sampleId: integer; /** * A batch identifier which is the same for all samples taken at the same breakpoint hit. */ batchId: integer; /** * Timestamp of when the sample was taken. */ timestamp: number; /** * Contents of the sample. */ payload: Runtime.RemoteObject; } /** * The pause reason auxiliary data when paused because of an assertion. */ interface AssertPauseReason { /** * The console.assert message string if provided. */ message?: string; } /** * The pause reason auxiliary data when paused because of hitting a breakpoint. */ interface BreakpointPauseReason { /** * The identifier of the breakpoint causing the pause. */ breakpointId: string; } /** * The pause reason auxiliary data when paused because of a Content Security Policy directive. */ interface CSPViolationPauseReason { /** * The CSP directive that blocked script execution. */ directive: string; } interface SetBreakpointsActiveRequest { /** * New value for breakpoints active state. */ active: boolean; } interface SetBreakpointByUrlRequest { /** * Line number to set breakpoint at. */ lineNumber: integer; /** * URL of the resources to set breakpoint on. */ url?: string; /** * Regex pattern for the URLs of the resources to set breakpoints on. Either url or urlRegex must be specified. */ urlRegex?: string; /** * Offset in the line to set breakpoint at. */ columnNumber?: integer; /** * Options to apply to this breakpoint to modify its behavior. */ options?: BreakpointOptions; } interface SetBreakpointByUrlResponse { /** * Id of the created breakpoint for further reference. */ breakpointId: BreakpointId; /** * List of the locations this breakpoint resolved into upon addition. */ locations: Location[]; } interface SetBreakpointRequest { /** * Location to set breakpoint in. */ location: Location; /** * Options to apply to this breakpoint to modify its behavior. */ options?: BreakpointOptions; } interface SetBreakpointResponse { /** * Id of the created breakpoint for further reference. */ breakpointId: BreakpointId; /** * Location this breakpoint resolved into. */ actualLocation: Location; } interface RemoveBreakpointRequest { breakpointId: BreakpointId; } interface ContinueToLocationRequest { /** * Location to continue to. */ location: Location; } interface SearchInContentRequest { /** * Id of the script to search in. */ scriptId: ScriptId; /** * String to search for. */ query: string; /** * If true, search is case sensitive. */ caseSensitive?: boolean; /** * If true, treats string parameter as regex. */ isRegex?: boolean; } interface SearchInContentResponse { /** * List of search matches. */ result: GenericTypes.SearchMatch[]; } interface GetScriptSourceRequest { /** * Id of the script to get source for. */ scriptId: ScriptId; } interface GetScriptSourceResponse { /** * Script source. */ scriptSource: string; } interface GetFunctionDetailsRequest { /** * Id of the function to get location for. */ functionId: Runtime.RemoteObjectId; } interface GetFunctionDetailsResponse { /** * Information about the function. */ details: FunctionDetails; } enum SetPauseOnExceptionsRequestState { None = 'none', Uncaught = 'uncaught', All = 'all', } interface SetPauseOnExceptionsRequest { /** * Pause on exceptions mode. (SetPauseOnExceptionsRequestState enum) */ state: ('none' | 'uncaught' | 'all'); } interface EvaluateOnCallFrameRequest { /** * Call frame identifier to evaluate on. */ callFrameId: CallFrameId; /** * Expression to evaluate. */ expression: string; /** * String object group name to put result into (allows rapid releasing resulting object handles using releaseObjectGroup). */ objectGroup?: string; /** * Specifies whether command line API should be available to the evaluated expression, defaults to false. */ includeCommandLineAPI?: boolean; /** * Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state. */ doNotPauseOnExceptionsAndMuteConsole?: boolean; /** * Whether the result is expected to be a JSON object that should be sent by value. */ returnByValue?: boolean; /** * Whether preview should be generated for the result. */ generatePreview?: boolean; /** * Whether the resulting value should be considered for saving in the $n history. */ saveResult?: boolean; } interface EvaluateOnCallFrameResponse { /** * Object wrapper for the evaluation result. */ result: Runtime.RemoteObject; /** * True if the result was thrown during the evaluation. */ wasThrown?: boolean; /** * If the result was saved, this is the $n index that can be used to access the value. */ savedResultIndex?: integer; } interface SetOverlayMessageRequest { /** * Overlay message to display when paused in debugger. */ message?: string; } /** * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. */ interface ScriptParsedEvent { /** * Identifier of the script parsed. */ scriptId: ScriptId; /** * URL or name of the script parsed (if any). */ url: string; /** * Line offset of the script within the resource with given URL (for script tags). */ startLine: integer; /** * Column offset of the script within the resource with given URL. */ startColumn: integer; /** * Last line of the script. */ endLine: integer; /** * Length of the last line of the script. */ endColumn: integer; /** * Determines whether this script is a user extension script. */ isContentScript?: boolean; /** * URL of source map associated with script (if any). */ sourceMapURL?: string; /** * True, if this script has sourceURL. */ hasSourceURL?: boolean; } /** * Fired when virtual machine fails to parse the script. */ interface ScriptFailedToParseEvent { /** * URL of the script that failed to parse. */ url: string; /** * Source text of the script that failed to parse. */ scriptSource: string; /** * Line offset of the script within the resource. */ startLine: integer; /** * Line with error. */ errorLine: integer; /** * Parse error message. */ errorMessage: string; } /** * Fired when breakpoint is resolved to an actual script and location. */ interface BreakpointResolvedEvent { /** * Breakpoint unique identifier. */ breakpointId: BreakpointId; /** * Actual breakpoint location. */ location: Location; } enum PausedEventReason { XHR = 'XHR', DOM = 'DOM', EventListener = 'EventListener', Exception = 'exception', Assert = 'assert', CSPViolation = 'CSPViolation', DebuggerStatement = 'DebuggerStatement', Breakpoint = 'Breakpoint', PauseOnNextStatement = 'PauseOnNextStatement', Other = 'other', } /** * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. */ interface PausedEvent { /** * Call stack the virtual machine stopped on. */ callFrames: CallFrame[]; /** * Pause reason. (PausedEventReason enum) */ reason: ('XHR' | 'DOM' | 'EventListener' | 'exception' | 'assert' | 'CSPViolation' | 'DebuggerStatement' | 'Breakpoint' | 'PauseOnNextStatement' | 'other'); /** * Object containing break-specific auxiliary properties. */ data?: any; } /** * Fires when a new probe sample is collected. */ interface DidSampleProbeEvent { /** * A collected probe sample. */ sample: ProbeSample; } /** * Fired when a "sound" breakpoint action is triggered on a breakpoint. */ interface PlayBreakpointActionSoundEvent { /** * Breakpoint action identifier. */ breakpointActionId: BreakpointActionIdentifier; } } /** * Exposes generic types to be used by any domain. */ namespace GenericTypes { /** * Search match in a resource. */ interface SearchMatch { /** * Line number in resource content. */ lineNumber: number; /** * Line with match content. */ lineContent: string; } } namespace IndexedDB { /** * Database with an array of object stores. */ interface DatabaseWithObjectStores { /** * Database name. */ name: string; /** * Database version. */ version: number; /** * Object stores in this database. */ objectStores: ObjectStore[]; } /** * Object store. */ interface ObjectStore { /** * Object store name. */ name: string; /** * Object store key path. */ keyPath: KeyPath; /** * If true, object store has auto increment flag set. */ autoIncrement: boolean; /** * Indexes in this object store. */ indexes: ObjectStoreIndex[]; } /** * Object store index. */ interface ObjectStoreIndex { /** * Index name. */ name: string; /** * Index key path. */ keyPath: KeyPath; /** * If true, index is unique. */ unique: boolean; /** * If true, index allows multiple entries for a key. */ multiEntry: boolean; } enum KeyType { Number = 'number', String = 'string', Date = 'date', Array = 'array', } /** * Key. */ interface Key { /** * Key type. (KeyType enum) */ type: ('number' | 'string' | 'date' | 'array'); /** * Number value. */ number?: number; /** * String value. */ string?: string; /** * Date value. */ date?: number; /** * Array value. */ array?: Key[]; } /** * Key range. */ interface KeyRange { /** * Lower bound. */ lower?: Key; /** * Upper bound. */ upper?: Key; /** * If true lower bound is open. */ lowerOpen: boolean; /** * If true upper bound is open. */ upperOpen: boolean; } /** * Data entry. */ interface DataEntry { /** * Key. */ key: Runtime.RemoteObject; /** * Primary key. */ primaryKey: Runtime.RemoteObject; /** * Value. */ value: Runtime.RemoteObject; } enum KeyPathType { Null = 'null', String = 'string', Array = 'array', } /** * Key path. */ interface KeyPath { /** * Key path type. (KeyPathType enum) */ type: ('null' | 'string' | 'array'); /** * String value. */ string?: string; /** * Array value. */ array?: string[]; } interface RequestDatabaseNamesRequest { /** * Security origin. */ securityOrigin: string; } interface RequestDatabaseNamesResponse { /** * Database names for origin. */ databaseNames: string[]; } interface RequestDatabaseRequest { /** * Security origin. */ securityOrigin: string; /** * Database name. */ databaseName: string; } interface RequestDatabaseResponse { /** * Database with an array of object stores. */ databaseWithObjectStores: DatabaseWithObjectStores; } interface RequestDataRequest { /** * Security origin. */ securityOrigin: string; /** * Database name. */ databaseName: string; /** * Object store name. */ objectStoreName: string; /** * Index name, empty string for object store data requests. */ indexName: string; /** * Number of records to skip. */ skipCount: integer; /** * Number of records to fetch. */ pageSize: integer; /** * Key range. */ keyRange?: KeyRange; } interface RequestDataResponse { /** * Array of object store data entries. */ objectStoreDataEntries: DataEntry[]; /** * If true, there are more entries to fetch in the given range. */ hasMore: boolean; } interface ClearObjectStoreRequest { /** * Security origin. */ securityOrigin: string; /** * Database name. */ databaseName: string; /** * Object store name. */ objectStoreName: string; } interface ClearObjectStoreResponse { } } namespace Inspector { interface EvaluateForTestInFrontendEvent { script: string; } interface InspectEvent { object: Runtime.RemoteObject; hints: any; } /** * Fired when remote debugging connection is about to be terminated. Contains detach reason. */ interface DetachedEvent { /** * The reason why connection has been terminated. */ reason: string; } /** * Fired when the backend has alternate domains that need to be activated. */ interface ActivateExtraDomainsEvent { /** * Domain names that need activation */ domains: string[]; } } namespace LayerTree { /** * Unique RenderLayer identifier. */ type LayerId = string; /** * Unique PseudoElement identifier. */ type PseudoElementId = string; /** * A rectangle. */ interface IntRect { /** * The x position. */ x: integer; /** * The y position. */ y: integer; /** * The width metric. */ width: integer; /** * The height metric. */ height: integer; } /** * Information about a compositing layer. */ interface Layer { /** * The unique id for this layer. */ layerId: LayerId; /** * The id for the node associated with this layer. */ nodeId: DOM.NodeId; /** * Bounds of the layer in absolute page coordinates. */ bounds: IntRect; /** * Indicates how many time this layer has painted. */ paintCount: integer; /** * Estimated memory used by this layer. */ memory: integer; /** * The bounds of the composited layer. */ compositedBounds: IntRect; /** * Indicates whether this layer is associated with an element hosted in a shadow tree. */ isInShadowTree?: boolean; /** * Indicates whether this layer was used to provide a reflection for the element. */ isReflection?: boolean; /** * Indicates whether the layer is attached to a pseudo element that is CSS generated content. */ isGeneratedContent?: boolean; /** * Indicates whether the layer was created for a CSS anonymous block or box. */ isAnonymous?: boolean; /** * The id for the pseudo element associated with this layer. */ pseudoElementId?: PseudoElementId; /** * The name of the CSS pseudo-element that prompted the layer to be generated. */ pseudoElement?: string; } /** * An object containing the reasons why the layer was composited as properties. */ interface CompositingReasons { /** * Composition due to association with an element with a CSS 3D transform. */ transform3D?: boolean; /** * Composition due to association with a