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

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: address all comments Created 6 years, 10 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
« no previous file with comments | « Source/core/inspector/InspectorStyleSheet.cpp ('k') | Source/wtf/text/TextPosition.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2629 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, thereby invalidati ng all existing <code>CSSStyleId</code>'s and <code>CSSRuleId</code>'s contained by this stylesheet."
2648 }, 2648 },
2649 { 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 "description": "Replace stylesheet text range with a new text, t hereby invalidating all existing <code>CSSStyleId</code>'s and <code>CSSRuleId</ code>'s contained by this stylesheet.",
vsevik 2014/02/25 10:42:42 Replace stylesheet text range with a new text. Thi
lushnikov 2014/02/25 11:05:44 Done.
2657 "hidden": true
2658 },
2659 {
2650 "name": "setPropertyText", 2660 "name": "setPropertyText",
2651 "parameters": [ 2661 "parameters": [
2652 { "name": "styleId", "$ref": "CSSStyleId" }, 2662 { "name": "styleId", "$ref": "CSSStyleId" },
2653 { "name": "propertyIndex", "type": "integer" }, 2663 { "name": "propertyIndex", "type": "integer" },
2654 { "name": "text", "type": "string" }, 2664 { "name": "text", "type": "string" },
2655 { "name": "overwrite", "type": "boolean" } 2665 { "name": "overwrite", "type": "boolean" }
2656 ], 2666 ],
2657 "returns": [ 2667 "returns": [
2658 { "name": "style", "$ref": "CSSStyle", "description": "The r esulting style after the property text modification." } 2668 { "name": "style", "$ref": "CSSStyle", "description": "The r esulting style after the property text modification." }
2659 ], 2669 ],
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after
4044 { 4054 {
4045 "name": "dataAvailable", 4055 "name": "dataAvailable",
4046 "parameters": [ 4056 "parameters": [
4047 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." } 4057 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." }
4048 ], 4058 ],
4049 "handlers": ["browser", "frontend"] 4059 "handlers": ["browser", "frontend"]
4050 } 4060 }
4051 ] 4061 ]
4052 }] 4062 }]
4053 } 4063 }
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorStyleSheet.cpp ('k') | Source/wtf/text/TextPosition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698