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

Issue 350002: [Mac] Adds a new view that will allow us to animate the height property of vi... (Closed)

Created:
11 years, 1 month ago by rohitrao (ping after 24h)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

[Mac] Adds a new view that will allow us to animate the height property of views. This class will be the base class for any view that needs to be animated. BUG=None TEST=No visible impact. New unittests should pass. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30852

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 5

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 25

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 2

Patch Set 10 : '' #

Total comments: 2

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -0 lines) Patch
A chrome/browser/cocoa/animatable_view.h View 1 2 3 4 5 6 7 8 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/animatable_view.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +100 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/animatable_view_unittest.mm View 1 2 3 4 5 6 7 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
rohitrao (ping after 24h)
I ended up going with NSAnimation, as it was the only way I could reliably ...
11 years, 1 month ago (2009-10-30 15:41:58 UTC) #1
TVL
drive by does it have to be a view? so everything has to be a ...
11 years, 1 month ago (2009-10-30 15:51:05 UTC) #2
rohitrao (ping after 24h)
does it have to be a view? so everything has to be a subclass of ...
11 years, 1 month ago (2009-10-30 16:06:59 UTC) #3
TVL
http://codereview.chromium.org/350002/diff/3001/3003 File chrome/browser/cocoa/animatable_view.mm (right): http://codereview.chromium.org/350002/diff/3001/3003#newcode45 Line 45: int height = floor(newHeight); On 2009/10/30 16:06:59, rohitrao ...
11 years, 1 month ago (2009-10-30 16:10:16 UTC) #4
Avi (use Gerrit)
On 2009/10/30 16:06:59, rohitrao wrote: > I couldn't > figure out how to cancel a ...
11 years, 1 month ago (2009-10-30 16:18:46 UTC) #5
rohitrao (ping after 24h)
On 2009/10/30 16:18:46, Avi wrote: > On 2009/10/30 16:06:59, rohitrao wrote: > > I couldn't ...
11 years, 1 month ago (2009-10-30 16:22:29 UTC) #6
John Grabowski
Drive by Consider a global notification mechanism of some kind (NSNotificationCenter?) to stop all animations ...
11 years, 1 month ago (2009-11-01 21:20:54 UTC) #7
pink (ping after 24hrs)
http://codereview.chromium.org/350002/diff/6004/6005 File chrome/browser/cocoa/animatable_view.h (right): http://codereview.chromium.org/350002/diff/6004/6005#newcode23 Line 23: IBOutlet id delegate_; // weak, used to send ...
11 years, 1 month ago (2009-11-02 16:01:00 UTC) #8
rohitrao (ping after 24h)
http://codereview.chromium.org/350002/diff/6004/6005 File chrome/browser/cocoa/animatable_view.h (right): http://codereview.chromium.org/350002/diff/6004/6005#newcode23 Line 23: IBOutlet id delegate_; // weak, used to send ...
11 years, 1 month ago (2009-11-02 16:34:05 UTC) #9
pink (ping after 24hrs)
http://codereview.chromium.org/350002/diff/2007/11004 File chrome/browser/cocoa/animatable_view.mm (right): http://codereview.chromium.org/350002/diff/2007/11004#newcode68 Line 68: currentAnimation_.reset([[NSHeightAnimation alloc] initWithView:self i don't see anything here ...
11 years, 1 month ago (2009-11-03 19:05:48 UTC) #10
rohitrao (ping after 24h)
http://codereview.chromium.org/350002/diff/2007/11004 File chrome/browser/cocoa/animatable_view.mm (right): http://codereview.chromium.org/350002/diff/2007/11004#newcode68 Line 68: currentAnimation_.reset([[NSHeightAnimation alloc] initWithView:self On 2009/11/03 19:05:48, pink wrote: ...
11 years, 1 month ago (2009-11-03 19:29:08 UTC) #11
pink (ping after 24hrs)
lgtm http://codereview.chromium.org/350002/diff/5012/5014 File chrome/browser/cocoa/animatable_view.mm (right): http://codereview.chromium.org/350002/diff/5012/5014#newcode53 Line 53: // We should've stopped all animations before ...
11 years, 1 month ago (2009-11-03 19:38:53 UTC) #12
rohitrao (ping after 24h)
11 years, 1 month ago (2009-11-03 19:53:40 UTC) #13
http://codereview.chromium.org/350002/diff/5012/5014
File chrome/browser/cocoa/animatable_view.mm (right):

http://codereview.chromium.org/350002/diff/5012/5014#newcode53
Line 53: // We should've stopped all animations before dealloc'ing the view.
On 2009/11/03 19:38:53, pink wrote:
> I'm not sure this is a valid dcheck. What happens if you close a window while
> one of these views is animating? Could the window teardown happen before the
> animation completes?

In practice, the infobar and download shelf are coded to kill any animations
before removing themselves, but there's no real need for this DCHECK.  Removing
it.

Powered by Google App Engine
This is Rietveld 408576698