OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "chrome/browser/views/download_tab_view.h" | 5 #include "chrome/browser/views/download_tab_view.h" |
6 | 6 |
7 #include <time.h> | 7 #include <time.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <functional> | 10 #include <functional> |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "chrome/common/gfx/chrome_canvas.h" | 21 #include "chrome/common/gfx/chrome_canvas.h" |
22 #include "chrome/common/gfx/chrome_font.h" | 22 #include "chrome/common/gfx/chrome_font.h" |
23 #include "chrome/common/l10n_util.h" | 23 #include "chrome/common/l10n_util.h" |
24 #include "chrome/common/resource_bundle.h" | 24 #include "chrome/common/resource_bundle.h" |
25 #include "chrome/common/stl_util-inl.h" | 25 #include "chrome/common/stl_util-inl.h" |
26 #include "chrome/common/time_format.h" | 26 #include "chrome/common/time_format.h" |
27 #include "chrome/views/background.h" | 27 #include "chrome/views/background.h" |
28 #include "googleurl/src/gurl.h" | 28 #include "googleurl/src/gurl.h" |
29 #include "generated_resources.h" | 29 #include "generated_resources.h" |
30 | 30 |
| 31 using base::Time; |
| 32 using base::TimeDelta; |
| 33 |
31 // Approximate spacing, in pixels, taken from initial UI mock up screens | 34 // Approximate spacing, in pixels, taken from initial UI mock up screens |
32 static const int kVerticalPadding = 5; | 35 static const int kVerticalPadding = 5; |
33 static const int kHorizontalLinkPadding = 15; | 36 static const int kHorizontalLinkPadding = 15; |
34 static const int kHorizontalButtonPadding = 8; | 37 static const int kHorizontalButtonPadding = 8; |
35 | 38 |
36 // For vertical and horizontal element spacing | 39 // For vertical and horizontal element spacing |
37 static const int kSpacer = 20; | 40 static const int kSpacer = 20; |
38 | 41 |
39 // Horizontal space between the left edge of the entries and the | 42 // Horizontal space between the left edge of the entries and the |
40 // left edge of the view. | 43 // left edge of the view. |
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1296 case NOTIFY_DOWNLOAD_STOP: | 1299 case NOTIFY_DOWNLOAD_STOP: |
1297 DCHECK(profile()->HasCreatedDownloadManager()); | 1300 DCHECK(profile()->HasCreatedDownloadManager()); |
1298 contents_->SetIsLoading( | 1301 contents_->SetIsLoading( |
1299 profile()->GetDownloadManager()->in_progress_count() > 0, | 1302 profile()->GetDownloadManager()->in_progress_count() > 0, |
1300 NULL); | 1303 NULL); |
1301 break; | 1304 break; |
1302 default: | 1305 default: |
1303 break; | 1306 break; |
1304 } | 1307 } |
1305 } | 1308 } |
1306 | |
OLD | NEW |