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

Issue 620783002: Devtools Animations: Basic animation inspection & control in Styles pane (Closed)

Created:
6 years, 2 months ago by samli
Modified:
6 years, 2 months ago
CC:
blink-reviews, shans, apavlov+blink_chromium.org, loislo+blink_chromium.org, aandrey+blink_chromium.org, caseq+blink_chromium.org, Steve Block, pfeldman+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, dstockwell, Timothy Loh, devtools-reviews_chromium.org, Eric Willigers, rjwright, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, darktears, blink-reviews-animation_chromium.org, vsevik+blink_chromium.org, Mike Lawther (Google), sergeyv+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Devtools Animations: Basic animation inspection & control in Styles pane Add a new hidden devtools experiment for animation inspection within the inspector. A new inspector domain is created for Animations. CSS Animations, CSS Transitions and Web Animations can be viewed in an Animations pane when an animation is in effect and targeting the element being viewed in the Elements pane. Each animation can be paused, played and scrubbed based on time position. Animation properties are shown for all animations. BUG=419269 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183847

Patch Set 1 #

Total comments: 42

Patch Set 2 : Review changes for AnimationSection #

Total comments: 31

Patch Set 3 : Review changes #

Patch Set 4 : Changed sequence number to string id #

Total comments: 24

Patch Set 5 : Animations now in a separate tab #

Patch Set 6 : Rebase #

Patch Set 7 : Remove keyframe view #

Total comments: 30

Patch Set 8 : Refactor animations into separate domain #

Patch Set 9 : Update JSDOC #

