| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/cocoa/download_item_cell.h" | 5 #import "chrome/browser/cocoa/download_item_cell.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/text_elider.h" | 8 #include "app/text_elider.h" |
| 9 #include "base/mac_util.h" | 9 #include "base/mac_util.h" |
| 10 #include "base/sys_string_conversions.h" | 10 #include "base/sys_string_conversions.h" |
| 11 #import "chrome/browser/browser_theme_provider.h" | |
| 12 #import "chrome/browser/cocoa/download_item_cell.h" | 11 #import "chrome/browser/cocoa/download_item_cell.h" |
| 13 #import "chrome/browser/cocoa/image_utils.h" | 12 #import "chrome/browser/cocoa/image_utils.h" |
| 14 #import "chrome/browser/cocoa/themed_window.h" | 13 #import "chrome/browser/cocoa/themed_window.h" |
| 15 #include "chrome/browser/download/download_item.h" | 14 #include "chrome/browser/download/download_item.h" |
| 16 #include "chrome/browser/download/download_item_model.h" | 15 #include "chrome/browser/download/download_item_model.h" |
| 17 #include "chrome/browser/download/download_manager.h" | 16 #include "chrome/browser/download/download_manager.h" |
| 18 #include "chrome/browser/download/download_util.h" | 17 #include "chrome/browser/download/download_util.h" |
| 18 #import "chrome/browser/themes/browser_theme_provider.h" |
| 19 #include "gfx/canvas_skia_paint.h" | 19 #include "gfx/canvas_skia_paint.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 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h" | 22 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h" |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 // Distance from top border to icon | 26 // Distance from top border to icon |
| 27 const CGFloat kImagePaddingTop = 7; | 27 const CGFloat kImagePaddingTop = 7; |
| 28 | 28 |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 } | 699 } |
| 700 return self; | 700 return self; |
| 701 } | 701 } |
| 702 | 702 |
| 703 - (void)setCurrentProgress:(NSAnimationProgress)progress { | 703 - (void)setCurrentProgress:(NSAnimationProgress)progress { |
| 704 [super setCurrentProgress:progress]; | 704 [super setCurrentProgress:progress]; |
| 705 [cell_ animation:self progressed:progress]; | 705 [cell_ animation:self progressed:progress]; |
| 706 } | 706 } |
| 707 | 707 |
| 708 @end | 708 @end |
| OLD | NEW |