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

Issue 243049: Cancel previous new tab "submarine" animations when starting the animation fo... (Closed)

Created:
11 years, 2 months ago by pink (ping after 24hrs)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Animate the new tab button when closing a tab. BUG=14919 TEST=new tab button is in the correct location. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=28851

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -10 lines) Patch
M chrome/browser/cocoa/tab_strip_controller.mm View 1 2 3 4 5 5 chunks +24 lines, -10 lines 3 comments Download

Messages

Total messages: 9 (0 generated)
pink (ping after 24hrs)
11 years, 2 months ago (2009-10-06 19:00:55 UTC) #1
pink (ping after 24hrs)
changed to only move the NTB on close tab, removed everything else. please take another ...
11 years, 2 months ago (2009-10-13 16:20:08 UTC) #2
Mark Mentovai
At first I wasn't sure about the animation but it's already started to grow on ...
11 years, 2 months ago (2009-10-13 16:26:35 UTC) #3
pink (ping after 24hrs)
I can't reproduce this. Any tips? On Tue, Oct 13, 2009 at 12:26 PM, <mark@chromium.org> ...
11 years, 2 months ago (2009-10-13 16:32:29 UTC) #4
rohitrao (ping after 24h)
http://codereview.chromium.org/243049/diff/7001/7002 File chrome/browser/cocoa/tab_strip_controller.mm (right): http://codereview.chromium.org/243049/diff/7001/7002#newcode450 Line 450: // if we only have 1 tab. Is ...
11 years, 2 months ago (2009-10-13 16:55:04 UTC) #5
pink (ping after 24hrs)
http://codereview.chromium.org/243049/diff/7001/7002 File chrome/browser/cocoa/tab_strip_controller.mm (right): http://codereview.chromium.org/243049/diff/7001/7002#newcode450 Line 450: // if we only have 1 tab. On ...
11 years, 2 months ago (2009-10-13 16:58:57 UTC) #6
rohitrao (ping after 24h)
LGTM, assuming mark doesn't find another way to break it.
11 years, 2 months ago (2009-10-13 17:09:29 UTC) #7
Mark Mentovai
LGTM http://codereview.chromium.org/243049/diff/13001/13002 File chrome/browser/cocoa/tab_strip_controller.mm (right): http://codereview.chromium.org/243049/diff/13001/13002#newcode365 Line 365: const float kInstantly = 0.000001; Can you ...
11 years, 2 months ago (2009-10-13 17:30:23 UTC) #8
pink (ping after 24hrs)
11 years, 2 months ago (2009-10-13 17:49:11 UTC) #9
All of these fixed.

On Tue, Oct 13, 2009 at 1:30 PM,  <mark@chromium.org> wrote:
> LGTM
>
>
> http://codereview.chromium.org/243049/diff/13001/13002
> File chrome/browser/cocoa/tab_strip_controller.mm (right):
>
> http://codereview.chromium.org/243049/diff/13001/13002#newcode365
> Line 365: const float kInstantly =3D 0.000001;
> Can you #include <limits> and use the
> std::numeric_limits<NSTimeInterval>::min() trick that I used in
> status_bubble_mac.mm? =A0Also, this should be an NSTimeInterval, not a
> float.
>
> http://codereview.chromium.org/243049/diff/13001/13002#newcode423
> Line 423: [[NSAnimationContext currentContext] setDuration:kInstantly];
> Seems kind of funny to say "set duration to instantly" - since the only
> thing we use the constant for is "set duration," we might as well make
> it grammatically correct.
>
> http://codereview.chromium.org/243049/diff/13001/13002#newcode503
> Line 503: [NSAnimationContext beginGrouping];
> Adding this is what fixed the bug I was seeing earlier with the
> disappearing new tab button.
>
> http://codereview.chromium.org/243049
>



--=20
Mike Pinkerton
Mac Weenie
pinkerton@google.com

Powered by Google App Engine
This is Rietveld 408576698