DescriptionAdded a CallbackLayerAnimationObserver.
This is based off of the CL here: https://codereview.chromium.org/1381463002/
This is some preliminary work to add callbacks to the InkDropAnimation
that will notify observers when an animation is started and ended. It was
decided to add a general CallbackLayerAnimationObserver that will
re-usuable by other things such as the CallbackAnimationObserver in
ash/wm/session_state_animator_impl.cc.
TEST=CallbackLayerAnimationObserverTest.VerifyInitialState
TEST=CallbackLayerAnimationObserverTest.ExplicitlyDeleteObserverInAnimationStartedCallbackWithNoSequencesAttached
TEST=CallbackLayerAnimationObserverTest.ExplicitlyDeleteObserverInAnimationStartedCallbackWithSomeSequencesAttached
TEST=CallbackLayerAnimationObserverTest.IgnoreTrueReturnValueForAnimationEndedCallbackIfExplicitlyDeleted
TEST=CallbackLayerAnimationObserverTest.SetActiveWhenNoSequencesWereAttached
TEST=CallbackLayerAnimationObserverTest.SetActiveWhenAllSequencesAreAttachedButNoneWereStarted
TEST=CallbackLayerAnimationObserverTest.SetActiveWhenAllSequencesAreAttachedAndOnlySomeWereStarted
TEST=CallbackLayerAnimationObserverTest.SetActiveWhenAllSequencesAreAttachedAndOnlySomeWereCompleted
TEST=CallbackLayerAnimationObserverTest.SetActiveAfterAllSequencesWereStartedButNoneWereCompleted
TEST=CallbackLayerAnimationObserverTest.SetActiveWhenAllSequencesAreStartedAndOnlySomeWereCompleted
TEST=CallbackLayerAnimationObserverTest.SetActiveWhenAllSequencesWereCompleted
TEST=CallbackLayerAnimationObserverTest.SetActiveAgainAfterAllSequencesWereCompleted
BUG=522175, 537614
Committed: https://crrev.com/3f35acd6de9138929e8a5e993c08b3c049d8b653
Cr-Commit-Position: refs/heads/master@{#353855}
Patch Set 1 #Patch Set 2 : Added tests and fixed bugs found. #Patch Set 3 : Fixed the diff delta to be based off the correct branch. #
Total comments: 9
Patch Set 4 : #Patch Set 5 : Minor fixes. #
Total comments: 2
Patch Set 6 : Guard against double deletes in the CallbackLayerAnimationObserver. #Patch Set 7 : Changed assertion from EXPECT_EQ to EXPECT_FALSE in CallbackLayerAnimationObserverTest.VerifyInitia… #Patch Set 8 : Reordered CallbackLayerAnimationObserverTest tests. #
Total comments: 6
Patch Set 9 : Addressed concerns from patch set 8. #
Messages
Total messages: 28 (7 generated)
|