Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: third_party/WebKit/Source/devtools/protocol.json

Issue 1808533002: DevTools: wrap console evaluation with user gesture indicator for convenience. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 "commands": [ 918 "commands": [
919 { 919 {
920 "name": "evaluate", 920 "name": "evaluate",
921 "parameters": [ 921 "parameters": [
922 { "name": "expression", "type": "string", "description": "Ex pression to evaluate." }, 922 { "name": "expression", "type": "string", "description": "Ex pression to evaluate." },
923 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." }, 923 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." },
924 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation.", "hidden": true }, 924 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation.", "hidden": true },
925 { "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 }, 925 { "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 },
926 { "name": "contextId", "$ref": "ExecutionContextId", "option al": true, "description": "Specifies in which isolated context to perform evalua tion. 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 eva luation will be performed in the context of the inspected page." }, 926 { "name": "contextId", "$ref": "ExecutionContextId", "option al": true, "description": "Specifies in which isolated context to perform evalua tion. 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 eva luation will be performed in the context of the inspected page." },
927 { "name": "returnByValue", "type": "boolean", "optional": tr ue, "description": "Whether the result is expected to be a JSON object that shou ld be sent by value." }, 927 { "name": "returnByValue", "type": "boolean", "optional": tr ue, "description": "Whether the result is expected to be a JSON object that shou ld be sent by value." },
928 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for th e result." } 928 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for th e result." },
929 { "name": "userGesture", "type": "boolean", "optional": true , "hidden": true, "description": "Whether execution should be treated as initiat ed by user in the UI." }
929 ], 930 ],
930 "returns": [ 931 "returns": [
931 { "name": "result", "$ref": "RemoteObject", "description": " Evaluation result." }, 932 { "name": "result", "$ref": "RemoteObject", "description": " Evaluation result." },
932 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }, 933 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." },
933 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "hidden": true, "description": "Exception details."} 934 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "hidden": true, "description": "Exception details."}
934 ], 935 ],
935 "description": "Evaluates expression on global object." 936 "description": "Evaluates expression on global object."
936 }, 937 },
937 { 938 {
938 "name": "callFunctionOn", 939 "name": "callFunctionOn",
939 "parameters": [ 940 "parameters": [
940 { "name": "objectId", "$ref": "RemoteObjectId", "description ": "Identifier of the object to call function on." }, 941 { "name": "objectId", "$ref": "RemoteObjectId", "description ": "Identifier of the object to call function on." },
941 { "name": "functionDeclaration", "type": "string", "descript ion": "Declaration of the function to call." }, 942 { "name": "functionDeclaration", "type": "string", "descript ion": "Declaration of the function to call." },
942 { "name": "arguments", "type": "array", "items": { "$ref": " CallArgument", "description": "Call argument." }, "optional": true, "description ": "Call arguments. All call arguments must belong to the same JavaScript world as the target object." }, 943 { "name": "arguments", "type": "array", "items": { "$ref": " CallArgument", "description": "Call argument." }, "optional": true, "description ": "Call arguments. All call arguments must belong to the same JavaScript world as the target object." },
943 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether function call shoul d stop on exceptions and mute console. Overrides setPauseOnException state.", "h idden": true }, 944 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether function call shoul d stop on exceptions and mute console. Overrides setPauseOnException state.", "h idden": true },
944 { "name": "returnByValue", "type": "boolean", "optional": tr ue, "description": "Whether the result is expected to be a JSON object which sho uld be sent by value." }, 945 { "name": "returnByValue", "type": "boolean", "optional": tr ue, "description": "Whether the result is expected to be a JSON object which sho uld be sent by value." },
945 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for th e result." } 946 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for th e result." },
947 { "name": "userGesture", "type": "boolean", "optional": true , "hidden": true, "description": "Whether execution should be treated as initiat ed by user in the UI." }
946 ], 948 ],
947 "returns": [ 949 "returns": [
948 { "name": "result", "$ref": "RemoteObject", "description": " Call result." }, 950 { "name": "result", "$ref": "RemoteObject", "description": " Call result." },
949 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." } 951 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }
950 ], 952 ],
951 "description": "Calls function with given declaration on the giv en object. Object group of the result is inherited from the target object." 953 "description": "Calls function with given declaration on the giv en object. Object group of the result is inherited from the target object."
952 }, 954 },
953 { 955 {
954 "name": "getProperties", 956 "name": "getProperties",
955 "parameters": [ 957 "parameters": [
(...skipping 4199 matching lines...) Expand 10 before | Expand all | Expand 10 after
5155 ], 5157 ],
5156 "returns": [ 5158 "returns": [
5157 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } 5159 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true }
5158 ], 5160 ],
5159 "description": "Fetches the accessibility node for this DOM node , if it exists.", 5161 "description": "Fetches the accessibility node for this DOM node , if it exists.",
5160 "hidden": true 5162 "hidden": true
5161 } 5163 }
5162 ] 5164 ]
5163 }] 5165 }]
5164 } 5166 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698