| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/strings/sys_string_conversions.h" | 7 #include "base/strings/sys_string_conversions.h" |
| 8 #include "chrome/browser/download/download_item_model.h" | 8 #include "chrome/browser/download/download_item_model.h" |
| 9 #include "chrome/browser/download/download_shelf.h" | 9 #include "chrome/browser/download/download_shelf.h" |
| 10 #import "chrome/browser/themes/theme_properties.h" | 10 #import "chrome/browser/themes/theme_properties.h" |
| 11 #import "chrome/browser/ui/cocoa/download/background_theme.h" | 11 #import "chrome/browser/ui/cocoa/download/background_theme.h" |
| 12 #import "chrome/browser/ui/cocoa/themed_window.h" | 12 #import "chrome/browser/ui/cocoa/themed_window.h" |
| 13 #include "content/public/browser/download_item.h" | 13 #include "content/public/browser/download_item.h" |
| 14 #include "content/public/browser/download_manager.h" | 14 #include "content/public/browser/download_manager.h" |
| 15 #include "grit/theme_resources.h" | 15 #include "grit/theme_resources.h" |
| 16 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" | 16 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h
" |
| 17 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h" | 17 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSColor+Luminance.h" |
| 18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
| 19 #include "ui/gfx/text_elider.h" | 19 #include "ui/gfx/text_elider.h" |
| 20 #include "ui/gfx/canvas_skia_paint.h" | 20 #include "ui/gfx/canvas_skia_paint.h" |
| 21 #include "ui/gfx/font_list.h" | 21 #include "ui/gfx/font_list.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; |
| 26 | 26 |
| 27 // Distance from left border to icon. | 27 // Distance from left border to icon. |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 | 767 |
| 768 - (void)invalidate { | 768 - (void)invalidate { |
| 769 [timer_ invalidate]; | 769 [timer_ invalidate]; |
| 770 } | 770 } |
| 771 | 771 |
| 772 - (void)onTimer:(NSTimer*)timer { | 772 - (void)onTimer:(NSTimer*)timer { |
| 773 [cell_ updateIndeterminateDownload]; | 773 [cell_ updateIndeterminateDownload]; |
| 774 } | 774 } |
| 775 | 775 |
| 776 @end | 776 @end |
| OLD | NEW |