Index: third_party/WebKit/Source/devtools/protocol.json |
diff --git a/third_party/WebKit/Source/devtools/protocol.json b/third_party/WebKit/Source/devtools/protocol.json |
index 211e420f162c10ed023ae9138e8390149d4df333..631d59b3390973beea0ebce61e6dbeeb0465306c 100644 |
--- a/third_party/WebKit/Source/devtools/protocol.json |
+++ b/third_party/WebKit/Source/devtools/protocol.json |
@@ -897,6 +897,18 @@ |
{ "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "JavaScript function name." }, |
{ "name": "parent", "$ref": "StackTrace", "optional": true, "hidden": true, "hidden": true, "description": "Asynchronous JavaScript stack trace that preceded this stack, if available." } |
] |
+ }, |
+ { |
+ "id": "SourceRange", |
+ "type": "object", |
+ "properties": [ |
+ { "name": "startLine", "type": "integer", "description": "Start line of range." }, |
+ { "name": "startColumn", "type": "integer", "description": "Start column of range (inclusive)." }, |
+ { "name": "endLine", "type": "integer", "description": "End line of range" }, |
+ { "name": "endColumn", "type": "integer", "description": "End column of range (exclusive)." } |
+ ], |
+ "description": "Text range within a resource. All numbers are zero-based.", |
+ "hidden": true |
} |
], |
"commands": [ |
@@ -2918,7 +2930,7 @@ |
"type": "object", |
"properties": [ |
{ "name": "text", "type": "string", "description": "Value text." }, |
- { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Value range in the underlying resource (if available)." } |
+ { "name": "range", "$ref": "Runtime.SourceRange", "optional": true, "description": "Value range in the underlying resource (if available)." } |
], |
"description": "Data for a simple selector (these are delimited by commas in a selector list)." |
}, |
@@ -2963,17 +2975,6 @@ |
"description": "CSS rule representation." |
}, |
{ |
- "id": "SourceRange", |
dgozman
2016/04/20 02:06:40
Let's keep two SourceRanges.
|
- "type": "object", |
- "properties": [ |
- { "name": "startLine", "type": "integer", "description": "Start line of range." }, |
- { "name": "startColumn", "type": "integer", "description": "Start column of range (inclusive)." }, |
- { "name": "endLine", "type": "integer", "description": "End line of range" }, |
- { "name": "endColumn", "type": "integer", "description": "End column of range (exclusive)." } |
- ], |
- "description": "Text range within a resource. All numbers are zero-based." |
- }, |
- { |
"id": "ShorthandEntry", |
"type": "object", |
"properties": [ |
@@ -2998,7 +2999,7 @@ |
{ "name": "cssProperties", "type": "array", "items": { "$ref": "CSSProperty" }, "description": "CSS properties in the style." }, |
{ "name": "shorthandEntries", "type": "array", "items": { "$ref": "ShorthandEntry" }, "description": "Computed values for all shorthands found in the style." }, |
{ "name": "cssText", "type": "string", "optional": true, "description": "Style declaration text (if available)." }, |
- { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Style declaration range in the enclosing stylesheet (if available)." } |
+ { "name": "range", "$ref": "Runtime.SourceRange", "optional": true, "description": "Style declaration range in the enclosing stylesheet (if available)." } |
], |
"description": "CSS style representation." |
}, |
@@ -3013,7 +3014,7 @@ |
{ "name": "text", "type": "string", "optional": true, "description": "The full property text as specified in the style." }, |
{ "name": "parsedOk", "type": "boolean", "optional": true, "description": "Whether the property is understood by the browser (implies <code>true</code> if absent)." }, |
{ "name": "disabled", "type": "boolean", "optional": true, "description": "Whether the property is disabled by the user (present for source-based properties only)." }, |
- { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The entire property range in the enclosing style declaration (if available)." } |
+ { "name": "range", "$ref": "Runtime.SourceRange", "optional": true, "description": "The entire property range in the enclosing style declaration (if available)." } |
], |
"description": "CSS property declaration data." |
}, |
@@ -3024,7 +3025,7 @@ |
{ "name": "text", "type": "string", "description": "Media query text." }, |
{ "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\" attribute in an inline stylesheet's STYLE tag." }, |
{ "name": "sourceURL", "type": "string", "optional": true, "description": "URL of the document containing the media query description." }, |
- { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The associated rule (@media or @import) header range in the enclosing stylesheet (if available)." }, |
+ { "name": "range", "$ref": "Runtime.SourceRange", "optional": true, "description": "The associated rule (@media or @import) header range in the enclosing stylesheet (if available)." }, |
{ "name": "parentStyleSheetId", "$ref": "StyleSheetId", "optional": true, "description": "Identifier of the stylesheet containing this object (if exists)." }, |
{ "name": "mediaList", "type": "array", "items": { "$ref": "MediaQuery" }, "optional": true, "hidden": true, "description": "Array of media queries." } |
], |
@@ -3047,7 +3048,7 @@ |
{ "name": "value", "type": "number", "description": "Media query expression value."}, |
{ "name": "unit", "type": "string", "description": "Media query expression units."}, |
{ "name": "feature", "type": "string", "description": "Media query expression feature."}, |
- { "name": "valueRange", "$ref": "SourceRange", "optional": true, "description": "The associated range of the value text in the enclosing stylesheet (if available)." }, |
+ { "name": "valueRange", "$ref": "Runtime.SourceRange", "optional": true, "description": "The associated range of the value text in the enclosing stylesheet (if available)." }, |
{ "name": "computedLength", "type": "number", "optional": true, "description": "Computed length of media query expression (if applicable)."} |
], |
"description": "Media query expression descriptor.", |
@@ -3089,7 +3090,7 @@ |
"type": "object", |
"properties": [ |
{ "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The css style sheet identifier." }, |
- { "name": "range", "$ref": "SourceRange", "description": "The range of the style text in the enclosing stylesheet." }, |
+ { "name": "range", "$ref": "Runtime.SourceRange", "description": "The range of the style text in the enclosing stylesheet." }, |
{ "name": "text", "type": "string", "description": "New style text."} |
], |
"description": "A descriptor of operation to mutate style declaration text." |
@@ -3177,7 +3178,7 @@ |
"name": "setRuleSelector", |
"parameters": [ |
{ "name": "styleSheetId", "$ref": "StyleSheetId" }, |
- { "name": "range", "$ref": "SourceRange" }, |
+ { "name": "range", "$ref": "Runtime.SourceRange" }, |
{ "name": "selector", "type": "string" } |
], |
"returns": [ |
@@ -3189,7 +3190,7 @@ |
"name": "setKeyframeKey", |
"parameters": [ |
{ "name": "styleSheetId", "$ref": "StyleSheetId" }, |
- { "name": "range", "$ref": "SourceRange" }, |
+ { "name": "range", "$ref": "Runtime.SourceRange" }, |
{ "name": "keyText", "type": "string" } |
], |
"returns": [ |
@@ -3211,7 +3212,7 @@ |
"name": "setMediaText", |
"parameters": [ |
{ "name": "styleSheetId", "$ref": "StyleSheetId" }, |
- { "name": "range", "$ref": "SourceRange" }, |
+ { "name": "range", "$ref": "Runtime.SourceRange" }, |
{ "name": "text", "type": "string" } |
], |
"returns": [ |
@@ -3234,7 +3235,7 @@ |
"parameters": [ |
{ "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The css style sheet identifier where a new rule should be inserted." }, |
{ "name": "ruleText", "type": "string", "description": "The text of a new rule." }, |
- { "name": "location", "$ref": "SourceRange", "description": "Text position of a new rule in the target style sheet." } |
+ { "name": "location", "$ref": "Runtime.SourceRange", "description": "Text position of a new rule in the target style sheet." } |
], |
"returns": [ |
{ "name": "rule", "$ref": "CSSRule", "description": "The newly created rule." } |
@@ -3308,7 +3309,7 @@ |
"name": "layoutEditorChange", |
"parameters": [ |
{ "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Identifier of the stylesheet where the modification occurred." }, |
- { "name": "changeRange", "$ref": "SourceRange", "description": "Range where the modification occurred." } |
+ { "name": "changeRange", "$ref": "Runtime.SourceRange", "description": "Range where the modification occurred." } |
] |
} |
] |
@@ -3374,16 +3375,6 @@ |
"description": "Location in the source code." |
}, |
{ |
- "id": "ScriptPosition", |
- "hidden": true, |
- "type": "object", |
- "properties": [ |
- { "name": "line", "type": "integer" }, |
- { "name": "column", "type": "integer" } |
- ], |
- "description": "Location in the source code." |
- }, |
- { |
"id": "FunctionDetails", |
"hidden": true, |
"type": "object", |
@@ -3695,13 +3686,22 @@ |
"description": "Enables or disables async call stacks tracking." |
}, |
{ |
- "name": "setBlackboxedRanges", |
+ "name": "setBlackboxPatterns", |
+ "parameters": [ |
+ { "name": "patterns", "type": "array", "items": { "type": "string" }, "description": "Array of regexps that will be used to check script url for blackbox state." } |
+ ], |
+ "hidden": true, |
+ "description": "Replace previous blackbox patterns with passed one. Makes backend skip steps in the script in blackboxed ranges. VM will try leave 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
|
+ }, |
+ { |
+ "name": "setScriptBlackboxed", |
"parameters": [ |
- { "name": "scriptId", "$ref": "Runtime.ScriptId", "description": "Id of the script." }, |
- { "name": "positions", "type": "array", "items": { "$ref": "ScriptPosition" } } |
+ { "name": "hash", "type": "string", "optional": true }, |
+ { "name": "url", "type": "string", "optional": true }, |
+ { "name": "ranges", "type": "array", "items": { "$ref": "Runtime.SourceRange" }, "optional": true, "description": "Ranges should be sorted. If ranges is omitted then whole script will be blackboxed." } |
], |
"hidden": true, |
- "description": "Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted." |
+ "description": "Set blackboxed ranges for script with given hash or url. Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful." |
dgozman
2016/04/20 02:06:40
Set blackboxed ranges for script with given hash o
|
} |
], |
"events": [ |