Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 4800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4811 ], | 4811 ], |
| 4812 "handlers": ["browser", "frontend"] | 4812 "handlers": ["browser", "frontend"] |
| 4813 } | 4813 } |
| 4814 ] | 4814 ] |
| 4815 }, | 4815 }, |
| 4816 { | 4816 { |
| 4817 "domain": "Animation", | 4817 "domain": "Animation", |
| 4818 "hidden": true, | 4818 "hidden": true, |
| 4819 "types": [ | 4819 "types": [ |
| 4820 { | 4820 { |
| 4821 "id": "AnimationPlayerId", | |
| 4822 "type": "string", | |
| 4823 "description": "Unique AnimationPlayer identifier." | |
| 4824 }, | |
| 4825 { | |
| 4821 "id": "AnimationPlayer", | 4826 "id": "AnimationPlayer", |
| 4822 "type": "object", | 4827 "type": "object", |
| 4823 "hidden": true, | 4828 "hidden": true, |
| 4824 "properties": [ | 4829 "properties": [ |
| 4825 { "name": "id", "type": "string", "description": "<code>Anim ationPlayer</code>'s id." }, | 4830 { "name": "id", "$ref": "AnimationPlayerId", "description": "<code>AnimationPlayer</code>'s id." }, |
| 4826 { "name": "pausedState", "type": "boolean", "hidden": "true" , "description": "<code>AnimationPlayer</code>'s internal paused state." }, | 4831 { "name": "pausedState", "type": "boolean", "hidden": "true" , "description": "<code>AnimationPlayer</code>'s internal paused state." }, |
| 4827 { "name": "playState", "type": "string", "description": "<co de>AnimationPlayer</code>'s play state." }, | 4832 { "name": "playState", "type": "string", "description": "<co de>AnimationPlayer</code>'s play state." }, |
| 4828 { "name": "playbackRate", "type": "number", "description": " <code>AnimationPlayer</code>'s playback rate." }, | 4833 { "name": "playbackRate", "type": "number", "description": " <code>AnimationPlayer</code>'s playback rate." }, |
| 4829 { "name": "startTime", "type": "number", "description": "<co de>AnimationPlayer</code>'s start time." }, | 4834 { "name": "startTime", "type": "number", "description": "<co de>AnimationPlayer</code>'s start time." }, |
|
pfeldman
2015/04/03 09:19:41
Is this monotonicallyIncreasing time?
samli
2015/04/03 09:56:00
Yes.
| |
| 4830 { "name": "currentTime", "type": "number", "description": "< code>AnimationPlayer</code>'s current time." }, | 4835 { "name": "currentTime", "type": "number", "description": "< code>AnimationPlayer</code>'s current time." }, |
|
pfeldman
2015/04/03 09:19:41
Is this monotonicallyIncreasing time?
samli
2015/04/03 09:56:00
This is always relative to the player. It's start
pfeldman
2015/04/03 10:36:49
Lets rename it to currentOffset?
samli
2015/04/03 11:31:32
No, this matches the Web Animations spec.
https://
| |
| 4831 { "name": "source", "$ref": "AnimationNode", "description": "<code>AnimationPlayer</code>'s source animation node." }, | 4836 { "name": "source", "$ref": "AnimationNode", "description": "<code>AnimationPlayer</code>'s source animation node." }, |
| 4832 { "name": "type", "type": "string", "enum": ["CSSTransition" , "CSSAnimation", "WebAnimation"], "description": "Animation type of <code>Anima tionPlayer</code>." } | 4837 { "name": "type", "type": "string", "enum": ["CSSTransition" , "CSSAnimation", "WebAnimation"], "description": "Animation type of <code>Anima tionPlayer</code>." } |
| 4833 ], | 4838 ], |
| 4834 "description": "AnimationPlayer instance." | 4839 "description": "AnimationPlayer instance." |
| 4835 }, | 4840 }, |
| 4836 { | 4841 { |
| 4837 "id": "AnimationNode", | 4842 "id": "AnimationNode", |
| 4838 "type": "object", | 4843 "type": "object", |
| 4839 "hidden": true, | 4844 "hidden": true, |
| 4840 "properties": [ | 4845 "properties": [ |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 4864 }, | 4869 }, |
| 4865 { | 4870 { |
| 4866 "id": "KeyframeStyle", | 4871 "id": "KeyframeStyle", |
| 4867 "type": "object", | 4872 "type": "object", |
| 4868 "properties": [ | 4873 "properties": [ |
| 4869 { "name": "offset", "type": "string", "description": "Keyfra me's time offset." }, | 4874 { "name": "offset", "type": "string", "description": "Keyfra me's time offset." }, |
| 4870 { "name": "style", "$ref": "CSS.CSSStyle", "description": "K eyframe's associated CSS style declaration." }, | 4875 { "name": "style", "$ref": "CSS.CSSStyle", "description": "K eyframe's associated CSS style declaration." }, |
| 4871 { "name": "easing", "type": "string", "description": "<code> AnimationNode</code>'s timing function." } | 4876 { "name": "easing", "type": "string", "description": "<code> AnimationNode</code>'s timing function." } |
| 4872 ], | 4877 ], |
| 4873 "description": "Keyframe Style" | 4878 "description": "Keyframe Style" |
| 4879 }, | |
| 4880 { | |
| 4881 "id": "AnimationStartTime", | |
| 4882 "type": "object", | |
| 4883 "properties": [ | |
| 4884 { "name": "id", "$ref": "AnimationPlayerId", "description": "<code>AnimationPlayer</code>'s id." }, | |
| 4885 { "name": "startTime", "type": "number", "description": "Upd ated normalized <code>AnimationPlayer</code>'s start time." } | |
|
pfeldman
2015/04/03 09:19:41
Is this monotonicallyIncreasing time?
samli
2015/04/03 09:56:00
Yes.
pfeldman
2015/04/03 10:36:49
Why is it called normalized then?
samli
2015/04/03 11:31:32
Normalise means to "bring to a standard". We conve
| |
| 4886 ], | |
| 4887 "description": "Map from animation id to animation start time" | |
| 4874 } | 4888 } |
| 4875 ], | 4889 ], |
| 4876 "commands": [ | 4890 "commands": [ |
| 4877 { | 4891 { |
| 4878 "name": "enable", | 4892 "name": "enable", |
| 4879 "description": "Enables animation domain notifications." | 4893 "description": "Enables animation domain notifications." |
| 4880 }, | 4894 }, |
| 4881 { | 4895 { |
| 4882 "name": "getAnimationPlayersForNode", | 4896 "name": "getAnimationPlayersForNode", |
| 4883 "parameters": [ | 4897 "parameters": [ |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 4895 "returns": [ | 4909 "returns": [ |
| 4896 { "name": "playbackRate", "type": "number", "description": " Playback rate for animations on page."} | 4910 { "name": "playbackRate", "type": "number", "description": " Playback rate for animations on page."} |
| 4897 ], | 4911 ], |
| 4898 "description": "Gets the playback rate of the document timeline. " | 4912 "description": "Gets the playback rate of the document timeline. " |
| 4899 }, | 4913 }, |
| 4900 { | 4914 { |
| 4901 "name": "setPlaybackRate", | 4915 "name": "setPlaybackRate", |
| 4902 "parameters": [ | 4916 "parameters": [ |
| 4903 { "name": "playbackRate", "type": "number", "description": " Playback rate for animations on page" } | 4917 { "name": "playbackRate", "type": "number", "description": " Playback rate for animations on page" } |
| 4904 ], | 4918 ], |
| 4919 "returns": [ | |
| 4920 { "name": "animationStartTimes", "type": "array", "items": { "$ref": "AnimationStartTime" }, "description": "List of updated animation start times." } | |
|
pfeldman
2015/04/03 10:36:49
So why do you want to collect all start times upon
samli
2015/04/03 11:31:32
Conceptual start time is always relative to timeli
| |
| 4921 ], | |
| 4905 "description": "Sets the playback rate of the document timeline. " | 4922 "description": "Sets the playback rate of the document timeline. " |
| 4906 }, | 4923 }, |
| 4907 { | 4924 { |
| 4908 "name": "setCurrentTime", | 4925 "name": "setCurrentTime", |
| 4909 "parameters": [ | 4926 "parameters": [ |
| 4910 { "name": "currentTime", "type": "number", "description": "C urrent time for the page animation timeline" } | 4927 { "name": "normalizedCurrentTime", "type": "number", "descri ption": "Current time for the page animation timeline" } |
|
pfeldman
2015/04/03 09:19:41
Is this monotonicallyIncreasing time?
samli
2015/04/03 09:56:00
Yes
| |
| 4928 ], | |
| 4929 "returns": [ | |
| 4930 { "name": "animationStartTimes", "type": "array", "items": { "$ref": "AnimationStartTime" }, "description": "List of updated animation start times." } | |
| 4911 ], | 4931 ], |
| 4912 "description": "Sets the current time of the document timeline." | 4932 "description": "Sets the current time of the document timeline." |
| 4913 }, | 4933 }, |
| 4914 { | 4934 { |
| 4935 "name": "seekTimeline", | |
| 4936 "parameters": [ | |
| 4937 { "name": "timeDelta", "type": "number", "description": "Tim e delta in milliseconds to seek animation timelines" } | |
| 4938 ], | |
| 4939 "description": "Seek animation timelines by a ms time delta." | |
| 4940 }, | |
| 4941 { | |
| 4915 "name": "setTiming", | 4942 "name": "setTiming", |
| 4916 "parameters": [ | 4943 "parameters": [ |
| 4917 { "name": "playerId", "type": "string", "description": "Anim ationPlayer id." }, | 4944 { "name": "playerId", "$ref": "AnimationPlayerId", "descript ion": "AnimationPlayer id." }, |
| 4918 { "name": "duration", "type": "number", "description": "Dura tion of the animation." }, | 4945 { "name": "duration", "type": "number", "description": "Dura tion of the animation." }, |
| 4919 { "name": "delay", "type": "number", "description": "Delay o f the animation." } | 4946 { "name": "delay", "type": "number", "description": "Delay o f the animation." } |
| 4920 ], | 4947 ], |
| 4921 "description": "Sets the timing of an animation node." | 4948 "description": "Sets the timing of an animation node." |
| 4922 } | 4949 } |
| 4923 ], | 4950 ], |
| 4924 "events": [ | 4951 "events": [ |
| 4925 { | 4952 { |
| 4926 "name": "animationPlayerCreated", | 4953 "name": "animationPlayerCreated", |
| 4927 "parameters": [ | 4954 "parameters": [ |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5055 ], | 5082 ], |
| 5056 "returns": [ | 5083 "returns": [ |
| 5057 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } | 5084 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } |
| 5058 ], | 5085 ], |
| 5059 "description": "Fetches the accessibility node for this DOM node , if it exists.", | 5086 "description": "Fetches the accessibility node for this DOM node , if it exists.", |
| 5060 "hidden": true | 5087 "hidden": true |
| 5061 } | 5088 } |
| 5062 ] | 5089 ] |
| 5063 }] | 5090 }] |
| 5064 } | 5091 } |
| OLD | NEW |