declare namespace ProtocolIOS140 {
type integer = number
/**
* Domain for tracking/modifying Web Animations, as well as CSS (declarative) animations and transitions.
*/
namespace Animation {
/**
* Unique Web Animation identifier.
*/
type AnimationId = string;
enum AnimationState {
Ready = 'ready',
Delayed = 'delayed',
Active = 'active',
Canceled = 'canceled',
Done = 'done',
}
enum PlaybackDirection {
Normal = 'normal',
Reverse = 'reverse',
Alternate = 'alternate',
AlternateReverse = 'alternate-reverse',
}
enum FillMode {
None = 'none',
Forwards = 'forwards',
Backwards = 'backwards',
Both = 'both',
Auto = 'auto',
}
interface Animation {
animationId: AnimationId;
/**
* Equal to `Animation.prototype.get id`.
*/
name?: string;
/**
* Equal to the corresponding `animation-name` CSS property. Should not be provided if `transitionProperty` is also provided.
*/
cssAnimationName?: string;
/**
* Equal to the corresponding `transition-property` CSS property. Should not be provided if `animationName` is also provided.
*/
cssTransitionProperty?: string;
effect?: Effect;
/**
* Backtrace that was captured when this `WebAnimation` was created.
*/
backtrace?: Console.CallFrame[];
}
interface Effect {
startDelay?: number;
endDelay?: number;
/**
* Number of iterations in the animation. Infinity is represented as -1.
*/
iterationCount?: number;
/**
* Index of which iteration to start at.
*/
iterationStart?: number;
/**
* Total time of each iteration, measured in milliseconds.
*/
iterationDuration?: number;
/**
* CSS timing function of the overall animation.
*/
timingFunction?: string;
playbackDirection?: PlaybackDirection;
fillMode?: FillMode;
keyframes?: Keyframe[];
}
interface Keyframe {
/**
* Decimal percentage [0,1] representing where this keyframe is in the entire duration of the animation.
*/
offset: number;
/**
* CSS timing function for how the `style` is applied.
*/
easing?: string;
/**
* CSS style declaration of the CSS properties that will be animated.
*/
style?: string;
}
interface TrackingUpdate {
trackingAnimationId: AnimationId;
animationState: AnimationState;
nodeId?: DOM.NodeId;
/**
* Equal to the corresponding `animation-name` CSS property. Should not be provided if `transitionProperty` is also provided.
*/
animationName?: string;
/**
* Equal to the corresponding `transition-property` CSS property. Should not be provided if `animationName` is also provided.
*/
transitionProperty?: string;
}
interface RequestEffectTargetRequest {
animationId: AnimationId;
}
interface RequestEffectTargetResponse {
nodeId: DOM.NodeId;
}
interface ResolveAnimationRequest {
animationId: AnimationId;
/**
* Symbolic group name that can be used to release multiple objects.
*/
objectGroup?: string;
}
interface ResolveAnimationResponse {
object: Runtime.RemoteObject;
}
/**
* Dispatched whenever a `WebAnimation` is created.
*/
interface AnimationCreatedEvent {
animation: Animation;
}
/**
* Dispatched whenever `Animation.prototype.set id` is called.
*/
interface NameChangedEvent {
animationId: AnimationId;
/**
* Equal to `Animation.prototype.get id`.
*/
name?: string;
}
/**
* Dispatched whenever the effect of any animation is changed in any way.
*/
interface EffectChangedEvent {
animationId: AnimationId;
/**
* This is omitted when the effect is removed without a replacement.
*/
effect?: Effect;
}
/**
* Dispatched whenever the target of any effect of any animation is changed in any way.
*/
interface TargetChangedEvent {
animationId: AnimationId;
}
/**
* Dispatched whenever a `WebAnimation` is destroyed.
*/
interface AnimationDestroyedEvent {
animationId: AnimationId;
}
/**
* Dispatched after `startTracking` command.
*/
interface TrackingStartEvent {
timestamp: number;
}
/**
* Fired for each phase of Web Animation.
*/
interface TrackingUpdateEvent {
timestamp: number;
event: TrackingUpdate;
}
/**
* Dispatched after `stopTracking` command.
*/
interface TrackingCompleteEvent {
timestamp: 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;
}
}
namespace Audit {
interface SetupRequest {
/**
* Specifies in which isolated context to run the test. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page.
*/
contextId?: Runtime.ExecutionContextId;
}
interface RunRequest {
/**
* Test string to parse and evaluate.
*/
test: string;
/**
* Specifies in which isolated context to run the test. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page.
*/
contextId?: Runtime.ExecutionContextId;
}
interface RunResponse {
/**
* Evaluation result.
*/
result: Runtime.RemoteObject;
/**
* True if the result was thrown during the evaluation.
*/
wasThrown?: boolean;
}
}
/**
* The Browser domain contains commands and events related to getting information about the browser
*/
namespace Browser {
/**
* Unique extension identifier.
*/
type ExtensionId = string;
/**
* Information about an extension.
*/
interface Extension {
/**
* Extension identifier.
*/
extensionId: ExtensionId;
/**
* The display name for the extension.
*/
name: string;
}
interface ExtensionsEnabledEvent {
/**
* Information about the enabled extensions.
*/
extensions: Extension[];
}
interface ExtensionsDisabledEvent {
/**
* Disabled extension identifiers.
*/
extensionIds: ExtensionId[];
}
}
/**
* CPUProfiler domain exposes cpu usage tracking.
*/
namespace CPUProfiler {
enum ThreadInfoType {
Main = 'main',
Webkit = 'webkit',
}
/**
* CPU usage for an individual thread.
*/
interface ThreadInfo {
/**
* Some thread identification information.
*/
name: string;
/**
* CPU usage for this thread. This should not exceed 100% for an individual thread.
*/
usage: number;
/**
* Type of thread. There should be a single main thread. (ThreadInfoType enum)
*/
type?: ('main' | 'webkit');
/**
* A thread may be associated with a target, such as a Worker, in the process.
*/
targetId?: string;
}
interface Event {
timestamp: number;
/**
* Percent of total cpu usage. If there are multiple cores the usage may be greater than 100%.
*/
usage: number;
/**
* Per-thread CPU usage information. Does not include the main thread.
*/
threads?: ThreadInfo[];
}
/**
* Tracking started.
*/
interface TrackingStartEvent {
timestamp: number;
}
/**
* Periodic tracking updates with event data.
*/
interface TrackingUpdateEvent {
event: Event;
}
/**
* Tracking stopped.
*/
interface TrackingCompleteEvent {
timestamp: number;
}
}
/**
* 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',
Author = 'author',
Inspector = 'inspector',
}
/**
* 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;
}
/**
* Pseudo-style identifier (see enum PseudoId in RenderStyleConstants.h).
*/
enum PseudoId {
FirstLine = 'first-line',
FirstLetter = 'first-letter',
Highlight = 'highlight',
Marker = 'marker',
Before = 'before',
After = 'after',
Selection = 'selection',
Scrollbar = 'scrollbar',
ScrollbarThumb = 'scrollbar-thumb',
ScrollbarButton = 'scrollbar-button',
ScrollbarTrack = 'scrollbar-track',
ScrollbarTrackPiece = 'scrollbar-track-piece',
ScrollbarCorner = 'scrollbar-corner',
Resizer = 'resizer',
}
/**
* CSS rule collection for a single pseudo style.
*/
interface PseudoIdMatches {
pseudoId: PseudoId;
/**
* 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