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

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

Issue 441873010: DevTools: [SSP] Implement adding new rule in user stylesheet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: minor changes Created 6 years, 4 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 | Annotate | Revision Log
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 2787 matching lines...) Expand 10 before | Expand all | Expand 10 after
2798 { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame where \"via-inspector\" stylesheet should be created."} 2798 { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame where \"via-inspector\" stylesheet should be created."}
2799 ], 2799 ],
2800 "returns": [ 2800 "returns": [
2801 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Identifier of the created \"via-inspector\" stylesheet." } 2801 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Identifier of the created \"via-inspector\" stylesheet." }
2802 ], 2802 ],
2803 "description": "Creates a new special \"via-inspector\" styleshe et in the frame with given <code>frameId</code>." 2803 "description": "Creates a new special \"via-inspector\" styleshe et in the frame with given <code>frameId</code>."
2804 }, 2804 },
2805 { 2805 {
2806 "name": "addRule", 2806 "name": "addRule",
2807 "parameters": [ 2807 "parameters": [
2808 { "name": "styleSheetId", "$ref": "StyleSheetId" }, 2808 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "The css style sheet identifier where a new rule should be inserted." },
2809 { "name": "selector", "type": "string" } 2809 { "name": "ruleText", "type": "string", "description": "The text of a new rule." },
2810 { "name": "location", "$ref": "SourceRange", "description": "Text position of a new rule in the target style sheet." }
2810 ], 2811 ],
2811 "returns": [ 2812 "returns": [
2812 { "name": "rule", "$ref": "CSSRule", "description": "The new ly created rule." } 2813 { "name": "rule", "$ref": "CSSRule", "description": "The new ly created rule." }
2813 ], 2814 ],
2814 "description": "Creates a new empty rule with the given <code>se lector</code> in a stylesheet with given <code>styleSheetId</code>." 2815 "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>."
2815 }, 2816 },
2816 { 2817 {
2817 "name": "forcePseudoState", 2818 "name": "forcePseudoState",
2818 "parameters": [ 2819 "parameters": [
2819 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Th e element id for which to force the pseudo state." }, 2820 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Th e element id for which to force the pseudo state." },
2820 { "name": "forcedPseudoClasses", "type": "array", "items": { "type": "string", "enum": ["active", "focus", "hover", "visited"] }, "descripti on": "Element pseudo classes to force when computing the element's style." } 2821 { "name": "forcedPseudoClasses", "type": "array", "items": { "type": "string", "enum": ["active", "focus", "hover", "visited"] }, "descripti on": "Element pseudo classes to force when computing the element's style." }
2821 ], 2822 ],
2822 "description": "Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser." 2823 "description": "Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser."
2823 }, 2824 },
2824 { 2825 {
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
4285 { 4286 {
4286 "name": "dataAvailable", 4287 "name": "dataAvailable",
4287 "parameters": [ 4288 "parameters": [
4288 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." } 4289 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." }
4289 ], 4290 ],
4290 "handlers": ["browser", "frontend"] 4291 "handlers": ["browser", "frontend"]
4291 } 4292 }
4292 ] 4293 ]
4293 }] 4294 }]
4294 } 4295 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698