diff options
author | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-10 19:59:26 +0000 |
---|---|---|
committer | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-10 19:59:26 +0000 |
commit | 44fc30fc16c738daaef3bef331ff7a1e5b5b1b05 (patch) | |
tree | 62a9ba51ec422e9bd8cafd9de13310835a1a3bae /chrome/browser/cocoa/download_item_cell.mm | |
parent | ced52850257336648fd357ea294519f5a9f351dd (diff) | |
download | chromium_src-44fc30fc16c738daaef3bef331ff7a1e5b5b1b05.zip chromium_src-44fc30fc16c738daaef3bef331ff7a1e5b5b1b05.tar.gz chromium_src-44fc30fc16c738daaef3bef331ff7a1e5b5b1b05.tar.bz2 |
Add support for slowing down all animations on the Mac by using the shift and/or
control key.
BUG=27274
TEST= 1) create a window.
2) Create a tab.
3) Hold down the shift key and click in the close button on the tab.
4) Watch animation proceed slowly. (and slower if you hold down shift + control)
This should apply to all non-web page animations.
Review URL: http://codereview.chromium.org/388004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31588 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/download_item_cell.mm')
-rw-r--r-- | chrome/browser/cocoa/download_item_cell.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/download_item_cell.mm b/chrome/browser/cocoa/download_item_cell.mm index a108565..8c180c7 100644 --- a/chrome/browser/cocoa/download_item_cell.mm +++ b/chrome/browser/cocoa/download_item_cell.mm @@ -13,6 +13,7 @@ #include "chrome/browser/download/download_item_model.h" #include "chrome/browser/download/download_manager.h" #include "chrome/browser/download/download_util.h" +#import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" #import "third_party/GTM/AppKit/GTMTheme.h" namespace { @@ -548,8 +549,8 @@ const int kCompleteAnimationDuration = 2.5; - (id)initWithDownloadItemCell:(DownloadItemCell*)cell duration:(NSTimeInterval)duration animationCurve:(NSAnimationCurve)animationCurve { - if ((self = [super initWithDuration:duration - animationCurve:animationCurve])) { + if ((self = [super gtm_initWithDuration:duration + animationCurve:animationCurve])) { cell_ = cell; [self setAnimationBlockingMode:NSAnimationNonblocking]; } |