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

Issue 8395046: Allows observers to be notified when layer animations complete. (Closed)

Created:
9 years, 1 month ago by Ian Vollick
Modified:
9 years, 1 month ago
Reviewers:
vollick1, sky
CC:
chromium-reviews, piman+watch_chromium.org, jonathan.backer, xiyuan
Visibility:
Public.

Description

Allows observers to be notified when layer animations complete. Depends on http://codereview.chromium.org/8362006/ BUG=101595 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108307

Patch Set 1 #

Patch Set 2 : Merge #

Patch Set 3 : . #

Patch Set 4 : Address reviewer comments. #

Patch Set 5 : merge with master #

Total comments: 7

Patch Set 6 : Address reviewer comments #

Patch Set 7 : Merge with master. #

Patch Set 8 : Address reviewer comments. #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+489 lines, -270 lines) Patch
M ui/aura/desktop.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -2 lines 0 comments Download
M ui/aura/desktop.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -2 lines 0 comments Download
M ui/aura/window.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M ui/aura/window.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M ui/gfx/compositor/compositor.gyp View 1 2 3 4 5 3 chunks +6 lines, -3 lines 0 comments Download
M ui/gfx/compositor/dummy_layer_animation_delegate.h View 1 2 3 4 5 1 chunk +0 lines, -48 lines 0 comments Download
M ui/gfx/compositor/dummy_layer_animation_delegate.cc View 1 2 3 4 5 1 chunk +0 lines, -55 lines 0 comments Download
M ui/gfx/compositor/layer.h View 1 2 3 3 chunks +2 lines, -3 lines 0 comments Download
M ui/gfx/compositor/layer.cc View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M ui/gfx/compositor/layer_animation_element_unittest.cc View 1 2 3 4 5 5 chunks +6 lines, -6 lines 0 comments Download
A ui/gfx/compositor/layer_animation_observer.h View 1 2 3 4 5 6 7 1 chunk +36 lines, -0 lines 1 comment Download
M ui/gfx/compositor/layer_animation_sequence.h View 1 2 3 4 5 6 7 4 chunks +22 lines, -0 lines 1 comment Download
M ui/gfx/compositor/layer_animation_sequence.cc View 1 2 3 4 5 6 7 4 chunks +34 lines, -0 lines 1 comment Download
M ui/gfx/compositor/layer_animation_sequence_unittest.cc View 1 2 3 4 5 7 chunks +33 lines, -16 lines 0 comments Download
M ui/gfx/compositor/layer_animator.h View 1 2 3 4 5 6 7 8 chunks +30 lines, -14 lines 0 comments Download
M ui/gfx/compositor/layer_animator.cc View 1 2 3 4 5 6 7 14 chunks +53 lines, -26 lines 3 comments Download
M ui/gfx/compositor/layer_animator_delegate.h View 1 2 3 1 chunk +0 lines, -33 lines 0 comments Download
M ui/gfx/compositor/layer_animator_unittest.cc View 1 2 3 4 5 6 7 17 chunks +95 lines, -16 lines 0 comments Download
M ui/gfx/compositor/layer_delegate.h View 1 2 3 2 chunks +0 lines, -5 lines 0 comments Download
M ui/gfx/compositor/layer_unittest.cc View 1 2 3 4 5 6 4 chunks +0 lines, -13 lines 0 comments Download
A + ui/gfx/compositor/test_layer_animation_delegate.h View 1 2 3 4 5 3 chunks +9 lines, -12 lines 1 comment Download
A ui/gfx/compositor/test_layer_animation_delegate.cc View 1 2 3 4 5 1 chunk +51 lines, -0 lines 0 comments Download
A ui/gfx/compositor/test_layer_animation_observer.h View 1 2 3 4 5 6 7 1 chunk +57 lines, -0 lines 1 comment Download
A ui/gfx/compositor/test_layer_animation_observer.cc View 1 2 3 4 5 6 7 1 chunk +35 lines, -0 lines 1 comment Download
M views/view.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M views/view.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Ian Vollick
9 years, 1 month ago (2011-10-26 20:17:50 UTC) #1
sky
I tend to think that a consumer of this API I care about when the ...
9 years, 1 month ago (2011-10-26 21:11:06 UTC) #2
vollick1
You're right, it is a bit awkward. Really, the animator operates in terms of sequences ...
9 years, 1 month ago (2011-10-27 15:57:15 UTC) #3
sky
I think the sequence observer is the one folks care about too. Maybe ScopedSettings should ...
9 years, 1 month ago (2011-10-27 17:01:49 UTC) #4
vollick1
That makes sense. Here's how I plan to move ahead (please let me know if ...
9 years, 1 month ago (2011-10-27 17:23:53 UTC) #5
sky
SGTM -Scott On Thu, Oct 27, 2011 at 10:22 AM, Ian Vollick <vollick@google.com> wrote: > ...
9 years, 1 month ago (2011-10-27 17:38:28 UTC) #6
Ian Vollick
I've implemented the plan. I've also made it so that LayerDelegates are not LayerAnimationObservers. This ...
9 years, 1 month ago (2011-10-27 18:43:25 UTC) #7
sky
Make sure you add some test coverage too. http://codereview.chromium.org/8395046/diff/10001/ui/aura/desktop.cc File ui/aura/desktop.cc (right): http://codereview.chromium.org/8395046/diff/10001/ui/aura/desktop.cc#newcode281 ui/aura/desktop.cc:281: #if ...
9 years, 1 month ago (2011-10-27 19:29:19 UTC) #8
Ian Vollick
On 2011/10/27 19:29:19, sky wrote: > Make sure you add some test coverage too. Done. ...
9 years, 1 month ago (2011-10-28 13:26:26 UTC) #9
sky
On Fri, Oct 28, 2011 at 6:26 AM, <vollick@chromium.org> wrote: > On 2011/10/27 19:29:19, sky ...
9 years, 1 month ago (2011-10-28 17:37:17 UTC) #10
Ian Vollick
> >> ui/gfx/compositor/layer_animator.cc:211: animator_->AddObserver(observer); > >> I believe this means the observer is notified of ...
9 years, 1 month ago (2011-10-28 20:22:30 UTC) #11
sky
http://codereview.chromium.org/8395046/diff/11003/ui/gfx/compositor/layer_animation_observer.h File ui/gfx/compositor/layer_animation_observer.h (right): http://codereview.chromium.org/8395046/diff/11003/ui/gfx/compositor/layer_animation_observer.h#newcode20 ui/gfx/compositor/layer_animation_observer.h:20: const LayerAnimationSequence* sequence) = 0; Most folks are only ...
9 years, 1 month ago (2011-10-28 22:11:38 UTC) #12
sky
On Fri, Oct 28, 2011 at 1:22 PM, <vollick@chromium.org> wrote: >> >> ui/gfx/compositor/layer_animator.cc:211: >> >> ...
9 years, 1 month ago (2011-10-28 22:13:25 UTC) #13
vollick1
> > >> >> animator_->AddObserver(observer); > >> >> I believe this means the observer is ...
9 years, 1 month ago (2011-10-29 01:17:33 UTC) #14
sky
Fri, Oct 28, 2011 at 6:17 PM, Ian Vollick <vollick@google.com> wrote: >> >> >> animator_->AddObserver(observer); ...
9 years, 1 month ago (2011-10-31 14:06:21 UTC) #15
sky
9 years, 1 month ago (2011-10-31 20:11:13 UTC) #16
LGTM

Powered by Google App Engine
This is Rietveld 408576698