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> |
11 | 11 |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "base/task.h" | 14 #include "base/task.h" |
15 #include "base/time_format.h" | 15 #include "base/time_format.h" |
16 #include "base/timer.h" | 16 #include "base/timer.h" |
17 #include "chrome/app/theme/theme_resources.h" | 17 #include "grit/theme_resources.h" |
18 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
19 #include "chrome/browser/metrics/user_metrics.h" | 19 #include "chrome/browser/metrics/user_metrics.h" |
20 #include "chrome/browser/profile.h" | 20 #include "chrome/browser/profile.h" |
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/gfx/text_elider.h" | 23 #include "chrome/common/gfx/text_elider.h" |
24 #include "chrome/common/l10n_util.h" | 24 #include "chrome/common/l10n_util.h" |
25 #include "chrome/common/notification_service.h" | 25 #include "chrome/common/notification_service.h" |
26 #include "chrome/common/resource_bundle.h" | 26 #include "chrome/common/resource_bundle.h" |
27 #include "chrome/common/stl_util-inl.h" | 27 #include "chrome/common/stl_util-inl.h" |
(...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1332 case NotificationType::DOWNLOAD_STOP: | 1332 case NotificationType::DOWNLOAD_STOP: |
1333 DCHECK(profile()->HasCreatedDownloadManager()); | 1333 DCHECK(profile()->HasCreatedDownloadManager()); |
1334 contents_->SetIsLoading( | 1334 contents_->SetIsLoading( |
1335 profile()->GetDownloadManager()->in_progress_count() > 0, | 1335 profile()->GetDownloadManager()->in_progress_count() > 0, |
1336 NULL); | 1336 NULL); |
1337 break; | 1337 break; |
1338 default: | 1338 default: |
1339 break; | 1339 break; |
1340 } | 1340 } |
1341 } | 1341 } |
OLD | NEW |