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

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

Issue 172593003: DevTools: [CSS] Add CSS.editRangeInStyleSheetText() to the protocol (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix glitch Created 6 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 | 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 2626 matching lines...) Expand 10 before | Expand all | Expand 10 after
2637 { "name": "text", "type": "string", "description": "The styl esheet text." } 2637 { "name": "text", "type": "string", "description": "The styl esheet text." }
2638 ], 2638 ],
2639 "description": "Returns the current textual content and the URL for a stylesheet." 2639 "description": "Returns the current textual content and the URL for a stylesheet."
2640 }, 2640 },
2641 { 2641 {
2642 "name": "setStyleSheetText", 2642 "name": "setStyleSheetText",
2643 "parameters": [ 2643 "parameters": [
2644 { "name": "styleSheetId", "$ref": "StyleSheetId" }, 2644 { "name": "styleSheetId", "$ref": "StyleSheetId" },
2645 { "name": "text", "type": "string" } 2645 { "name": "text", "type": "string" }
2646 ], 2646 ],
2647 "description": "Sets the new stylesheet text, thereby invalidati ng all existing <code>CSSStyleId</code>'s and <code>CSSRuleId</code>'s contained by this stylesheet." 2647 "description": "Sets the new stylesheet text. This will invalida te all existing <code>CSSStyleId</code>s and <code>CSSRuleId</code>s contained b y this stylesheet."
2648 },
2649 {
2650 "name": "editRangeInStyleSheetText",
2651 "parameters": [
2652 { "name": "styleSheetId", "$ref": "StyleSheetId" },
2653 { "name": "range", "$ref": "SourceRange", "description": "So urce range to be replaced in stylesheet text." },
2654 { "name": "text", "type": "string", "description": "Text tha t will replace given range in the stylesheet text." }
2655 ],
2656 "returns": [
2657 { "name": "rule", "$ref": "CSSRule", "optional": true, "desc ription": "The resulting rule after the selector modification." },
2658 { "name": "style", "$ref": "CSSStyle", "optional": true, "de scription": "The updated style which the editing was scoped to." }
2659 ],
2660 "description": "Replace stylesheet text range with a new text. T his will invalidate all existing <code>CSSStyleId</code>s and <code>CSSRuleId</c ode>s contained by this stylesheet."
2648 }, 2661 },
2649 { 2662 {
2650 "name": "setPropertyText", 2663 "name": "setPropertyText",
2651 "parameters": [ 2664 "parameters": [
2652 { "name": "styleId", "$ref": "CSSStyleId" }, 2665 { "name": "styleId", "$ref": "CSSStyleId" },
2653 { "name": "propertyIndex", "type": "integer" }, 2666 { "name": "propertyIndex", "type": "integer" },
2654 { "name": "text", "type": "string" }, 2667 { "name": "text", "type": "string" },
2655 { "name": "overwrite", "type": "boolean" } 2668 { "name": "overwrite", "type": "boolean" }
2656 ], 2669 ],
2657 "returns": [ 2670 "returns": [
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
4063 { 4076 {
4064 "name": "dataAvailable", 4077 "name": "dataAvailable",
4065 "parameters": [ 4078 "parameters": [
4066 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." } 4079 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." }
4067 ], 4080 ],
4068 "handlers": ["browser", "frontend"] 4081 "handlers": ["browser", "frontend"]
4069 } 4082 }
4070 ] 4083 ]
4071 }] 4084 }]
4072 } 4085 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698