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

Unified Diff: third_party/WebKit/Source/core/inspector/protocol/Animation.json

Issue 2035653005: DevTools: split protocol.json into files per domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/inspector/protocol/Animation.json
diff --git a/third_party/WebKit/Source/core/inspector/protocol/Animation.json b/third_party/WebKit/Source/core/inspector/protocol/Animation.json
new file mode 100644
index 0000000000000000000000000000000000000000..96796917f7e177de7b74873598fdd6e22d106cc4
--- /dev/null
+++ b/third_party/WebKit/Source/core/inspector/protocol/Animation.json
@@ -0,0 +1,357 @@
+{
+ "domain": "Animation",
+ "version": {
+ "major": "1",
+ "minor": "1"
+ },
+ "hidden": true,
+ "dependencies": [
+ "Runtime",
+ "DOM"
+ ],
+ "types": [
+ {
+ "id": "Animation",
+ "type": "object",
+ "hidden": true,
+ "properties": [
+ {
+ "name": "id",
+ "type": "string",
+ "description": "<code>Animation</code>'s id."
+ },
+ {
+ "name": "name",
+ "type": "string",
+ "description": "<code>Animation</code>'s name."
+ },
+ {
+ "name": "pausedState",
+ "type": "boolean",
+ "hidden": "true",
+ "description": "<code>Animation</code>'s internal paused state."
+ },
+ {
+ "name": "playState",
+ "type": "string",
+ "description": "<code>Animation</code>'s play state."
+ },
+ {
+ "name": "playbackRate",
+ "type": "number",
+ "description": "<code>Animation</code>'s playback rate."
+ },
+ {
+ "name": "startTime",
+ "type": "number",
+ "description": "<code>Animation</code>'s start time."
+ },
+ {
+ "name": "currentTime",
+ "type": "number",
+ "description": "<code>Animation</code>'s current time."
+ },
+ {
+ "name": "source",
+ "$ref": "AnimationEffect",
+ "description": "<code>Animation</code>'s source animation node."
+ },
+ {
+ "name": "type",
+ "type": "string",
+ "enum": [
+ "CSSTransition",
+ "CSSAnimation",
+ "WebAnimation"
+ ],
+ "description": "Animation type of <code>Animation</code>."
+ },
+ {
+ "name": "cssId",
+ "type": "string",
+ "optional": true,
+ "description": "A unique ID for <code>Animation</code> representing the sources that triggered this CSS animation/transition."
+ }
+ ],
+ "description": "Animation instance."
+ },
+ {
+ "id": "AnimationEffect",
+ "type": "object",
+ "hidden": true,
+ "properties": [
+ {
+ "name": "delay",
+ "type": "number",
+ "description": "<code>AnimationEffect</code>'s delay."
+ },
+ {
+ "name": "endDelay",
+ "type": "number",
+ "description": "<code>AnimationEffect</code>'s end delay."
+ },
+ {
+ "name": "playbackRate",
+ "type": "number",
+ "description": "<code>AnimationEffect</code>'s playbackRate."
+ },
+ {
+ "name": "iterationStart",
+ "type": "number",
+ "description": "<code>AnimationEffect</code>'s iteration start."
+ },
+ {
+ "name": "iterations",
+ "type": "number",
+ "description": "<code>AnimationEffect</code>'s iterations."
+ },
+ {
+ "name": "duration",
+ "type": "number",
+ "description": "<code>AnimationEffect</code>'s iteration duration."
+ },
+ {
+ "name": "direction",
+ "type": "string",
+ "description": "<code>AnimationEffect</code>'s playback direction."
+ },
+ {
+ "name": "fill",
+ "type": "string",
+ "description": "<code>AnimationEffect</code>'s fill mode."
+ },
+ {
+ "name": "backendNodeId",
+ "$ref": "DOM.BackendNodeId",
+ "description": "<code>AnimationEffect</code>'s target node."
+ },
+ {
+ "name": "keyframesRule",
+ "$ref": "KeyframesRule",
+ "optional": true,
+ "description": "<code>AnimationEffect</code>'s keyframes."
+ },
+ {
+ "name": "easing",
+ "type": "string",
+ "description": "<code>AnimationEffect</code>'s timing function."
+ }
+ ],
+ "description": "AnimationEffect instance"
+ },
+ {
+ "id": "KeyframesRule",
+ "type": "object",
+ "properties": [
+ {
+ "name": "name",
+ "type": "string",
+ "optional": true,
+ "description": "CSS keyframed animation's name."
+ },
+ {
+ "name": "keyframes",
+ "type": "array",
+ "items": {
+ "$ref": "KeyframeStyle"
+ },
+ "description": "List of animation keyframes."
+ }
+ ],
+ "description": "Keyframes Rule"
+ },
+ {
+ "id": "KeyframeStyle",
+ "type": "object",
+ "properties": [
+ {
+ "name": "offset",
+ "type": "string",
+ "description": "Keyframe's time offset."
+ },
+ {
+ "name": "easing",
+ "type": "string",
+ "description": "<code>AnimationEffect</code>'s timing function."
+ }
+ ],
+ "description": "Keyframe Style"
+ }
+ ],
+ "commands": [
+ {
+ "name": "enable",
+ "description": "Enables animation domain notifications."
+ },
+ {
+ "name": "disable",
+ "description": "Disables animation domain notifications."
+ },
+ {
+ "name": "getPlaybackRate",
+ "returns": [
+ {
+ "name": "playbackRate",
+ "type": "number",
+ "description": "Playback rate for animations on page."
+ }
+ ],
+ "description": "Gets the playback rate of the document timeline."
+ },
+ {
+ "name": "setPlaybackRate",
+ "parameters": [
+ {
+ "name": "playbackRate",
+ "type": "number",
+ "description": "Playback rate for animations on page"
+ }
+ ],
+ "description": "Sets the playback rate of the document timeline."
+ },
+ {
+ "name": "getCurrentTime",
+ "parameters": [
+ {
+ "name": "id",
+ "type": "string",
+ "description": "Id of animation."
+ }
+ ],
+ "returns": [
+ {
+ "name": "currentTime",
+ "type": "number",
+ "description": "Current time of the page."
+ }
+ ],
+ "description": "Returns the current time of the an animation."
+ },
+ {
+ "name": "setPaused",
+ "parameters": [
+ {
+ "name": "animations",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Animations to set the pause state of."
+ },
+ {
+ "name": "paused",
+ "type": "boolean",
+ "description": "Paused state to set to."
+ }
+ ],
+ "description": "Sets the paused state of a set of animations."
+ },
+ {
+ "name": "setTiming",
+ "parameters": [
+ {
+ "name": "animationId",
+ "type": "string",
+ "description": "Animation id."
+ },
+ {
+ "name": "duration",
+ "type": "number",
+ "description": "Duration of the animation."
+ },
+ {
+ "name": "delay",
+ "type": "number",
+ "description": "Delay of the animation."
+ }
+ ],
+ "description": "Sets the timing of an animation node."
+ },
+ {
+ "name": "seekAnimations",
+ "parameters": [
+ {
+ "name": "animations",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of animation ids to seek."
+ },
+ {
+ "name": "currentTime",
+ "type": "number",
+ "description": "Set the current time of each animation."
+ }
+ ],
+ "description": "Seek a set of animations to a particular time within each animation."
+ },
+ {
+ "name": "releaseAnimations",
+ "parameters": [
+ {
+ "name": "animations",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of animation ids to seek."
+ }
+ ],
+ "description": "Releases a set of animations to no longer be manipulated."
+ },
+ {
+ "name": "resolveAnimation",
+ "parameters": [
+ {
+ "name": "animationId",
+ "type": "string",
+ "description": "Animation id."
+ }
+ ],
+ "returns": [
+ {
+ "name": "remoteObject",
+ "$ref": "Runtime.RemoteObject",
+ "description": "Corresponding remote object."
+ }
+ ],
+ "description": "Gets the remote object of the Animation."
+ }
+ ],
+ "events": [
+ {
+ "name": "animationCreated",
+ "parameters": [
+ {
+ "name": "id",
+ "type": "string",
+ "description": "Id of the animation that was created."
+ }
+ ],
+ "description": "Event for each animation that has been created."
+ },
+ {
+ "name": "animationStarted",
+ "parameters": [
+ {
+ "name": "animation",
+ "$ref": "Animation",
+ "description": "Animation that was started."
+ }
+ ],
+ "description": "Event for animation that has been started."
+ },
+ {
+ "name": "animationCanceled",
+ "parameters": [
+ {
+ "name": "id",
+ "type": "string",
+ "description": "Id of the animation that was cancelled."
+ }
+ ],
+ "description": "Event for when an animation has been cancelled."
+ }
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698