Commit Graph

13 Commits

Author SHA1 Message Date
Alexandre Poirot
8c0e5c90ec Bug 1188401 - Expose require out of Loader.jsm and use it. r=jryans 2015-08-06 05:38:10 -07:00
Patrick Brosset
92153696ea Bug 1155663 - Show animations as synchronized time blocks in animation inspector; r=bgrins
This is the first step towards the animation-inspector UI v3 (bug 1153271).
The new UI is still hidden behind a pref, and this change doesn't implement
everything that is in the current v2 UI.
This introduces a new Timeline graph to represent all currently animated nodes
below the currently selected node.
v2 used to show them as independent player widgets. With this patch, we now show
them as synchronized time blocks on a common time scale.
Each animation has a preview of the animated node in the left sidebar, and a time
block on the right, the width of which represents its duration. The animation name
is also displayed.
There's also a time graduations header and background that gives the user information
about how long do the animations last.
This change does *not* provide a way to know what's the currentTime nor a way to
set it yet.
This also makes the existing animationinspector tests that still make sense with
the new timeline-based UI run with the new UI pref on.
2015-06-11 15:45:57 +02:00
Patrick Brosset
b63112fcdc Bug 1155653 - Preview animation target nodes in animationinspector panel; r=bgrins
This adds a generic walker method that cna be used to retrieve AnimationPlayerActor's
target DOM nodes in a way that they can be highlighted/selected later in the inspector.
Making the AnimationPlayerActor return the nodeActor directly wouldn't fully work, as
the walker would have missed the missing parent nodeFronts updates.
On the UI, this adds a new component in each PlayerWidget that displays a preview of the
target DOM nodes, highlight them on hover, and select them on click.
2015-05-04 13:55:51 +02:00
Patrick Brosset
c3d0aa3f8c Bug 1155553 - Fixes animationinspector regression with actor-capabilities detection; r=bgrins 2015-04-17 10:14:14 +02:00
Brian Grinstead
8216c7e38f Bug 1153903 - Get rid of logspam during devtools talos test runs;r=pbrosset 2015-04-16 09:54:04 -07:00
Patrick Brosset
977c0dc71b Bug 1120833 - 3 - Refresh the list of animation widgets when new animations are added; r=miker
(Re-land after backout)
The animation-controler was in charge of getting new animation players and refreshing
the UI when done. This is still the case, but it now listens for mutation events from
the actor too, and when they happen, it simply asks the ui to refresh again.
Also, animations with playState "finished" that remain in the animation inspector panel
can now be played again.
2015-04-01 10:16:40 +02:00
Patrick Brosset
eb87dc2fc8 Bug 1144615 - 2 - Adds a playbackRate selector widget to the animation panel; r=vporof
This adds a playbackRate <select> dropdown next to the list of other playback
control buttons (play/pause, rw, fwd).
The list shows presets, unless the current rate isn't part of these presets
in which case it also shows this rate in the list.
The widget was created as a reusable component with a simple API, like the
PlayerMetaDataHeader.
2015-04-02 12:24:46 +02:00
Ryan VanderMeulen
d431ace806 Backed out 3 changesets (bug 1120833, bug 1149711) for causing bug 1150615.
Backed out changeset 527c548ff03c (bug 1149711)
Backed out changeset 2fe22ffef154 (bug 1120833)
Backed out changeset 501fa7c170ed (bug 1120833)

CLOSED TREE
2015-04-02 14:42:05 -04:00
Patrick Brosset
04f75d015f Bug 1120833 - 3 - Refresh the list of animation widgets when new animations are added; r=miker
The animation-controler was in charge of getting new animation players and refreshing
the UI when done. This is still the case, but it now listens for mutation events from
the actor too, and when they happen, it simply asks the ui to refresh again.
Also, animations with playState "finished" that remain in the animation inspector panel
can now be played again.
2015-04-01 10:16:40 +02:00
Patrick Brosset
30850f3c55 Bug 1120833 - 2 - Fire events about changed animations in the AnimationsActor; r=past
This makes the AnimationsActor listen for animation mutations after each
call to getAnimationPlayersForNode on the code that was passed in.
Whenever animations are added or removed, an event is sent to the front
with the list of changes.
The server doesn't know when the client doesn't require updates for the
current node anymore, so it exposes a new method for this.
Note that removed events for finished aniations are skipped, because the
corresponding animations can still be seeked/resumed, so we want the
AnimationPlayerActor to be preserved.
2015-04-02 12:47:34 +02:00
Patrick Brosset
66b72470da Bug 1120343 - 1 - Allow setting animations' currentTime by clicking/dragging the timeline; r=miker 2015-03-16 15:37:23 +01:00
Patrick Brosset
d38e70b8e6 Bug 1129454 - 2 - Adds a global play/pause button to the animation panel; r=vp 2015-02-12 16:28:42 +01:00
Patrick Brosset
2aab49fd92 Bug 1105825 - 4 - Adds a simple animation inspector panel to the inspector sidebar; r=bgrins r=vporof 2015-01-10 19:51:46 +01:00