OLD | NEW |
1 { | 1 { |
2 "version": { "major": "1", "minor": "0" }, | 2 "version": { "major": "1", "minor": "0" }, |
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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 }, | 761 }, |
762 { | 762 { |
763 "domain": "Console", | 763 "domain": "Console", |
764 "description": "Console domain defines methods and events for interactio
n with the JavaScript console. Console collects messages created by means of the
<a href='http://getfirebug.com/wiki/index.php/Console_API'>JavaScript Console A
PI</a>. One needs to enable this domain using <code>enable</code> command in ord
er to start receiving the console messages. Browser collects messages issued whi
le console domain is not enabled as well and reports them using <code>messageAdd
ed</code> notification upon enabling.", | 764 "description": "Console domain defines methods and events for interactio
n with the JavaScript console. Console collects messages created by means of the
<a href='http://getfirebug.com/wiki/index.php/Console_API'>JavaScript Console A
PI</a>. One needs to enable this domain using <code>enable</code> command in ord
er to start receiving the console messages. Browser collects messages issued whi
le console domain is not enabled as well and reports them using <code>messageAdd
ed</code> notification upon enabling.", |
765 "types": [ | 765 "types": [ |
766 { | 766 { |
767 "id": "ConsoleMessage", | 767 "id": "ConsoleMessage", |
768 "type": "object", | 768 "type": "object", |
769 "description": "Console message.", | 769 "description": "Console message.", |
770 "properties": [ | 770 "properties": [ |
771 { "name": "source", "type": "string", "enum": ["html", "wml"
, "xml", "javascript", "network", "console-api", "other"], "description": "Messa
ge source." }, | 771 { "name": "source", "type": "string", "enum": ["xml", "javas
cript", "network", "console-api", "storage", "appcache", "rendering", "css", "se
curity", "other"], "description": "Message source." }, |
772 { "name": "level", "type": "string", "enum": ["tip", "log",
"warning", "error", "debug"], "description": "Message severity." }, | 772 { "name": "level", "type": "string", "enum": ["log", "warnin
g", "error", "debug"], "description": "Message severity." }, |
773 { "name": "text", "type": "string", "description": "Message
text." }, | 773 { "name": "text", "type": "string", "description": "Message
text." }, |
774 { "name": "type", "type": "string", "optional": true, "enum"
: ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupC
ollapsed", "endGroup", "assert", "timing", "profile", "profileEnd"], "descriptio
n": "Console message type." }, | 774 { "name": "type", "type": "string", "optional": true, "enum"
: ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupC
ollapsed", "endGroup", "assert", "timing", "profile", "profileEnd"], "descriptio
n": "Console message type." }, |
775 { "name": "url", "type": "string", "optional": true, "descri
ption": "URL of the message origin." }, | 775 { "name": "url", "type": "string", "optional": true, "descri
ption": "URL of the message origin." }, |
776 { "name": "line", "type": "integer", "optional": true, "desc
ription": "Line number in the resource that generated this message." }, | 776 { "name": "line", "type": "integer", "optional": true, "desc
ription": "Line number in the resource that generated this message." }, |
777 { "name": "repeatCount", "type": "integer", "optional": true
, "description": "Repeat count for repeated messages." }, | 777 { "name": "repeatCount", "type": "integer", "optional": true
, "description": "Repeat count for repeated messages." }, |
778 { "name": "parameters", "type": "array", "items": { "$ref":
"Runtime.RemoteObject" }, "optional": true, "description": "Message parameters i
n case of the formatted message." }, | 778 { "name": "parameters", "type": "array", "items": { "$ref":
"Runtime.RemoteObject" }, "optional": true, "description": "Message parameters i
n case of the formatted message." }, |
779 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr
ue, "description": "JavaScript stack trace for assertions and error messages." }
, | 779 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr
ue, "description": "JavaScript stack trace for assertions and error messages." }
, |
780 { "name": "networkRequestId", "$ref": "Network.RequestId", "
optional": true, "description": "Identifier of the network request associated wi
th this message." } | 780 { "name": "networkRequestId", "$ref": "Network.RequestId", "
optional": true, "description": "Identifier of the network request associated wi
th this message." } |
781 ] | 781 ] |
782 }, | 782 }, |
(...skipping 2321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3104 { "name": "callUID", "type": "number", "description": "Call
UID." }, | 3104 { "name": "callUID", "type": "number", "description": "Call
UID." }, |
3105 { "name": "children", "type": "array", "items": { "$ref": "C
PUProfileNode" }, "description": "Child nodes." } | 3105 { "name": "children", "type": "array", "items": { "$ref": "C
PUProfileNode" }, "description": "Child nodes." } |
3106 ] | 3106 ] |
3107 }, | 3107 }, |
3108 { | 3108 { |
3109 "id": "CPUProfile", | 3109 "id": "CPUProfile", |
3110 "type": "object", | 3110 "type": "object", |
3111 "description": "Profile.", | 3111 "description": "Profile.", |
3112 "properties": [ | 3112 "properties": [ |
3113 { "name": "head", "$ref": "CPUProfileNode", "optional": true
}, | 3113 { "name": "head", "$ref": "CPUProfileNode", "optional": true
}, |
3114 { "name": "bottomUpHead", "$ref": "CPUProfileNode", "optiona
l": true }, | |
3115 { "name": "idleTime", "type": "number", "optional": true } | 3114 { "name": "idleTime", "type": "number", "optional": true } |
3116 ] | 3115 ] |
3117 }, | 3116 }, |
3118 { | 3117 { |
3119 "id": "HeapSnapshotObjectId", | 3118 "id": "HeapSnapshotObjectId", |
3120 "type": "string", | 3119 "type": "string", |
3121 "description": "Heap snashot object id." | 3120 "description": "Heap snashot object id." |
3122 } | 3121 } |
3123 ], | 3122 ], |
3124 "commands": [ | 3123 "commands": [ |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3371 "name": "disable" | 3370 "name": "disable" |
3372 }, | 3371 }, |
3373 { | 3372 { |
3374 "name": "sendMessageToWorker", | 3373 "name": "sendMessageToWorker", |
3375 "parameters": [ | 3374 "parameters": [ |
3376 { "name": "workerId", "type": "integer" }, | 3375 { "name": "workerId", "type": "integer" }, |
3377 { "name": "message", "type": "object" } | 3376 { "name": "message", "type": "object" } |
3378 ] | 3377 ] |
3379 }, | 3378 }, |
3380 { | 3379 { |
| 3380 "name": "canInspectWorkers", |
| 3381 "description": "Tells whether browser supports workers inspectio
n.", |
| 3382 "returns": [ |
| 3383 { "name": "result", "type": "boolean", "description": "True
if browser has workers support." } |
| 3384 ] |
| 3385 }, |
| 3386 { |
3381 "name": "connectToWorker", | 3387 "name": "connectToWorker", |
3382 "parameters": [ | 3388 "parameters": [ |
3383 { "name": "workerId", "type": "integer" } | 3389 { "name": "workerId", "type": "integer" } |
3384 ] | 3390 ] |
3385 }, | 3391 }, |
3386 { | 3392 { |
3387 "name": "disconnectFromWorker", | 3393 "name": "disconnectFromWorker", |
3388 "parameters": [ | 3394 "parameters": [ |
3389 { "name": "workerId", "type": "integer" } | 3395 { "name": "workerId", "type": "integer" } |
3390 ] | 3396 ] |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3639 { | 3645 { |
3640 "domain": "LayerTree", | 3646 "domain": "LayerTree", |
3641 "hidden": true, | 3647 "hidden": true, |
3642 "types": [ | 3648 "types": [ |
3643 { | 3649 { |
3644 "id": "LayerId", | 3650 "id": "LayerId", |
3645 "type": "string", | 3651 "type": "string", |
3646 "description": "Unique RenderLayer identifier." | 3652 "description": "Unique RenderLayer identifier." |
3647 }, | 3653 }, |
3648 { | 3654 { |
| 3655 "id": "PseudoElementId", |
| 3656 "type": "string", |
| 3657 "description": "Unique PseudoElement identifier." |
| 3658 }, |
| 3659 { |
3649 "id": "IntRect", | 3660 "id": "IntRect", |
3650 "type": "object", | 3661 "type": "object", |
3651 "description": "A rectangle.", | 3662 "description": "A rectangle.", |
3652 "properties": [ | 3663 "properties": [ |
3653 { "name": "x", "type": "integer", "description": "The x posi
tion." }, | 3664 { "name": "x", "type": "integer", "description": "The x posi
tion." }, |
3654 { "name": "y", "type": "integer", "description": "The y posi
tion." }, | 3665 { "name": "y", "type": "integer", "description": "The y posi
tion." }, |
3655 { "name": "width", "type": "integer", "description": "The wi
dth metric." }, | 3666 { "name": "width", "type": "integer", "description": "The wi
dth metric." }, |
3656 { "name": "height", "type": "integer", "description": "The h
eight metric." } | 3667 { "name": "height", "type": "integer", "description": "The h
eight metric." } |
3657 ] | 3668 ] |
3658 }, | 3669 }, |
3659 { | 3670 { |
3660 "id": "Layer", | 3671 "id": "Layer", |
3661 "type": "object", | 3672 "type": "object", |
3662 "description": "Information about a compositing layer.", | 3673 "description": "Information about a compositing layer.", |
3663 "properties": [ | 3674 "properties": [ |
3664 { "name": "layerId", "$ref": "LayerId", "description": "The
unique id for this layer." }, | 3675 { "name": "layerId", "$ref": "LayerId", "description": "The
unique id for this layer." }, |
3665 { "name": "bounds", "$ref": "IntRect", "description": "Bound
s of the layer." }, | 3676 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Th
e id for the node associated with this layer." }, |
3666 { "name": "isComposited", "type": "boolean", "optional": tru
e, "description": "Indicates whether this layer is composited." }, | 3677 { "name": "bounds", "$ref": "IntRect", "description": "Bound
s of the layer in absolute page coordinates." }, |
3667 { "name": "paintCount", "type": "integer", "optional": true,
"description": "Indicates how many time this layer has painted." }, | 3678 { "name": "paintCount", "type": "integer", "description": "I
ndicates how many time this layer has painted." }, |
3668 { "name": "memory", "type": "integer", "optional": true, "de
scription": "Estimated memory used by this layer." }, | 3679 { "name": "memory", "type": "integer", "description": "Estim
ated memory used by this layer." }, |
3669 { "name": "compositedBounds", "$ref": "IntRect", "optional":
true, "description": "The bounds of the composited layer." } | 3680 { "name": "compositedBounds", "$ref": "IntRect", "descriptio
n": "The bounds of the composited layer." }, |
| 3681 { "name": "isInShadowTree", "type": "boolean", "optional": t
rue, "description": "Indicates whether this layer is associated with an element
hosted in a shadow tree." }, |
| 3682 { "name": "isReflection", "type": "boolean", "optional": tru
e, "description": "Indicates whether this layer was used to provide a reflection
for the element." }, |
| 3683 { "name": "isGeneratedContent", "type": "boolean", "optional
": true, "description": "Indicates whether the layer is attached to a pseudo ele
ment that is CSS generated content." }, |
| 3684 { "name": "pseudoElementId", "$ref": "PseudoElementId", "opt
ional": true, "description": "The id for the pseudo element associated with this
layer." }, |
| 3685 { "name": "pseudoClass", "type": "string", "optional": true,
"description": "The name of the CSS pseudo-class that prompted the layer's cont
ent to be generated." } |
| 3686 ] |
| 3687 }, |
| 3688 { |
| 3689 "id": "CompositingReasons", |
| 3690 "type": "object", |
| 3691 "description": "An object containing the reasons why the layer w
as composited as properties.", |
| 3692 "properties": [ |
| 3693 { "name": "transform3D", "type": "boolean", "optional": true
, "description": "Composition due to association with an element with a CSS 3D t
ransform." }, |
| 3694 { "name": "video", "type": "boolean", "optional": true, "des
cription": "Composition due to association with a <video> element." }, |
| 3695 { "name": "canvas", "type": "boolean", "optional": true, "de
scription": "Composition due to the element being a <canvas> element." }, |
| 3696 { "name": "plugin", "type": "boolean", "optional": true, "de
scription": "Composition due to association with a plugin." }, |
| 3697 { "name": "iFrame", "type": "boolean", "optional": true, "de
scription": "Composition due to association with an <iframe> element." }, |
| 3698 { "name": "backfaceVisibilityHidden", "type": "boolean", "op
tional": true, "description": "Composition due to association with an element wi
th a \"backface-visibility: hidden\" style." }, |
| 3699 { "name": "clipsCompositingDescendants", "type": "boolean",
"optional": true, "description": "Composition due to association with an element
clipping compositing descendants." }, |
| 3700 { "name": "animation", "type": "boolean", "optional": true,
"description": "Composition due to association with an animated element." }, |
| 3701 { "name": "filters", "type": "boolean", "optional": true, "d
escription": "Composition due to association with an element with CSS filters ap
plied." }, |
| 3702 { "name": "positionFixed", "type": "boolean", "optional": tr
ue, "description": "Composition due to association with an element with a \"posi
tion: fixed\" style." }, |
| 3703 { "name": "positionSticky", "type": "boolean", "optional": t
rue, "description": "Composition due to association with an element with a \"pos
ition: sticky\" style." }, |
| 3704 { "name": "overflowScrollingTouch", "type": "boolean", "opti
onal": true, "description": "Composition due to association with an element with
a \"overflow-scrolling: touch\" style." }, |
| 3705 { "name": "stacking", "type": "boolean", "optional": true, "
description": "Composition due to association with an element establishing a sta
cking context." }, |
| 3706 { "name": "overlap", "type": "boolean", "optional": true, "d
escription": "Composition due to association with an element overlapping other c
omposited elements." }, |
| 3707 { "name": "negativeZIndexChildren", "type": "boolean", "opti
onal": true, "description": "Composition due to association with an element with
descendants that have a negative z-index." }, |
| 3708 { "name": "transformWithCompositedDescendants", "type": "boo
lean", "optional": true, "description": "Composition due to association with an
element with composited descendants." }, |
| 3709 { "name": "opacityWithCompositedDescendants", "type": "boole
an", "optional": true, "description": "Composition due to association with an el
ement with opacity applied and composited descendants." }, |
| 3710 { "name": "maskWithCompositedDescendants", "type": "boolean"
, "optional": true, "description": "Composition due to association with a masked
element and composited descendants." }, |
| 3711 { "name": "reflectionWithCompositedDescendants", "type": "bo
olean", "optional": true, "description": "Composition due to association with an
element with a reflection and composited descendants." }, |
| 3712 { "name": "filterWithCompositedDescendants", "type": "boolea
n", "optional": true, "description": "Composition due to association with an ele
ment with CSS filters applied and composited descendants." }, |
| 3713 { "name": "blendingWithCompositedDescendants", "type": "bool
ean", "optional": true, "description": "Composition due to association with an e
lement with CSS blending applied and composited descendants." }, |
| 3714 { "name": "perspective", "type": "boolean", "optional": true
, "description": "Composition due to association with an element with perspectiv
e applied." }, |
| 3715 { "name": "preserve3D", "type": "boolean", "optional": true,
"description": "Composition due to association with an element with a \"transfo
rm-style: preserve-3d\" style." }, |
| 3716 { "name": "root", "type": "boolean", "optional": true, "desc
ription": "Composition due to association with the root element." } |
3670 ] | 3717 ] |
3671 } | 3718 } |
3672 ], | 3719 ], |
3673 "commands": [ | 3720 "commands": [ |
3674 { | 3721 { |
3675 "name": "enable", | 3722 "name": "enable", |
3676 "description": "Enables compositing tree inspection." | 3723 "description": "Enables compositing tree inspection." |
3677 }, | 3724 }, |
3678 { | 3725 { |
3679 "name": "disable", | 3726 "name": "disable", |
3680 "description": "Disables compositing tree inspection." | 3727 "description": "Disables compositing tree inspection." |
| 3728 }, |
| 3729 { |
| 3730 "name": "layersForNode", |
| 3731 "parameters": [ |
| 3732 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Ro
ot of the subtree for which we want to gather layers." } ], |
| 3733 "description": "Returns the layer tree structure of the current
page.", |
| 3734 "returns": [ |
| 3735 { "name": "layers", "type": "array", "items": { "$ref": "Lay
er" }, "description": "Child layers." } |
| 3736 ] |
| 3737 }, |
| 3738 { |
| 3739 "name": "reasonsForCompositingLayer", |
| 3740 "parameters": [ |
| 3741 { "name": "layerId", "$ref": "LayerId", "description": "The
id of the layer for which we want to get the reasons it was composited." } |
| 3742 ], |
| 3743 "description": "Provides the reasons why the given layer was com
posited.", |
| 3744 "returns": [ |
| 3745 { "name": "compositingReasons", "$ref": "CompositingReasons"
, "description": "An object containing the reasons why the layer was composited
as properties." } |
| 3746 ] |
3681 } | 3747 } |
3682 ], | 3748 ], |
3683 "events": [ | 3749 "events": [ |
3684 { | 3750 { |
3685 "name": "layerTreeDidChange" | 3751 "name": "layerTreeDidChange" |
3686 } | 3752 } |
3687 ] | 3753 ] |
3688 }] | 3754 }] |
3689 } | 3755 } |
OLD | NEW |