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

Side by Side Diff: components/ui_devtools/protocol.json

Issue 2548103002: Make bounds editable through the CSS sidepanel (Closed)
Patch Set: sadruls comments Created 4 years 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
« no previous file with comments | « ash/common/devtools/ash_devtools_css_agent.cc ('k') | no next file » | 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 "domains": [ 2 "domains": [
3 { 3 {
4 "commands": [ 4 "commands": [
5 { 5 {
6 "description": "Enables DOM agent for the given page.", 6 "description": "Enables DOM agent for the given page.",
7 "name": "enable" 7 "name": "enable"
8 }, 8 },
9 { 9 {
10 "description": "Disables DOM agent for the given page.", 10 "description": "Disables DOM agent for the given page.",
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 "name": "nodeId" 217 "name": "nodeId"
218 } 218 }
219 ], 219 ],
220 "returns": [ 220 "returns": [
221 { 221 {
222 "$ref": "CSSStyle", 222 "$ref": "CSSStyle",
223 "description": "Inline style for the specified DOM n ode.", 223 "description": "Inline style for the specified DOM n ode.",
224 "name": "inlineStyle", 224 "name": "inlineStyle",
225 "optional": true 225 "optional": true
226 } 226 }
227
228 ]
229 },
230 {
231 "description": "Applies specified style edits one after anot her in the given order.",
232 "name": "setStyleTexts",
233 "parameters": [
234 {
235 "items": {
236 "$ref": "StyleDeclarationEdit"
237 },
238 "type": "array",
239 "name": "edits"
240 }
241 ],
242 "returns": [
243 {
244 "items": {
245 "$ref": "CSSStyle"
246 },
247 "type": "array",
248 "name": "styles",
249 "description": "The resulting styles after modificat ion."
250 }
227 ] 251 ]
228 } 252 }
229 ], 253 ],
230 "events": [ 254 "events": [
231 { 255 {
232 "name": "styleSheetChanged", 256 "name": "styleSheetChanged",
233 "parameters": [ 257 "parameters": [
234 { 258 {
235 "name": "styleSheetId", 259 "name": "styleSheetId",
236 "$ref": "StyleSheetId" 260 "$ref": "StyleSheetId"
237 } 261 }
238 ], 262 ],
239 "description": "Fired whenever any bounds are updated for an y object." 263 "description": "Fired whenever any bounds are updated for an y object."
240 } 264 }
241 ], 265 ],
242 "domain": "CSS", 266 "domain": "CSS",
243 "types": [ 267 "types": [
244 { 268 {
245 "id": "StyleSheetId", 269 "id": "StyleSheetId",
246 "type": "string" 270 "type": "string"
247 }, 271 },
248 { 272 {
273 "description": "Text range within a resource. All numbers ar e zero-based.",
274 "type": "object",
275 "id": "SourceRange",
276 "properties": [
277 {
278 "type": "integer",
279 "name": "startLine",
280 "description": "Start line of range."
281 },
282 {
283 "type": "integer",
284 "name": "startColumn",
285 "description": "Start column of range (inclusive)."
286 },
287 {
288 "type": "integer",
289 "name": "endLine",
290 "description": "End line of range"
291 },
292 {
293 "type": "integer",
294 "name": "endColumn",
295 "description": "End column of range (exclusive)."
296 }
297 ]
298 },
299 {
300 "description": "A descriptor of operation to mutate style de claration text.",
301 "type": "object",
302 "id": "StyleDeclarationEdit",
303 "properties": [
304 {
305 "description": "The css style sheet identifier (same as NodeId for UI DevTools).",
306 "name": "styleSheetId",
307 "$ref": "StyleSheetId"
308 },
309 {
310 "type": "string",
311 "name": "text",
312 "description": "New style text."
313 }
314 ]
315 },
316 {
249 "id": "CSSProperty", 317 "id": "CSSProperty",
250 "properties": [ 318 "properties": [
251 { 319 {
252 "description": "The property name.", 320 "description": "The property name.",
253 "name": "name", 321 "name": "name",
254 "type": "string" 322 "type": "string"
255 }, 323 },
256 { 324 {
257 "description": "The property value.", 325 "description": "The property value.",
258 "name": "value", 326 "name": "value",
259 "type": "string" 327 "type": "string"
328 },
329 {
330 "name": "range",
331 "$ref": "SourceRange",
332 "optional": true,
333 "description": "The entire property range in the enc losing style declaration (if available)."
260 } 334 }
261 ], 335 ],
262 "type": "object" 336 "type": "object"
263 }, 337 },
264 { 338 {
265 "description": "CSS style representation.", 339 "description": "CSS style representation.",
266 "id": "CSSStyle", 340 "id": "CSSStyle",
267 "properties": [ 341 "properties": [
268 { 342 {
269 "description": "The css style sheet identifier (abse nt for user agent stylesheet and user-specified stylesheet rules) this rule came from. For UI devtools, this is simply equivalent to the NodeId.", 343 "description": "The css style sheet identifier (abse nt for user agent stylesheet and user-specified stylesheet rules) this rule came from. For UI devtools, this is simply equivalent to the NodeId.",
270 "optional": true, 344 "optional": true,
271 "name": "styleSheetId", 345 "name": "styleSheetId",
272 "$ref": "StyleSheetId" 346 "$ref": "StyleSheetId"
273 }, 347 },
274 { 348 {
275 "description": "CSS properties in the style.", 349 "description": "CSS properties in the style.",
276 "items": { 350 "items": {
277 "$ref": "CSSProperty" 351 "$ref": "CSSProperty"
278 }, 352 },
279 "name": "cssProperties", 353 "name": "cssProperties",
280 "type": "array" 354 "type": "array"
281 }, 355 },
282 { 356 {
283 "description": "Frontend requires us to pass this. W e just pass an empty array.", 357 "description": "Frontend requires us to pass this. W e just pass an empty array.",
284 "items": { 358 "items": {
285 "type": "string" 359 "type": "string"
286 }, 360 },
287 "name": "shorthandEntries", 361 "name": "shorthandEntries",
288 "type": "array" 362 "type": "array"
363 },
364 {
365 "description": "Style declaration range in the enclo sing stylesheet (if available).",
366 "optional": true,
367 "name": "range",
368 "$ref": "SourceRange"
289 } 369 }
290 ], 370 ],
291 "type": "object" 371 "type": "object"
292 } 372 }
293 ] 373 ]
294 } 374 }
295 ], 375 ],
296 "version": { 376 "version": {
297 "major": "1", 377 "major": "1",
298 "minor": "0" 378 "minor": "0"
299 } 379 }
300 } 380 }
OLDNEW
« no previous file with comments | « ash/common/devtools/ash_devtools_css_agent.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698