summaryrefslogtreecommitdiff
path: root/Source/devtools/protocol.json
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2014-04-10 11:22:39 +0100
committerBen Murdoch <benm@google.com>2014-04-10 11:22:39 +0100
commita9984bf9ddc3cf73fdae3f29134a2bab379e7029 (patch)
tree64beb56990a736ecdee359b34bbbe5c35c98470f /Source/devtools/protocol.json
parent62da73c97b73427f2604ddb66ea735314d433920 (diff)
downloadWebKit-a9984bf9ddc3cf73fdae3f29134a2bab379e7029.tar.gz
Merge from Chromium at DEPS revision 262940
This commit was generated by merge_to_master.py. Change-Id: I767658f35150c8e0099156a5a5daf4bdf7e8ae0f
Diffstat (limited to 'Source/devtools/protocol.json')
-rw-r--r--Source/devtools/protocol.json45
1 files changed, 14 insertions, 31 deletions
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index 3d9800e4e..cbd91ad7b 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -2392,30 +2392,12 @@
"type": "string"
},
{
- "id": "CSSStyleId",
- "type": "object",
- "properties": [
- { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Enclosing stylesheet identifier." },
- { "name": "ordinal", "type": "integer", "description": "The style ordinal within the stylesheet." }
- ],
- "description": "This object identifies a CSS style in a unique way."
- },
- {
"id": "StyleSheetOrigin",
"type": "string",
"enum": ["user", "user-agent", "inspector", "regular"],
"description": "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."
},
{
- "id": "CSSRuleId",
- "type": "object",
- "properties": [
- { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Enclosing stylesheet identifier." },
- { "name": "ordinal", "type": "integer", "description": "The rule ordinal within the stylesheet." }
- ],
- "description": "This object identifies a CSS rule in a unique way."
- },
- {
"id": "PseudoIdMatches",
"type": "object",
"properties": [
@@ -2482,9 +2464,8 @@
"id": "CSSRule",
"type": "object",
"properties": [
- { "name": "ruleId", "$ref": "CSSRuleId", "optional": true, "description": "The CSS rule identifier (absent for user agent stylesheet and user-specified stylesheet rules)."},
+ { "name": "styleSheetId", "$ref": "StyleSheetId", "optional": true, "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from." },
{ "name": "selectorList", "$ref": "SelectorList", "description": "Rule selector data." },
- { "name": "sourceURL", "type": "string", "optional": true, "description": "Parent stylesheet resource URL (for regular rules)."},
{ "name": "origin", "$ref": "StyleSheetOrigin", "description": "Parent stylesheet's origin."},
{ "name": "style", "$ref": "CSSStyle", "description": "Associated style declaration." },
{ "name": "media", "type": "array", "items": { "$ref": "CSSMedia" }, "optional": true, "description": "Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards." }
@@ -2522,7 +2503,7 @@
"id": "CSSStyle",
"type": "object",
"properties": [
- { "name": "styleId", "$ref": "CSSStyleId", "optional": true, "description": "The CSS style identifier (absent for attribute styles)." },
+ { "name": "styleSheetId", "$ref": "StyleSheetId", "optional": true, "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from." },
{ "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)." },
@@ -2641,25 +2622,25 @@
{ "name": "styleSheetId", "$ref": "StyleSheetId" },
{ "name": "text", "type": "string" }
],
- "description": "Sets the new stylesheet text, thereby invalidating all existing <code>CSSStyleId</code>'s and <code>CSSRuleId</code>'s contained by this stylesheet."
+ "description": "Sets the new stylesheet text."
},
{
"name": "setPropertyText",
"parameters": [
- { "name": "styleId", "$ref": "CSSStyleId" },
- { "name": "propertyIndex", "type": "integer" },
- { "name": "text", "type": "string" },
- { "name": "overwrite", "type": "boolean" }
+ { "name": "styleSheetId", "$ref": "StyleSheetId" },
+ { "name": "range", "$ref": "SourceRange", "description": "Either a source range of the property to be edited or an empty range representing a position for the property insertion." },
+ { "name": "text", "type": "string" }
],
"returns": [
{ "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the property text modification." }
],
- "description": "Sets the new <code>text</code> for a property in the respective style, at offset <code>propertyIndex</code>. If <code>overwrite</code> is <code>true</code>, a property at the given offset is overwritten, otherwise inserted. <code>text</code> entirely replaces the property <code>name: value</code>."
+ "description": "Either replaces a property identified by <code>styleSheetId</code> and <code>range</code> with <code>text</code> or inserts a new property <code>text</code> at the position identified by an empty <code>range</code>."
},
{
"name": "setRuleSelector",
"parameters": [
- { "name": "ruleId", "$ref": "CSSRuleId" },
+ { "name": "styleSheetId", "$ref": "StyleSheetId" },
+ { "name": "range", "$ref": "SourceRange" },
{ "name": "selector", "type": "string" }
],
"returns": [
@@ -2737,7 +2718,8 @@
{ "name": "nodes", "type": "integer", "optional": true },
{ "name": "jsEventListeners", "type": "integer", "optional": true },
{ "name": "jsHeapSizeUsed", "type": "number", "optional": true, "description": "Currently used size of JS heap." },
- { "name": "gpuMemoryUsedKB", "type": "number", "optional": true, "description": "Current GPU memory usage in kilobytes." }
+ { "name": "gpuMemoryUsedKB", "type": "number", "optional": true, "description": "Current GPU memory usage in kilobytes." },
+ { "name": "gpuMemoryLimitKB", "type": "number", "optional": true, "description": "Current GPU memory limit in kilobytes." }
],
"description": "Current values of counters.",
"hidden": true
@@ -3104,7 +3086,8 @@
"hidden": true,
"parameters": [
{ "name": "expression", "type": "string", "description": "Expression to compile." },
- { "name": "sourceURL", "type": "string", "description": "Source url to be set for the script." }
+ { "name": "sourceURL", "type": "string", "description": "Source url to be set for the script." },
+ { "name": "executionContextId", "$ref": "Runtime.ExecutionContextId", "optional": true, "description": "Specifies in which isolated context to perform script run. 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." }
],
"returns": [
{ "name": "scriptId", "$ref": "ScriptId", "optional": true, "description": "Id of the script." },
@@ -3117,7 +3100,7 @@
"hidden": true,
"parameters": [
{ "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to run." },
- { "name": "contextId", "$ref": "Runtime.ExecutionContextId", "optional": true, "description": "Specifies in which isolated context to perform script run. 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." },
+ { "name": "executionContextId", "$ref": "Runtime.ExecutionContextId", "optional": true, "description": "Specifies in which isolated context to perform script run. 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." },
{ "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." },
{ "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether script run should stop on exceptions and mute console. Overrides setPauseOnException state." }
],