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

Side by Side Diff: chrome/browser/ui/cocoa/download/download_started_animation_mac.mm

Issue 6657003: Update a bunch of files to the new location of notification files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file contains the Mac implementation the download animation, displayed 5 // This file contains the Mac implementation the download animation, displayed
6 // at the start of a download. The animation produces an arrow pointing 6 // at the start of a download. The animation produces an arrow pointing
7 // downwards and animates towards the bottom of the window where the new 7 // downwards and animates towards the bottom of the window where the new
8 // download appears in the download shelf. 8 // download appears in the download shelf.
9 9
10 #include "chrome/browser/download/download_started_animation.h" 10 #include "chrome/browser/download/download_started_animation.h"
11 11
12 #import <QuartzCore/QuartzCore.h> 12 #import <QuartzCore/QuartzCore.h>
13 13
14 #include "chrome/browser/tab_contents/tab_contents_view_mac.h" 14 #include "chrome/browser/tab_contents/tab_contents_view_mac.h"
15 #include "chrome/common/notification_registrar.h"
16 #import "chrome/browser/ui/cocoa/animatable_image.h" 15 #import "chrome/browser/ui/cocoa/animatable_image.h"
17 #include "chrome/common/notification_details.h"
18 #include "chrome/common/notification_source.h"
19 #include "content/browser/tab_contents/tab_contents.h" 16 #include "content/browser/tab_contents/tab_contents.h"
17 #include "content/common/notification_details.h"
18 #include "content/common/notification_registrar.h"
19 #include "content/common/notification_source.h"
20 #include "grit/theme_resources.h" 20 #include "grit/theme_resources.h"
21 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" 21 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h"
22 #include "third_party/skia/include/utils/mac/SkCGUtils.h" 22 #include "third_party/skia/include/utils/mac/SkCGUtils.h"
23 #include "ui/base/resource/resource_bundle.h" 23 #include "ui/base/resource/resource_bundle.h"
24 #include "ui/gfx/image.h" 24 #include "ui/gfx/image.h"
25 25
26 class DownloadAnimationTabObserver; 26 class DownloadAnimationTabObserver;
27 27
28 // A class for managing the Core Animation download animation. 28 // A class for managing the Core Animation download animation.
29 // Should be instantiated using +startAnimationWithTabContents:. 29 // Should be instantiated using +startAnimationWithTabContents:.
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 } 188 }
189 189
190 @end 190 @end
191 191
192 void DownloadStartedAnimation::Show(TabContents* tab_contents) { 192 void DownloadStartedAnimation::Show(TabContents* tab_contents) {
193 DCHECK(tab_contents); 193 DCHECK(tab_contents);
194 194
195 // Will be deleted when the animation is complete. 195 // Will be deleted when the animation is complete.
196 [DownloadStartedAnimationMac startAnimationWithTabContents:tab_contents]; 196 [DownloadStartedAnimationMac startAnimationWithTabContents:tab_contents];
197 } 197 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698