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_item_view.h" | 5 #include "chrome/browser/views/download_item_view.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "chrome/app/theme/theme_resources.h" | 9 #include "chrome/app/theme/theme_resources.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/download_util.h" | 11 #include "chrome/browser/download/download_util.h" |
12 #include "chrome/browser/views/download_shelf_view.h" | 12 #include "chrome/browser/views/download_shelf_view.h" |
13 #include "chrome/common/gfx/chrome_canvas.h" | 13 #include "chrome/common/gfx/chrome_canvas.h" |
14 #include "chrome/common/resource_bundle.h" | 14 #include "chrome/common/resource_bundle.h" |
15 #include "chrome/common/win_util.h" | 15 #include "chrome/common/win_util.h" |
16 #include "chrome/views/root_view.h" | 16 #include "chrome/views/root_view.h" |
17 #include "chrome/views/view_container.h" | 17 #include "chrome/views/view_container.h" |
18 | 18 |
19 #include "generated_resources.h" | 19 #include "generated_resources.h" |
20 | 20 |
21 // TODO(paulg): These may need to be adjusted when download progress | 21 // TODO(paulg): These may need to be adjusted when download progress |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 GetParent()->SchedulePaint(); | 537 GetParent()->SchedulePaint(); |
538 } | 538 } |
539 | 539 |
540 void DownloadItemView::LoadIcon() { | 540 void DownloadItemView::LoadIcon() { |
541 IconManager* im = g_browser_process->icon_manager(); | 541 IconManager* im = g_browser_process->icon_manager(); |
542 im->LoadIcon(download_->full_path(), IconLoader::SMALL, | 542 im->LoadIcon(download_->full_path(), IconLoader::SMALL, |
543 &icon_consumer_, | 543 &icon_consumer_, |
544 NewCallback(this, &DownloadItemView::OnExtractIconComplete)); | 544 NewCallback(this, &DownloadItemView::OnExtractIconComplete)); |
545 } | 545 } |
546 | 546 |
OLD | NEW |