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

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

Issue 198053011: DevTools: [CSS] remove StyleId and RuleId types from protocol.json (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline Created 6 years, 8 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 2374 matching lines...) Expand 10 before | Expand all | Expand 10 after
2385 { 2385 {
2386 "domain": "CSS", 2386 "domain": "CSS",
2387 "hidden": true, 2387 "hidden": true,
2388 "description": "This domain exposes CSS read/write operations. All CSS o bjects (stylesheets, rules, and styles) have an associated <code>id</code> used in subsequent operations on the related object. Each object type has a specific <code>id</code> structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the <code>get*ForNode()</code> calls (which accept a DOM node id). A client can also discover all the existing stylesheets with the <code>getAllStyleSheets()</code> method (or keeping track o f the <code>styleSheetAdded</code>/<code>styleSheetRemoved</code> events) and su bsequently load the required stylesheet contents using the <code>getStyleSheet[T ext]()</code> methods.", 2388 "description": "This domain exposes CSS read/write operations. All CSS o bjects (stylesheets, rules, and styles) have an associated <code>id</code> used in subsequent operations on the related object. Each object type has a specific <code>id</code> structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the <code>get*ForNode()</code> calls (which accept a DOM node id). A client can also discover all the existing stylesheets with the <code>getAllStyleSheets()</code> method (or keeping track o f the <code>styleSheetAdded</code>/<code>styleSheetRemoved</code> events) and su bsequently load the required stylesheet contents using the <code>getStyleSheet[T ext]()</code> methods.",
2389 "types": [ 2389 "types": [
2390 { 2390 {
2391 "id": "StyleSheetId", 2391 "id": "StyleSheetId",
2392 "type": "string" 2392 "type": "string"
2393 }, 2393 },
2394 { 2394 {
2395 "id": "CSSStyleId",
2396 "type": "object",
2397 "properties": [
2398 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Enclosing stylesheet identifier." },
2399 { "name": "ordinal", "type": "integer", "description": "The style ordinal within the stylesheet." }
2400 ],
2401 "description": "This object identifies a CSS style in a unique w ay."
2402 },
2403 {
2404 "id": "StyleSheetOrigin", 2395 "id": "StyleSheetOrigin",
2405 "type": "string", 2396 "type": "string",
2406 "enum": ["user", "user-agent", "inspector", "regular"], 2397 "enum": ["user", "user-agent", "inspector", "regular"],
2407 "description": "Stylesheet type: \"user\" for user stylesheets, \"user-agent\" for user-agent stylesheets, \"inspector\" for stylesheets created by the inspector (i.e. those holding the \"via inspector\" rules), \"regular\" for regular stylesheets." 2398 "description": "Stylesheet type: \"user\" for user stylesheets, \"user-agent\" for user-agent stylesheets, \"inspector\" for stylesheets created by the inspector (i.e. those holding the \"via inspector\" rules), \"regular\" for regular stylesheets."
2408 }, 2399 },
2409 { 2400 {
2410 "id": "CSSRuleId",
2411 "type": "object",
2412 "properties": [
2413 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Enclosing stylesheet identifier." },
2414 { "name": "ordinal", "type": "integer", "description": "The rule ordinal within the stylesheet." }
2415 ],
2416 "description": "This object identifies a CSS rule in a unique wa y."
2417 },
2418 {
2419 "id": "PseudoIdMatches", 2401 "id": "PseudoIdMatches",
2420 "type": "object", 2402 "type": "object",
2421 "properties": [ 2403 "properties": [
2422 { "name": "pseudoId", "type": "integer", "description": "Pse udo style identifier (see <code>enum PseudoId</code> in <code>RenderStyleConstan ts.h</code>)."}, 2404 { "name": "pseudoId", "type": "integer", "description": "Pse udo style identifier (see <code>enum PseudoId</code> in <code>RenderStyleConstan ts.h</code>)."},
2423 { "name": "matches", "type": "array", "items": { "$ref": "Ru leMatch" }, "description": "Matches of CSS rules applicable to the pseudo style. "} 2405 { "name": "matches", "type": "array", "items": { "$ref": "Ru leMatch" }, "description": "Matches of CSS rules applicable to the pseudo style. "}
2424 ], 2406 ],
2425 "description": "CSS rule collection for a single pseudo style." 2407 "description": "CSS rule collection for a single pseudo style."
2426 }, 2408 },
2427 { 2409 {
2428 "id": "InheritedStyleEntry", 2410 "id": "InheritedStyleEntry",
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
2475 { "name": "isInline", "type": "boolean", "description": "Whe ther this stylesheet is created for STYLE tag by parser. This flag is not set fo r document.written STYLE tags." }, 2457 { "name": "isInline", "type": "boolean", "description": "Whe ther this stylesheet is created for STYLE tag by parser. This flag is not set fo r document.written STYLE tags." },
2476 { "name": "startLine", "type": "number", "description": "Lin e offset of the stylesheet within the resource (zero based)." }, 2458 { "name": "startLine", "type": "number", "description": "Lin e offset of the stylesheet within the resource (zero based)." },
2477 { "name": "startColumn", "type": "number", "description": "C olumn offset of the stylesheet within the resource (zero based)." } 2459 { "name": "startColumn", "type": "number", "description": "C olumn offset of the stylesheet within the resource (zero based)." }
2478 ], 2460 ],
2479 "description": "CSS stylesheet metainformation." 2461 "description": "CSS stylesheet metainformation."
2480 }, 2462 },
2481 { 2463 {
2482 "id": "CSSRule", 2464 "id": "CSSRule",
2483 "type": "object", 2465 "type": "object",
2484 "properties": [ 2466 "properties": [
2485 { "name": "ruleId", "$ref": "CSSRuleId", "optional": true, " description": "The CSS rule identifier (absent for user agent stylesheet and use r-specified stylesheet rules)."}, 2467 { "name": "styleSheetId", "$ref": "StyleSheetId", "optional" : true, "description": "The css style sheet identifier this rule came from (abse nt for user agent stylesheet and user-specified stylesheet rules)."},
apavlov 2014/04/07 12:40:58 The parent CSS style sheet identifier (absent for
lushnikov 2014/04/07 13:13:48 Done.
2486 { "name": "selectorList", "$ref": "SelectorList", "descripti on": "Rule selector data." }, 2468 { "name": "selectorList", "$ref": "SelectorList", "descripti on": "Rule selector data." },
2487 { "name": "sourceURL", "type": "string", "optional": true, " description": "Parent stylesheet resource URL (for regular rules)."}, 2469 { "name": "sourceURL", "type": "string", "optional": true, " description": "Parent stylesheet resource URL (for regular rules)."},
2488 { "name": "origin", "$ref": "StyleSheetOrigin", "description ": "Parent stylesheet's origin."}, 2470 { "name": "origin", "$ref": "StyleSheetOrigin", "description ": "Parent stylesheet's origin."},
2489 { "name": "style", "$ref": "CSSStyle", "description": "Assoc iated style declaration." }, 2471 { "name": "style", "$ref": "CSSStyle", "description": "Assoc iated style declaration." },
2490 { "name": "media", "type": "array", "items": { "$ref": "CSSM edia" }, "optional": true, "description": "Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards." } 2472 { "name": "media", "type": "array", "items": { "$ref": "CSSM edia" }, "optional": true, "description": "Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards." }
2491 ], 2473 ],
2492 "description": "CSS rule representation." 2474 "description": "CSS rule representation."
2493 }, 2475 },
2494 { 2476 {
2495 "id": "SourceRange", 2477 "id": "SourceRange",
(...skipping 19 matching lines...) Expand all
2515 "type": "object", 2497 "type": "object",
2516 "properties": [ 2498 "properties": [
2517 { "name": "name", "type": "string", "description": "Computed style property name." }, 2499 { "name": "name", "type": "string", "description": "Computed style property name." },
2518 { "name": "value", "type": "string", "description": "Compute d style property value." } 2500 { "name": "value", "type": "string", "description": "Compute d style property value." }
2519 ] 2501 ]
2520 }, 2502 },
2521 { 2503 {
2522 "id": "CSSStyle", 2504 "id": "CSSStyle",
2523 "type": "object", 2505 "type": "object",
2524 "properties": [ 2506 "properties": [
2525 { "name": "styleId", "$ref": "CSSStyleId", "optional": true, "description": "The CSS style identifier (absent for attribute styles)." }, 2507 { "name": "styleSheetId", "$ref": "StyleSheetId", "optional" : true, "description": "The css style sheet identifier this rule came from (abse nt for user agent stylesheet and user-specified stylesheet rules)." },
apavlov 2014/04/07 12:40:58 ditto
lushnikov 2014/04/07 13:13:48 Done.
2526 { "name": "cssProperties", "type": "array", "items": { "$ref ": "CSSProperty" }, "description": "CSS properties in the style." }, 2508 { "name": "cssProperties", "type": "array", "items": { "$ref ": "CSSProperty" }, "description": "CSS properties in the style." },
2527 { "name": "shorthandEntries", "type": "array", "items": { "$ ref": "ShorthandEntry" }, "description": "Computed values for all shorthands fou nd in the style." }, 2509 { "name": "shorthandEntries", "type": "array", "items": { "$ ref": "ShorthandEntry" }, "description": "Computed values for all shorthands fou nd in the style." },
2528 { "name": "cssText", "type": "string", "optional": true, "de scription": "Style declaration text (if available)." }, 2510 { "name": "cssText", "type": "string", "optional": true, "de scription": "Style declaration text (if available)." },
2529 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Style declaration range in the enclosing stylesheet (if availabl e)." } 2511 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Style declaration range in the enclosing stylesheet (if availabl e)." }
2530 ], 2512 ],
2531 "description": "CSS style representation." 2513 "description": "CSS style representation."
2532 }, 2514 },
2533 { 2515 {
2534 "id": "CSSProperty", 2516 "id": "CSSProperty",
2535 "type": "object", 2517 "type": "object",
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
2634 { "name": "text", "type": "string", "description": "The styl esheet text." } 2616 { "name": "text", "type": "string", "description": "The styl esheet text." }
2635 ], 2617 ],
2636 "description": "Returns the current textual content and the URL for a stylesheet." 2618 "description": "Returns the current textual content and the URL for a stylesheet."
2637 }, 2619 },
2638 { 2620 {
2639 "name": "setStyleSheetText", 2621 "name": "setStyleSheetText",
2640 "parameters": [ 2622 "parameters": [
2641 { "name": "styleSheetId", "$ref": "StyleSheetId" }, 2623 { "name": "styleSheetId", "$ref": "StyleSheetId" },
2642 { "name": "text", "type": "string" } 2624 { "name": "text", "type": "string" }
2643 ], 2625 ],
2644 "description": "Sets the new stylesheet text, thereby invalidati ng all existing <code>CSSStyleId</code>'s and <code>CSSRuleId</code>'s contained by this stylesheet." 2626 "description": "Sets the new stylesheet text."
2645 }, 2627 },
2646 { 2628 {
2647 "name": "setPropertyText", 2629 "name": "setPropertyText",
2648 "parameters": [ 2630 "parameters": [
2649 { "name": "styleSheetId", "$ref": "StyleSheetId" }, 2631 { "name": "styleSheetId", "$ref": "StyleSheetId" },
2650 { "name": "range", "$ref": "SourceRange" }, 2632 { "name": "range", "$ref": "SourceRange" },
2651 { "name": "text", "type": "string" } 2633 { "name": "text", "type": "string" }
2652 ], 2634 ],
2653 "returns": [ 2635 "returns": [
2654 { "name": "style", "$ref": "CSSStyle", "description": "The r esulting style after the property text modification." } 2636 { "name": "style", "$ref": "CSSStyle", "description": "The r esulting style after the property text modification." }
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after
4079 { 4061 {
4080 "name": "dataAvailable", 4062 "name": "dataAvailable",
4081 "parameters": [ 4063 "parameters": [
4082 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." } 4064 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." }
4083 ], 4065 ],
4084 "handlers": ["browser", "frontend"] 4066 "handlers": ["browser", "frontend"]
4085 } 4067 }
4086 ] 4068 ]
4087 }] 4069 }]
4088 } 4070 }
OLDNEW
« Source/core/inspector/InspectorStyleSheet.h ('K') | « Source/devtools/front_end/StylesSidebarPane.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698