| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/gfx/canvas_paint.h" | |
| 8 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 9 #include "app/text_elider.h" | 8 #include "app/text_elider.h" |
| 10 #include "base/mac_util.h" | 9 #include "base/mac_util.h" |
| 11 #include "base/sys_string_conversions.h" | 10 #include "base/sys_string_conversions.h" |
| 12 #import "chrome/browser/browser_theme_provider.h" | 11 #import "chrome/browser/browser_theme_provider.h" |
| 13 #import "chrome/browser/cocoa/download_item_cell.h" | 12 #import "chrome/browser/cocoa/download_item_cell.h" |
| 14 #import "chrome/browser/cocoa/themed_window.h" | 13 #import "chrome/browser/cocoa/themed_window.h" |
| 15 #include "chrome/browser/download/download_item_model.h" | 14 #include "chrome/browser/download/download_item_model.h" |
| 16 #include "chrome/browser/download/download_manager.h" | 15 #include "chrome/browser/download/download_manager.h" |
| 17 #include "chrome/browser/download/download_util.h" | 16 #include "chrome/browser/download/download_util.h" |
| 17 #include "gfx/canvas_paint.h" |
| 18 #include "grit/theme_resources.h" | 18 #include "grit/theme_resources.h" |
| 19 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" | 19 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" |
| 20 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h" | 20 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h" |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 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; |
| 26 | 26 |
| 27 // Distance from left border to icon | 27 // Distance from left border to icon |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 } | 690 } |
| 691 return self; | 691 return self; |
| 692 } | 692 } |
| 693 | 693 |
| 694 - (void)setCurrentProgress:(NSAnimationProgress)progress { | 694 - (void)setCurrentProgress:(NSAnimationProgress)progress { |
| 695 [super setCurrentProgress:progress]; | 695 [super setCurrentProgress:progress]; |
| 696 [cell_ animation:self progressed:progress]; | 696 [cell_ animation:self progressed:progress]; |
| 697 } | 697 } |
| 698 | 698 |
| 699 @end | 699 @end |
| OLD | NEW |