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

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

Issue 7618048: Move the core download files to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 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 #import "chrome/browser/ui/cocoa/download/download_item_cell.h" 5 #import "chrome/browser/ui/cocoa/download/download_item_cell.h"
6 6
7 #include "base/sys_string_conversions.h" 7 #include "base/sys_string_conversions.h"
8 #include "chrome/browser/download/download_item.h"
9 #include "chrome/browser/download/download_item_model.h" 8 #include "chrome/browser/download/download_item_model.h"
10 #include "chrome/browser/download/download_manager.h"
11 #include "chrome/browser/download/download_util.h" 9 #include "chrome/browser/download/download_util.h"
12 #import "chrome/browser/themes/theme_service.h" 10 #import "chrome/browser/themes/theme_service.h"
13 #import "chrome/browser/ui/cocoa/download/background_theme.h" 11 #import "chrome/browser/ui/cocoa/download/background_theme.h"
14 #import "chrome/browser/ui/cocoa/image_utils.h" 12 #import "chrome/browser/ui/cocoa/image_utils.h"
15 #import "chrome/browser/ui/cocoa/themed_window.h" 13 #import "chrome/browser/ui/cocoa/themed_window.h"
14 #include "content/browser/download/download_item.h"
15 #include "content/browser/download/download_manager.h"
16 #include "grit/theme_resources.h" 16 #include "grit/theme_resources.h"
17 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" 17 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h"
18 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h" 18 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h"
19 #include "ui/base/l10n/l10n_util.h" 19 #include "ui/base/l10n/l10n_util.h"
20 #include "ui/base/text/text_elider.h" 20 #include "ui/base/text/text_elider.h"
21 #include "ui/gfx/canvas_skia_paint.h" 21 #include "ui/gfx/canvas_skia_paint.h"
22 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" 22 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
23 23
24 // Distance from top border to icon. 24 // Distance from top border to icon.
25 const CGFloat kImagePaddingTop = 7; 25 const CGFloat kImagePaddingTop = 7;
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 } 684 }
685 return self; 685 return self;
686 } 686 }
687 687
688 - (void)setCurrentProgress:(NSAnimationProgress)progress { 688 - (void)setCurrentProgress:(NSAnimationProgress)progress {
689 [super setCurrentProgress:progress]; 689 [super setCurrentProgress:progress];
690 [cell_ animation:self progressed:progress]; 690 [cell_ animation:self progressed:progress];
691 } 691 }
692 692
693 @end 693 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698