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

Issue 354008: [Mac] Enables animations for the infobar.... (Closed)

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

Description

[Mac] Enables animations for the infobar. Changes the control flow for infobar opening/closing to match Windows more closely. Nib file changes: - Embedded the InfoBarGradientView inside an AnimatableView. - Rebound [controller view] to the AnimatableView and added an infoBarView_ IBOutlet. - Bound the AnimatableView's delegate_ to the InfoBarController. BUG=http://crbug.com/25599 TEST=Infobars should animate in and out, except for during tab switches. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30893

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+458 lines, -230 lines) Patch
M chrome/app/nibs/InfoBar.xib View 1 2 10 chunks +242 lines, -178 lines 0 comments Download
M chrome/browser/cocoa/infobar_container_controller.h View 1 2 2 chunks +22 lines, -8 lines 0 comments Download
M chrome/browser/cocoa/infobar_container_controller.mm View 1 2 3 4 7 chunks +40 lines, -15 lines 0 comments Download
M chrome/browser/cocoa/infobar_container_controller_unittest.mm View 1 2 2 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/cocoa/infobar_controller.h View 1 2 3 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/infobar_controller.mm View 1 2 3 4 5 7 chunks +83 lines, -16 lines 0 comments Download
M chrome/browser/cocoa/infobar_controller_unittest.mm View 1 2 5 chunks +44 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/view_resizer.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
rohitrao (ping after 24h)
11 years, 1 month ago (2009-11-03 20:17:03 UTC) #1
pink (ping after 24hrs)
LGTM http://codereview.chromium.org/354008/diff/2002/3013 File chrome/browser/cocoa/infobar_container_controller.h (right): http://codereview.chromium.org/354008/diff/2002/3013#newcode65 Line 65: // |controller| is still on the call ...
11 years, 1 month ago (2009-11-03 21:15:47 UTC) #2
rohitrao (ping after 24h)
http://codereview.chromium.org/354008/diff/2002/3013 File chrome/browser/cocoa/infobar_container_controller.h (right): http://codereview.chromium.org/354008/diff/2002/3013#newcode65 Line 65: // |controller| is still on the call stack. ...
11 years, 1 month ago (2009-11-03 22:50:23 UTC) #3
pink (ping after 24hrs)
11 years, 1 month ago (2009-11-04 12:44:11 UTC) #4
For the doc, can you add it to the list of docs we plan to write on
the wiki so we don't forget about it?

On Tue, Nov 3, 2009 at 5:50 PM,  <rohitrao@chromium.org> wrote:
>
> http://codereview.chromium.org/354008/diff/2002/3013
> File chrome/browser/cocoa/infobar_container_controller.h (right):
>
> http://codereview.chromium.org/354008/diff/2002/3013#newcode65
> Line 65: // |controller| is still on the call stack.
> On 2009/11/03 21:15:47, pink wrote:
>>
>> does this cause other controllers to animate their position to fill
>
> the space or
>>
>> anything like that?
>
> It'll cause a relayout, so any other infobars will jump to fill the
> space, not animate. =A0In practice, this method is only called in two
> places:
> 1) At the end of a close animation, in which case the view's height is
> already 0, so there is no visible change.
> 2) During a tab switch, in which case we want to get rid of the view
> without any animations, and there is no real danger of views jumping to
> fill the space because we're in the process of removing every infobar.
>
> I plan to write up a design doc for this. =A0The control flow when closin=
g
> infobars is really complicated, especially around where the TabContents
> gets notified that the infobar is gone vs. where the InfoBarDelegate
> itself is told to delete itself.
>
> http://codereview.chromium.org/354008/diff/2002/3011
> File chrome/browser/cocoa/infobar_controller.mm (right):
>
> http://codereview.chromium.org/354008/diff/2002/3011#newcode92
> Line 92: return (AnimatableView*)[self view];
> On 2009/11/03 21:15:47, pink wrote:
>>
>> static_cast?
>
> Done.
>
> http://codereview.chromium.org/354008
>



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

Powered by Google App Engine
This is Rietveld 408576698