OLD | NEW |
---|---|
1 { | 1 { |
2 "version": { "major": "1", "minor": "1" }, | 2 "version": { "major": "1", "minor": "1" }, |
3 "domains": [{ | 3 "domains": [{ |
4 "domain": "Inspector", | 4 "domain": "Inspector", |
5 "hidden": true, | 5 "hidden": true, |
6 "types": [], | 6 "types": [], |
7 "commands": [ | 7 "commands": [ |
8 { | 8 { |
9 "name": "enable", | 9 "name": "enable", |
10 "description": "Enables inspector domain notifications.", | 10 "description": "Enables inspector domain notifications.", |
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
890 }, | 890 }, |
891 { | 891 { |
892 "id": "StackTrace", | 892 "id": "StackTrace", |
893 "type": "object", | 893 "type": "object", |
894 "description": "Call frames for assertions or error messages.", | 894 "description": "Call frames for assertions or error messages.", |
895 "properties": [ | 895 "properties": [ |
896 { "name": "description", "type": "string", "optional": true, "description": "String label of this stack trace. For async traces this may be a name of the function that initiated the async call." }, | 896 { "name": "description", "type": "string", "optional": true, "description": "String label of this stack trace. For async traces this may be a name of the function that initiated the async call." }, |
897 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "JavaScript function name." }, | 897 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "JavaScript function name." }, |
898 { "name": "parent", "$ref": "StackTrace", "optional": true, "hidden": true, "hidden": true, "description": "Asynchronous JavaScript stack tr ace that preceded this stack, if available." } | 898 { "name": "parent", "$ref": "StackTrace", "optional": true, "hidden": true, "hidden": true, "description": "Asynchronous JavaScript stack tr ace that preceded this stack, if available." } |
899 ] | 899 ] |
900 }, | |
901 { | |
902 "id": "SourceRange", | |
903 "type": "object", | |
904 "properties": [ | |
905 { "name": "startLine", "type": "integer", "description": "St art line of range." }, | |
906 { "name": "startColumn", "type": "integer", "description": " Start column of range (inclusive)." }, | |
907 { "name": "endLine", "type": "integer", "description": "End line of range" }, | |
908 { "name": "endColumn", "type": "integer", "description": "En d column of range (exclusive)." } | |
909 ], | |
910 "description": "Text range within a resource. All numbers are ze ro-based.", | |
911 "hidden": true | |
900 } | 912 } |
901 ], | 913 ], |
902 "commands": [ | 914 "commands": [ |
903 { | 915 { |
904 "name": "evaluate", | 916 "name": "evaluate", |
905 "parameters": [ | 917 "parameters": [ |
906 { "name": "expression", "type": "string", "description": "Ex pression to evaluate." }, | 918 { "name": "expression", "type": "string", "description": "Ex pression to evaluate." }, |
907 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." }, | 919 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." }, |
908 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation.", "hidden": true }, | 920 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation.", "hidden": true }, |
909 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether evaluation should s top on exceptions and mute console. Overrides setPauseOnException state.", "hidd en": true }, | 921 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether evaluation should s top on exceptions and mute console. Overrides setPauseOnException state.", "hidd en": true }, |
(...skipping 2001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2911 { "name": "rule", "$ref": "CSSRule", "description": "CSS rul e in the match." }, | 2923 { "name": "rule", "$ref": "CSSRule", "description": "CSS rul e in the match." }, |
2912 { "name": "matchingSelectors", "type": "array", "items": { " type": "integer" }, "description": "Matching selector indices in the rule's sele ctorList selectors (0-based)." } | 2924 { "name": "matchingSelectors", "type": "array", "items": { " type": "integer" }, "description": "Matching selector indices in the rule's sele ctorList selectors (0-based)." } |
2913 ], | 2925 ], |
2914 "description": "Match data for a CSS rule." | 2926 "description": "Match data for a CSS rule." |
2915 }, | 2927 }, |
2916 { | 2928 { |
2917 "id": "Value", | 2929 "id": "Value", |
2918 "type": "object", | 2930 "type": "object", |
2919 "properties": [ | 2931 "properties": [ |
2920 { "name": "text", "type": "string", "description": "Value te xt." }, | 2932 { "name": "text", "type": "string", "description": "Value te xt." }, |
2921 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Value range in the underlying resource (if available)." } | 2933 { "name": "range", "$ref": "Runtime.SourceRange", "optional" : true, "description": "Value range in the underlying resource (if available)." } |
2922 ], | 2934 ], |
2923 "description": "Data for a simple selector (these are delimited by commas in a selector list)." | 2935 "description": "Data for a simple selector (these are delimited by commas in a selector list)." |
2924 }, | 2936 }, |
2925 { | 2937 { |
2926 "id": "SelectorList", | 2938 "id": "SelectorList", |
2927 "type": "object", | 2939 "type": "object", |
2928 "properties": [ | 2940 "properties": [ |
2929 { "name": "selectors", "type": "array", "items": { "$ref": " Value" }, "description": "Selectors in the list." }, | 2941 { "name": "selectors", "type": "array", "items": { "$ref": " Value" }, "description": "Selectors in the list." }, |
2930 { "name": "text", "type": "string", "description": "Rule sel ector text." } | 2942 { "name": "text", "type": "string", "description": "Rule sel ector text." } |
2931 ], | 2943 ], |
(...skipping 24 matching lines...) Expand all Loading... | |
2956 "properties": [ | 2968 "properties": [ |
2957 { "name": "styleSheetId", "$ref": "StyleSheetId", "optional" : true, "description": "The css style sheet identifier (absent for user agent st ylesheet and user-specified stylesheet rules) this rule came from." }, | 2969 { "name": "styleSheetId", "$ref": "StyleSheetId", "optional" : true, "description": "The css style sheet identifier (absent for user agent st ylesheet and user-specified stylesheet rules) this rule came from." }, |
2958 { "name": "selectorList", "$ref": "SelectorList", "descripti on": "Rule selector data." }, | 2970 { "name": "selectorList", "$ref": "SelectorList", "descripti on": "Rule selector data." }, |
2959 { "name": "origin", "$ref": "StyleSheetOrigin", "description ": "Parent stylesheet's origin."}, | 2971 { "name": "origin", "$ref": "StyleSheetOrigin", "description ": "Parent stylesheet's origin."}, |
2960 { "name": "style", "$ref": "CSSStyle", "description": "Assoc iated style declaration." }, | 2972 { "name": "style", "$ref": "CSSStyle", "description": "Assoc iated style declaration." }, |
2961 { "name": "media", "type": "array", "items": { "$ref": "CSSM edia" }, "optional": true, "description": "Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards." } | 2973 { "name": "media", "type": "array", "items": { "$ref": "CSSM edia" }, "optional": true, "description": "Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards." } |
2962 ], | 2974 ], |
2963 "description": "CSS rule representation." | 2975 "description": "CSS rule representation." |
2964 }, | 2976 }, |
2965 { | 2977 { |
2966 "id": "SourceRange", | |
dgozman
2016/04/20 02:06:40
Let's keep two SourceRanges.
| |
2967 "type": "object", | |
2968 "properties": [ | |
2969 { "name": "startLine", "type": "integer", "description": "St art line of range." }, | |
2970 { "name": "startColumn", "type": "integer", "description": " Start column of range (inclusive)." }, | |
2971 { "name": "endLine", "type": "integer", "description": "End line of range" }, | |
2972 { "name": "endColumn", "type": "integer", "description": "En d column of range (exclusive)." } | |
2973 ], | |
2974 "description": "Text range within a resource. All numbers are ze ro-based." | |
2975 }, | |
2976 { | |
2977 "id": "ShorthandEntry", | 2978 "id": "ShorthandEntry", |
2978 "type": "object", | 2979 "type": "object", |
2979 "properties": [ | 2980 "properties": [ |
2980 { "name": "name", "type": "string", "description": "Shorthan d name." }, | 2981 { "name": "name", "type": "string", "description": "Shorthan d name." }, |
2981 { "name": "value", "type": "string", "description": "Shortha nd value." }, | 2982 { "name": "value", "type": "string", "description": "Shortha nd value." }, |
2982 { "name": "important", "type": "boolean", "optional": true, "description": "Whether the property has \"!important\" annotation (implies <cod e>false</code> if absent)." } | 2983 { "name": "important", "type": "boolean", "optional": true, "description": "Whether the property has \"!important\" annotation (implies <cod e>false</code> if absent)." } |
2983 ] | 2984 ] |
2984 }, | 2985 }, |
2985 { | 2986 { |
2986 "id": "CSSComputedStyleProperty", | 2987 "id": "CSSComputedStyleProperty", |
2987 "type": "object", | 2988 "type": "object", |
2988 "properties": [ | 2989 "properties": [ |
2989 { "name": "name", "type": "string", "description": "Computed style property name." }, | 2990 { "name": "name", "type": "string", "description": "Computed style property name." }, |
2990 { "name": "value", "type": "string", "description": "Compute d style property value." } | 2991 { "name": "value", "type": "string", "description": "Compute d style property value." } |
2991 ] | 2992 ] |
2992 }, | 2993 }, |
2993 { | 2994 { |
2994 "id": "CSSStyle", | 2995 "id": "CSSStyle", |
2995 "type": "object", | 2996 "type": "object", |
2996 "properties": [ | 2997 "properties": [ |
2997 { "name": "styleSheetId", "$ref": "StyleSheetId", "optional" : true, "description": "The css style sheet identifier (absent for user agent st ylesheet and user-specified stylesheet rules) this rule came from." }, | 2998 { "name": "styleSheetId", "$ref": "StyleSheetId", "optional" : true, "description": "The css style sheet identifier (absent for user agent st ylesheet and user-specified stylesheet rules) this rule came from." }, |
2998 { "name": "cssProperties", "type": "array", "items": { "$ref ": "CSSProperty" }, "description": "CSS properties in the style." }, | 2999 { "name": "cssProperties", "type": "array", "items": { "$ref ": "CSSProperty" }, "description": "CSS properties in the style." }, |
2999 { "name": "shorthandEntries", "type": "array", "items": { "$ ref": "ShorthandEntry" }, "description": "Computed values for all shorthands fou nd in the style." }, | 3000 { "name": "shorthandEntries", "type": "array", "items": { "$ ref": "ShorthandEntry" }, "description": "Computed values for all shorthands fou nd in the style." }, |
3000 { "name": "cssText", "type": "string", "optional": true, "de scription": "Style declaration text (if available)." }, | 3001 { "name": "cssText", "type": "string", "optional": true, "de scription": "Style declaration text (if available)." }, |
3001 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Style declaration range in the enclosing stylesheet (if availabl e)." } | 3002 { "name": "range", "$ref": "Runtime.SourceRange", "optional" : true, "description": "Style declaration range in the enclosing stylesheet (if available)." } |
3002 ], | 3003 ], |
3003 "description": "CSS style representation." | 3004 "description": "CSS style representation." |
3004 }, | 3005 }, |
3005 { | 3006 { |
3006 "id": "CSSProperty", | 3007 "id": "CSSProperty", |
3007 "type": "object", | 3008 "type": "object", |
3008 "properties": [ | 3009 "properties": [ |
3009 { "name": "name", "type": "string", "description": "The prop erty name." }, | 3010 { "name": "name", "type": "string", "description": "The prop erty name." }, |
3010 { "name": "value", "type": "string", "description": "The pro perty value." }, | 3011 { "name": "value", "type": "string", "description": "The pro perty value." }, |
3011 { "name": "important", "type": "boolean", "optional": true, "description": "Whether the property has \"!important\" annotation (implies <cod e>false</code> if absent)." }, | 3012 { "name": "important", "type": "boolean", "optional": true, "description": "Whether the property has \"!important\" annotation (implies <cod e>false</code> if absent)." }, |
3012 { "name": "implicit", "type": "boolean", "optional": true, " description": "Whether the property is implicit (implies <code>false</code> if a bsent)." }, | 3013 { "name": "implicit", "type": "boolean", "optional": true, " description": "Whether the property is implicit (implies <code>false</code> if a bsent)." }, |
3013 { "name": "text", "type": "string", "optional": true, "descr iption": "The full property text as specified in the style." }, | 3014 { "name": "text", "type": "string", "optional": true, "descr iption": "The full property text as specified in the style." }, |
3014 { "name": "parsedOk", "type": "boolean", "optional": true, " description": "Whether the property is understood by the browser (implies <code> true</code> if absent)." }, | 3015 { "name": "parsedOk", "type": "boolean", "optional": true, " description": "Whether the property is understood by the browser (implies <code> true</code> if absent)." }, |
3015 { "name": "disabled", "type": "boolean", "optional": true, " description": "Whether the property is disabled by the user (present for source- based properties only)." }, | 3016 { "name": "disabled", "type": "boolean", "optional": true, " description": "Whether the property is disabled by the user (present for source- based properties only)." }, |
3016 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The entire property range in the enclosing style declaration (if available)." } | 3017 { "name": "range", "$ref": "Runtime.SourceRange", "optional" : true, "description": "The entire property range in the enclosing style declara tion (if available)." } |
3017 ], | 3018 ], |
3018 "description": "CSS property declaration data." | 3019 "description": "CSS property declaration data." |
3019 }, | 3020 }, |
3020 { | 3021 { |
3021 "id": "CSSMedia", | 3022 "id": "CSSMedia", |
3022 "type": "object", | 3023 "type": "object", |
3023 "properties": [ | 3024 "properties": [ |
3024 { "name": "text", "type": "string", "description": "Media qu ery text." }, | 3025 { "name": "text", "type": "string", "description": "Media qu ery text." }, |
3025 { "name": "source", "type": "string", "enum": ["mediaRule", "importRule", "linkedSheet", "inlineSheet"], "description": "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\" attrib ute in an inline stylesheet's STYLE tag." }, | 3026 { "name": "source", "type": "string", "enum": ["mediaRule", "importRule", "linkedSheet", "inlineSheet"], "description": "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\" attrib ute in an inline stylesheet's STYLE tag." }, |
3026 { "name": "sourceURL", "type": "string", "optional": true, " description": "URL of the document containing the media query description." }, | 3027 { "name": "sourceURL", "type": "string", "optional": true, " description": "URL of the document containing the media query description." }, |
3027 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The associated rule (@media or @import) header range in the encl osing stylesheet (if available)." }, | 3028 { "name": "range", "$ref": "Runtime.SourceRange", "optional" : true, "description": "The associated rule (@media or @import) header range in the enclosing stylesheet (if available)." }, |
3028 { "name": "parentStyleSheetId", "$ref": "StyleSheetId", "opt ional": true, "description": "Identifier of the stylesheet containing this objec t (if exists)." }, | 3029 { "name": "parentStyleSheetId", "$ref": "StyleSheetId", "opt ional": true, "description": "Identifier of the stylesheet containing this objec t (if exists)." }, |
3029 { "name": "mediaList", "type": "array", "items": { "$ref": " MediaQuery" }, "optional": true, "hidden": true, "description": "Array of media queries." } | 3030 { "name": "mediaList", "type": "array", "items": { "$ref": " MediaQuery" }, "optional": true, "hidden": true, "description": "Array of media queries." } |
3030 ], | 3031 ], |
3031 "description": "CSS media rule descriptor." | 3032 "description": "CSS media rule descriptor." |
3032 }, | 3033 }, |
3033 { | 3034 { |
3034 "id": "MediaQuery", | 3035 "id": "MediaQuery", |
3035 "type": "object", | 3036 "type": "object", |
3036 "properties": [ | 3037 "properties": [ |
3037 { "name": "expressions", "type": "array", "items": { "$ref": "MediaQueryExpression" }, "description": "Array of media query expressions." }, | 3038 { "name": "expressions", "type": "array", "items": { "$ref": "MediaQueryExpression" }, "description": "Array of media query expressions." }, |
3038 { "name": "active", "type": "boolean", "description": "Wheth er the media query condition is satisfied." } | 3039 { "name": "active", "type": "boolean", "description": "Wheth er the media query condition is satisfied." } |
3039 ], | 3040 ], |
3040 "description": "Media query descriptor.", | 3041 "description": "Media query descriptor.", |
3041 "hidden": true | 3042 "hidden": true |
3042 }, | 3043 }, |
3043 { | 3044 { |
3044 "id": "MediaQueryExpression", | 3045 "id": "MediaQueryExpression", |
3045 "type": "object", | 3046 "type": "object", |
3046 "properties": [ | 3047 "properties": [ |
3047 { "name": "value", "type": "number", "description": "Media q uery expression value."}, | 3048 { "name": "value", "type": "number", "description": "Media q uery expression value."}, |
3048 { "name": "unit", "type": "string", "description": "Media qu ery expression units."}, | 3049 { "name": "unit", "type": "string", "description": "Media qu ery expression units."}, |
3049 { "name": "feature", "type": "string", "description": "Media query expression feature."}, | 3050 { "name": "feature", "type": "string", "description": "Media query expression feature."}, |
3050 { "name": "valueRange", "$ref": "SourceRange", "optional": t rue, "description": "The associated range of the value text in the enclosing sty lesheet (if available)." }, | 3051 { "name": "valueRange", "$ref": "Runtime.SourceRange", "opti onal": true, "description": "The associated range of the value text in the enclo sing stylesheet (if available)." }, |
3051 { "name": "computedLength", "type": "number", "optional": tr ue, "description": "Computed length of media query expression (if applicable)."} | 3052 { "name": "computedLength", "type": "number", "optional": tr ue, "description": "Computed length of media query expression (if applicable)."} |
3052 ], | 3053 ], |
3053 "description": "Media query expression descriptor.", | 3054 "description": "Media query expression descriptor.", |
3054 "hidden": true | 3055 "hidden": true |
3055 }, | 3056 }, |
3056 { | 3057 { |
3057 "id": "PlatformFontUsage", | 3058 "id": "PlatformFontUsage", |
3058 "type": "object", | 3059 "type": "object", |
3059 "properties": [ | 3060 "properties": [ |
3060 { "name": "familyName", "type": "string", "description": "Fo nt's family name reported by platform."}, | 3061 { "name": "familyName", "type": "string", "description": "Fo nt's family name reported by platform."}, |
(...skipping 21 matching lines...) Expand all Loading... | |
3082 { "name": "keyText", "$ref": "Value", "description": "Associ ated key text." }, | 3083 { "name": "keyText", "$ref": "Value", "description": "Associ ated key text." }, |
3083 { "name": "style", "$ref": "CSSStyle", "description": "Assoc iated style declaration." } | 3084 { "name": "style", "$ref": "CSSStyle", "description": "Assoc iated style declaration." } |
3084 ], | 3085 ], |
3085 "description": "CSS keyframe rule representation." | 3086 "description": "CSS keyframe rule representation." |
3086 }, | 3087 }, |
3087 { | 3088 { |
3088 "id": "StyleDeclarationEdit", | 3089 "id": "StyleDeclarationEdit", |
3089 "type": "object", | 3090 "type": "object", |
3090 "properties": [ | 3091 "properties": [ |
3091 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "The css style sheet identifier." }, | 3092 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "The css style sheet identifier." }, |
3092 { "name": "range", "$ref": "SourceRange", "description": "Th e range of the style text in the enclosing stylesheet." }, | 3093 { "name": "range", "$ref": "Runtime.SourceRange", "descripti on": "The range of the style text in the enclosing stylesheet." }, |
3093 { "name": "text", "type": "string", "description": "New styl e text."} | 3094 { "name": "text", "type": "string", "description": "New styl e text."} |
3094 ], | 3095 ], |
3095 "description": "A descriptor of operation to mutate style declar ation text." | 3096 "description": "A descriptor of operation to mutate style declar ation text." |
3096 } | 3097 } |
3097 ], | 3098 ], |
3098 "commands": [ | 3099 "commands": [ |
3099 { | 3100 { |
3100 "name": "enable", | 3101 "name": "enable", |
3101 "async": true, | 3102 "async": true, |
3102 "description": "Enables the CSS agent for the given page. Client s should not assume that the CSS agent has been enabled until the result of this command is received." | 3103 "description": "Enables the CSS agent for the given page. Client s should not assume that the CSS agent has been enabled until the result of this command is received." |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3170 ], | 3171 ], |
3171 "returns": [ | 3172 "returns": [ |
3172 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with script (if any)." } | 3173 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with script (if any)." } |
3173 ], | 3174 ], |
3174 "description": "Sets the new stylesheet text." | 3175 "description": "Sets the new stylesheet text." |
3175 }, | 3176 }, |
3176 { | 3177 { |
3177 "name": "setRuleSelector", | 3178 "name": "setRuleSelector", |
3178 "parameters": [ | 3179 "parameters": [ |
3179 { "name": "styleSheetId", "$ref": "StyleSheetId" }, | 3180 { "name": "styleSheetId", "$ref": "StyleSheetId" }, |
3180 { "name": "range", "$ref": "SourceRange" }, | 3181 { "name": "range", "$ref": "Runtime.SourceRange" }, |
3181 { "name": "selector", "type": "string" } | 3182 { "name": "selector", "type": "string" } |
3182 ], | 3183 ], |
3183 "returns": [ | 3184 "returns": [ |
3184 { "name": "selectorList", "$ref": "SelectorList", "descripti on": "The resulting selector list after modification." } | 3185 { "name": "selectorList", "$ref": "SelectorList", "descripti on": "The resulting selector list after modification." } |
3185 ], | 3186 ], |
3186 "description": "Modifies the rule selector." | 3187 "description": "Modifies the rule selector." |
3187 }, | 3188 }, |
3188 { | 3189 { |
3189 "name": "setKeyframeKey", | 3190 "name": "setKeyframeKey", |
3190 "parameters": [ | 3191 "parameters": [ |
3191 { "name": "styleSheetId", "$ref": "StyleSheetId" }, | 3192 { "name": "styleSheetId", "$ref": "StyleSheetId" }, |
3192 { "name": "range", "$ref": "SourceRange" }, | 3193 { "name": "range", "$ref": "Runtime.SourceRange" }, |
3193 { "name": "keyText", "type": "string" } | 3194 { "name": "keyText", "type": "string" } |
3194 ], | 3195 ], |
3195 "returns": [ | 3196 "returns": [ |
3196 { "name": "keyText", "$ref": "Value", "description": "The re sulting key text after modification." } | 3197 { "name": "keyText", "$ref": "Value", "description": "The re sulting key text after modification." } |
3197 ], | 3198 ], |
3198 "description": "Modifies the keyframe rule key text." | 3199 "description": "Modifies the keyframe rule key text." |
3199 }, | 3200 }, |
3200 { | 3201 { |
3201 "name": "setStyleTexts", | 3202 "name": "setStyleTexts", |
3202 "parameters": [ | 3203 "parameters": [ |
3203 { "name": "edits", "type": "array", "items": { "$ref": "Styl eDeclarationEdit" }} | 3204 { "name": "edits", "type": "array", "items": { "$ref": "Styl eDeclarationEdit" }} |
3204 ], | 3205 ], |
3205 "returns": [ | 3206 "returns": [ |
3206 { "name": "styles", "type": "array", "items": { "$ref": "CSS Style" }, "description": "The resulting styles after modification." } | 3207 { "name": "styles", "type": "array", "items": { "$ref": "CSS Style" }, "description": "The resulting styles after modification." } |
3207 ], | 3208 ], |
3208 "description": "Applies specified style edits one after another in the given order." | 3209 "description": "Applies specified style edits one after another in the given order." |
3209 }, | 3210 }, |
3210 { | 3211 { |
3211 "name": "setMediaText", | 3212 "name": "setMediaText", |
3212 "parameters": [ | 3213 "parameters": [ |
3213 { "name": "styleSheetId", "$ref": "StyleSheetId" }, | 3214 { "name": "styleSheetId", "$ref": "StyleSheetId" }, |
3214 { "name": "range", "$ref": "SourceRange" }, | 3215 { "name": "range", "$ref": "Runtime.SourceRange" }, |
3215 { "name": "text", "type": "string" } | 3216 { "name": "text", "type": "string" } |
3216 ], | 3217 ], |
3217 "returns": [ | 3218 "returns": [ |
3218 { "name": "media", "$ref": "CSSMedia", "description": "The r esulting CSS media rule after modification." } | 3219 { "name": "media", "$ref": "CSSMedia", "description": "The r esulting CSS media rule after modification." } |
3219 ], | 3220 ], |
3220 "description": "Modifies the rule selector." | 3221 "description": "Modifies the rule selector." |
3221 }, | 3222 }, |
3222 { | 3223 { |
3223 "name": "createStyleSheet", | 3224 "name": "createStyleSheet", |
3224 "parameters": [ | 3225 "parameters": [ |
3225 { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame where \"via-inspector\" stylesheet should be created."} | 3226 { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame where \"via-inspector\" stylesheet should be created."} |
3226 ], | 3227 ], |
3227 "returns": [ | 3228 "returns": [ |
3228 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Identifier of the created \"via-inspector\" stylesheet." } | 3229 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Identifier of the created \"via-inspector\" stylesheet." } |
3229 ], | 3230 ], |
3230 "description": "Creates a new special \"via-inspector\" styleshe et in the frame with given <code>frameId</code>." | 3231 "description": "Creates a new special \"via-inspector\" styleshe et in the frame with given <code>frameId</code>." |
3231 }, | 3232 }, |
3232 { | 3233 { |
3233 "name": "addRule", | 3234 "name": "addRule", |
3234 "parameters": [ | 3235 "parameters": [ |
3235 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "The css style sheet identifier where a new rule should be inserted." }, | 3236 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "The css style sheet identifier where a new rule should be inserted." }, |
3236 { "name": "ruleText", "type": "string", "description": "The text of a new rule." }, | 3237 { "name": "ruleText", "type": "string", "description": "The text of a new rule." }, |
3237 { "name": "location", "$ref": "SourceRange", "description": "Text position of a new rule in the target style sheet." } | 3238 { "name": "location", "$ref": "Runtime.SourceRange", "descri ption": "Text position of a new rule in the target style sheet." } |
3238 ], | 3239 ], |
3239 "returns": [ | 3240 "returns": [ |
3240 { "name": "rule", "$ref": "CSSRule", "description": "The new ly created rule." } | 3241 { "name": "rule", "$ref": "CSSRule", "description": "The new ly created rule." } |
3241 ], | 3242 ], |
3242 "description": "Inserts a new rule with the given <code>ruleText </code> in a stylesheet with given <code>styleSheetId</code>, at the position sp ecified by <code>location</code>." | 3243 "description": "Inserts a new rule with the given <code>ruleText </code> in a stylesheet with given <code>styleSheetId</code>, at the position sp ecified by <code>location</code>." |
3243 }, | 3244 }, |
3244 { | 3245 { |
3245 "name": "forcePseudoState", | 3246 "name": "forcePseudoState", |
3246 "parameters": [ | 3247 "parameters": [ |
3247 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Th e element id for which to force the pseudo state." }, | 3248 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Th e element id for which to force the pseudo state." }, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3301 "name": "styleSheetRemoved", | 3302 "name": "styleSheetRemoved", |
3302 "parameters": [ | 3303 "parameters": [ |
3303 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Identifier of the removed stylesheet." } | 3304 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Identifier of the removed stylesheet." } |
3304 ], | 3305 ], |
3305 "description": "Fired whenever an active document stylesheet is removed." | 3306 "description": "Fired whenever an active document stylesheet is removed." |
3306 }, | 3307 }, |
3307 { | 3308 { |
3308 "name": "layoutEditorChange", | 3309 "name": "layoutEditorChange", |
3309 "parameters": [ | 3310 "parameters": [ |
3310 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Identifier of the stylesheet where the modification occurred." }, | 3311 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Identifier of the stylesheet where the modification occurred." }, |
3311 { "name": "changeRange", "$ref": "SourceRange", "description ": "Range where the modification occurred." } | 3312 { "name": "changeRange", "$ref": "Runtime.SourceRange", "des cription": "Range where the modification occurred." } |
3312 ] | 3313 ] |
3313 } | 3314 } |
3314 ] | 3315 ] |
3315 }, | 3316 }, |
3316 { | 3317 { |
3317 "domain": "IO", | 3318 "domain": "IO", |
3318 "description": "Input/Output operations for streams produced by DevTools .", | 3319 "description": "Input/Output operations for streams produced by DevTools .", |
3319 "hidden": true, | 3320 "hidden": true, |
3320 "types": [ | 3321 "types": [ |
3321 { | 3322 { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3367 "id": "Location", | 3368 "id": "Location", |
3368 "type": "object", | 3369 "type": "object", |
3369 "properties": [ | 3370 "properties": [ |
3370 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Script identifier as reported in the <code>Debugger.scriptParsed</code>." }, | 3371 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Script identifier as reported in the <code>Debugger.scriptParsed</code>." }, |
3371 { "name": "lineNumber", "type": "integer", "description": "L ine number in the script (0-based)." }, | 3372 { "name": "lineNumber", "type": "integer", "description": "L ine number in the script (0-based)." }, |
3372 { "name": "columnNumber", "type": "integer", "optional": tru e, "description": "Column number in the script (0-based)." } | 3373 { "name": "columnNumber", "type": "integer", "optional": tru e, "description": "Column number in the script (0-based)." } |
3373 ], | 3374 ], |
3374 "description": "Location in the source code." | 3375 "description": "Location in the source code." |
3375 }, | 3376 }, |
3376 { | 3377 { |
3377 "id": "ScriptPosition", | |
3378 "hidden": true, | |
3379 "type": "object", | |
3380 "properties": [ | |
3381 { "name": "line", "type": "integer" }, | |
3382 { "name": "column", "type": "integer" } | |
3383 ], | |
3384 "description": "Location in the source code." | |
3385 }, | |
3386 { | |
3387 "id": "FunctionDetails", | 3378 "id": "FunctionDetails", |
3388 "hidden": true, | 3379 "hidden": true, |
3389 "type": "object", | 3380 "type": "object", |
3390 "properties": [ | 3381 "properties": [ |
3391 { "name": "location", "$ref": "Location", "optional": true, "description": "Location of the function, none for native functions." }, | 3382 { "name": "location", "$ref": "Location", "optional": true, "description": "Location of the function, none for native functions." }, |
3392 { "name": "functionName", "type": "string", "description": " Name of the function." }, | 3383 { "name": "functionName", "type": "string", "description": " Name of the function." }, |
3393 { "name": "isGenerator", "type": "boolean", "description": " Whether this is a generator function." }, | 3384 { "name": "isGenerator", "type": "boolean", "description": " Whether this is a generator function." }, |
3394 { "name": "scopeChain", "type": "array", "optional": true, " items": { "$ref": "Scope" }, "description": "Scope chain for this closure." } | 3385 { "name": "scopeChain", "type": "array", "optional": true, " items": { "$ref": "Scope" }, "description": "Scope chain for this closure." } |
3395 ], | 3386 ], |
3396 "description": "Information about the function." | 3387 "description": "Information about the function." |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3688 }, | 3679 }, |
3689 { | 3680 { |
3690 "name": "setAsyncCallStackDepth", | 3681 "name": "setAsyncCallStackDepth", |
3691 "parameters": [ | 3682 "parameters": [ |
3692 { "name": "maxDepth", "type": "integer", "description": "Max imum depth of async call stacks. Setting to <code>0</code> will effectively disa ble collecting async call stacks (default)." } | 3683 { "name": "maxDepth", "type": "integer", "description": "Max imum depth of async call stacks. Setting to <code>0</code> will effectively disa ble collecting async call stacks (default)." } |
3693 ], | 3684 ], |
3694 "hidden": true, | 3685 "hidden": true, |
3695 "description": "Enables or disables async call stacks tracking." | 3686 "description": "Enables or disables async call stacks tracking." |
3696 }, | 3687 }, |
3697 { | 3688 { |
3698 "name": "setBlackboxedRanges", | 3689 "name": "setBlackboxPatterns", |
3699 "parameters": [ | 3690 "parameters": [ |
3700 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Id of the script." }, | 3691 { "name": "patterns", "type": "array", "items": { "type": "s tring" }, "description": "Array of regexps that will be used to check script url for blackbox state." } |
3701 { "name": "positions", "type": "array", "items": { "$ref": " ScriptPosition" } } | |
3702 ], | 3692 ], |
3703 "hidden": true, | 3693 "hidden": true, |
3704 "description": "Makes backend skip steps in the script in blackb oxed ranges. VM will try leave blacklisted scripts by performing 'step in' sever al times, finally resorting to 'step out' if unsuccessful. Positions array conta ins positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted." | 3694 "description": "Replace previous blackbox patterns with passed o ne. Makes backend skip steps in the script in blackboxed ranges. VM will try lea ve blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful." |
dgozman
2016/04/20 02:06:40
Replace previous blackbox patterns with passed one
| |
3695 }, | |
3696 { | |
3697 "name": "setScriptBlackboxed", | |
3698 "parameters": [ | |
3699 { "name": "hash", "type": "string", "optional": true }, | |
3700 { "name": "url", "type": "string", "optional": true }, | |
3701 { "name": "ranges", "type": "array", "items": { "$ref": "Run time.SourceRange" }, "optional": true, "description": "Ranges should be sorted. If ranges is omitted then whole script will be blackboxed." } | |
3702 ], | |
3703 "hidden": true, | |
3704 "description": "Set blackboxed ranges for script with given hash or url. Makes backend skip steps in the script in blackboxed ranges. VM will tr y leave blacklisted scripts by performing 'step in' several times, finally resor ting to 'step out' if unsuccessful." | |
dgozman
2016/04/20 02:06:40
Set blackboxed ranges for script with given hash o
| |
3705 } | 3705 } |
3706 ], | 3706 ], |
3707 "events": [ | 3707 "events": [ |
3708 { | 3708 { |
3709 "name": "scriptParsed", | 3709 "name": "scriptParsed", |
3710 "parameters": [ | 3710 "parameters": [ |
3711 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Identifier of the script parsed." }, | 3711 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Identifier of the script parsed." }, |
3712 { "name": "url", "type": "string", "description": "URL or na me of the script parsed (if any)." }, | 3712 { "name": "url", "type": "string", "description": "URL or na me of the script parsed (if any)." }, |
3713 { "name": "startLine", "type": "integer", "description": "Li ne offset of the script within the resource with given URL (for script tags)." } , | 3713 { "name": "startLine", "type": "integer", "description": "Li ne offset of the script within the resource with given URL (for script tags)." } , |
3714 { "name": "startColumn", "type": "integer", "description": " Column offset of the script within the resource with given URL." }, | 3714 { "name": "startColumn", "type": "integer", "description": " Column offset of the script within the resource with given URL." }, |
(...skipping 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5067 ], | 5067 ], |
5068 "returns": [ | 5068 "returns": [ |
5069 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } | 5069 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } |
5070 ], | 5070 ], |
5071 "description": "Fetches the accessibility node for this DOM node , if it exists.", | 5071 "description": "Fetches the accessibility node for this DOM node , if it exists.", |
5072 "hidden": true | 5072 "hidden": true |
5073 } | 5073 } |
5074 ] | 5074 ] |
5075 }] | 5075 }] |
5076 } | 5076 } |
OLD | NEW |