Total comments: 8

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+816 lines, -2 lines) Patch
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A Source/core/inspector/InspectorAnimationAgent.h View 1 2 3 4 5 6 7 8 9 1 chunk +59 lines, -0 lines 0 comments Download
A Source/core/inspector/InspectorAnimationAgent.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +141 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorController.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorController.cpp View 1 2 3 4 5 6 7 5 chunks +7 lines, -1 line 0 comments Download
M Source/devtools/devtools.gypi View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
A Source/devtools/front_end/elements/AnimationsSidebarPane.js View 1 2 3 4 5 6 7 8 1 chunk +213 lines, -0 lines 0 comments Download
M Source/devtools/front_end/elements/ElementsPanel.js View 1 2 3 4 5 6 7 8 4 chunks +14 lines, -0 lines 0 comments Download
M Source/devtools/front_end/elements/module.json View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M Source/devtools/front_end/elementsPanel.css View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M Source/devtools/front_end/main/Main.js View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A Source/devtools/front_end/sdk/AnimationModel.js View 1 2 3 4 5 6 7 8 9 1 chunk +262 lines, -0 lines 0 comments Download
M Source/devtools/front_end/sdk/Target.js View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M Source/devtools/front_end/sdk/module.json View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/devtools/protocol.json View 1 2 3 4 5 6 7 8 1 chunk +99 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (6 generated)
samli
6 years, 2 months ago (2014-10-01 06:10:38 UTC) #2
Mike Lawther (Google)
awesome! Make sure to tell the team in SYD to enable the experiment once it ...
6 years, 2 months ago (2014-10-01 07:05:23 UTC) #3
apavlov
A quick scan across AnimationSection.js https://codereview.chromium.org/620783002/diff/1/Source/devtools/front_end/elements/AnimationSection.js File Source/devtools/front_end/elements/AnimationSection.js (right): https://codereview.chromium.org/620783002/diff/1/Source/devtools/front_end/elements/AnimationSection.js#newcode1 Source/devtools/front_end/elements/AnimationSection.js:1: /** The [short 3-line] ...
6 years, 2 months ago (2014-10-01 07:39:36 UTC) #5
samli
PTAL. Updated AnimationSection based on comments. https://codereview.chromium.org/620783002/diff/1/Source/devtools/front_end/elements/AnimationSection.js File Source/devtools/front_end/elements/AnimationSection.js (right): https://codereview.chromium.org/620783002/diff/1/Source/devtools/front_end/elements/AnimationSection.js#newcode1 Source/devtools/front_end/elements/AnimationSection.js:1: /** On 2014/10/01 ...
6 years, 2 months ago (2014-10-02 08:30:34 UTC) #6
caseq
https://codereview.chromium.org/620783002/diff/20001/Source/core/inspector/InspectorCSSAgent.cpp File Source/core/inspector/InspectorCSSAgent.cpp (right): https://codereview.chromium.org/620783002/diff/20001/Source/core/inspector/InspectorCSSAgent.cpp#newcode845 Source/core/inspector/InspectorCSSAgent.cpp:845: AnimationPlayer& player = *(m_domAgent->m_idToAnimationPlayer.get(sequenceNumber)); You can't expect client to ...
6 years, 2 months ago (2014-10-02 09:48:02 UTC) #8
caseq
https://codereview.chromium.org/620783002/diff/20001/Source/devtools/front_end/sdk/CSSStyleModel.js File Source/devtools/front_end/sdk/CSSStyleModel.js (right): https://codereview.chromium.org/620783002/diff/20001/Source/devtools/front_end/sdk/CSSStyleModel.js#newcode271 Source/devtools/front_end/sdk/CSSStyleModel.js:271: function callback(userCallback, error, payloads) nit: no need to pass ...
6 years, 2 months ago (2014-10-02 10:02:26 UTC) #9
dgozman
Maybe it's worth to create a separate Animation domain, especially considering further additions (I see ...
6 years, 2 months ago (2014-10-02 10:25:40 UTC) #11
samli
Changes based on caseq@ comments. @dgozman - what do you mean an animation domain? A ...
6 years, 2 months ago (2014-10-03 06:05:05 UTC) #12
samli
PTAL, incorporated all review feedback. https://codereview.chromium.org/620783002/diff/20001/Source/devtools/protocol.json File Source/devtools/protocol.json (right): https://codereview.chromium.org/620783002/diff/20001/Source/devtools/protocol.json#newcode2114 Source/devtools/protocol.json:2114: { "name": "sequenceNumber", "type": ...
6 years, 2 months ago (2014-10-03 08:21:10 UTC) #13
dgozman
> @dgozman - what do you mean an animation domain? A separate pane? That's what ...
6 years, 2 months ago (2014-10-03 08:36:45 UTC) #14
caseq
This generally looks pretty good, but I'm concerned about AnimationPlayer leakage. Can we perhaps make ...
6 years, 2 months ago (2014-10-03 12:43:55 UTC) #15
vsevik
https://codereview.chromium.org/620783002/diff/60001/Source/core/animation/KeyframeEffectModel.h File Source/core/animation/KeyframeEffectModel.h (right): https://codereview.chromium.org/620783002/diff/60001/Source/core/animation/KeyframeEffectModel.h#newcode54 Source/core/animation/KeyframeEffectModel.h:54: friend class InspectorCSSAgent; You should define an explicit API ...
6 years, 2 months ago (2014-10-06 16:00:55 UTC) #16
samli
PTAL https://codereview.chromium.org/620783002/diff/60001/Source/core/animation/AnimationPlayer.h File Source/core/animation/AnimationPlayer.h (right): https://codereview.chromium.org/620783002/diff/60001/Source/core/animation/AnimationPlayer.h#newcode144 Source/core/animation/AnimationPlayer.h:144: String id() const { return "s" + String::number(m_sequenceNumber); ...
6 years, 2 months ago (2014-10-07 05:25:44 UTC) #17
samli
I have removed web anim keyframe view from this patch. PTAL.
6 years, 2 months ago (2014-10-14 06:04:40 UTC) #18
vsevik
https://codereview.chromium.org/620783002/diff/120001/Source/core/inspector/InspectorDOMAgent.h File Source/core/inspector/InspectorDOMAgent.h (right): https://codereview.chromium.org/620783002/diff/120001/Source/core/inspector/InspectorDOMAgent.h#newcode266 Source/core/inspector/InspectorDOMAgent.h:266: static String playerId(AnimationPlayer& player) { return String::number(player.sequenceNumber()); } I ...
6 years, 2 months ago (2014-10-14 09:08:09 UTC) #19
dstockwell
https://codereview.chromium.org/620783002/diff/120001/Source/devtools/protocol.json File Source/devtools/protocol.json (right): https://codereview.chromium.org/620783002/diff/120001/Source/devtools/protocol.json#newcode2115 Source/devtools/protocol.json:2115: { "name": "paused", "type": "boolean", "description": "<code>AnimationPlayer</code>'s paused." }, ...
6 years, 2 months ago (2014-10-14 09:19:15 UTC) #21
vsevik
Let's extract all animations related methods to a specific (hidden) Animation domain in protocol in ...
6 years, 2 months ago (2014-10-14 11:55:36 UTC) #22
samli
I've refactored the code by introducing a new hidden Animation domain as suggested and moved ...
6 years, 2 months ago (2014-10-15 08:46:45 UTC) #23
vsevik
lgtm with a few nits https://codereview.chromium.org/620783002/diff/160001/Source/core/inspector/InspectorAnimationAgent.cpp File Source/core/inspector/InspectorAnimationAgent.cpp (right): https://codereview.chromium.org/620783002/diff/160001/Source/core/inspector/InspectorAnimationAgent.cpp#newcode4 Source/core/inspector/InspectorAnimationAgent.cpp:4: // found in the ...
6 years, 2 months ago (2014-10-16 08:13:52 UTC) #24
samli
https://codereview.chromium.org/620783002/diff/160001/Source/core/inspector/InspectorAnimationAgent.cpp File Source/core/inspector/InspectorAnimationAgent.cpp (right): https://codereview.chromium.org/620783002/diff/160001/Source/core/inspector/InspectorAnimationAgent.cpp#newcode4 Source/core/inspector/InspectorAnimationAgent.cpp:4: // found in the LICENSE file. On 2014/10/16 08:13:52, ...
6 years, 2 months ago (2014-10-16 22:59:30 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/620783002/180001
6 years, 2 months ago (2014-10-16 23:00:42 UTC) #27
commit-bot: I haz the power
6 years, 2 months ago (2014-10-17 01:25:54 UTC) #28
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as 183847

Powered by Google App Engine
This is Rietveld 408576698