declare namespace ProtocolIOS110 {
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 meta-information.
*/
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;
/**
* Whether this stylesheet is a