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" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // is visible. | 44 // is visible. |
45 const CGFloat kPrimaryTextPosTop = 3; | 45 const CGFloat kPrimaryTextPosTop = 3; |
46 | 46 |
47 // y coordinate of download name string, in view coords, when status message | 47 // y coordinate of download name string, in view coords, when status message |
48 // is not visible. | 48 // is not visible. |
49 const CGFloat kPrimaryTextOnlyPosTop = 10; | 49 const CGFloat kPrimaryTextOnlyPosTop = 10; |
50 | 50 |
51 // y coordinate of status message, in view coords. | 51 // y coordinate of status message, in view coords. |
52 const CGFloat kSecondaryTextPosTop = 18; | 52 const CGFloat kSecondaryTextPosTop = 18; |
53 | 53 |
54 // Grey value of status text. | |
55 const CGFloat kSecondaryTextColor = 0.5; | |
56 | |
57 // Width of dropdown area on the right (includes 1px for the border on each | 54 // Width of dropdown area on the right (includes 1px for the border on each |
58 // side). | 55 // side). |
59 const CGFloat kDropdownAreaWidth = 14; | 56 const CGFloat kDropdownAreaWidth = 14; |
60 | 57 |
61 // Width of dropdown arrow. | 58 // Width of dropdown arrow. |
62 const CGFloat kDropdownArrowWidth = 5; | 59 const CGFloat kDropdownArrowWidth = 5; |
63 | 60 |
64 // Height of dropdown arrow. | 61 // Height of dropdown arrow. |
65 const CGFloat kDropdownArrowHeight = 3; | 62 const CGFloat kDropdownArrowHeight = 3; |
66 | 63 |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 | 767 |
771 - (void)invalidate { | 768 - (void)invalidate { |
772 [timer_ invalidate]; | 769 [timer_ invalidate]; |
773 } | 770 } |
774 | 771 |
775 - (void)onTimer:(NSTimer*)timer { | 772 - (void)onTimer:(NSTimer*)timer { |
776 [cell_ updateIndeterminateDownload]; | 773 [cell_ updateIndeterminateDownload]; |
777 } | 774 } |
778 | 775 |
779 @end | 776 @end |
OLD | NEW |