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 // A ChromeView that implements one download on the Download shelf. | 5 // A ChromeView that implements one download on the Download shelf. |
6 // Each DownloadItemView contains an application icon, a text label | 6 // Each DownloadItemView contains an application icon, a text label |
7 // indicating the download's file name, a text label indicating the | 7 // indicating the download's file name, a text label indicating the |
8 // download's status (such as the number of bytes downloaded so far) | 8 // download's status (such as the number of bytes downloaded so far) |
9 // and a button for canceling an in progress download, or opening | 9 // and a button for canceling an in progress download, or opening |
10 // the completed download. | 10 // the completed download. |
11 // | 11 // |
12 // The DownloadItemView lives in the Browser, and has a corresponding | 12 // The DownloadItemView lives in the Browser, and has a corresponding |
13 // DownloadController that receives / writes data which lives in the | 13 // DownloadController that receives / writes data which lives in the |
14 // Renderer. | 14 // Renderer. |
15 | 15 |
16 #ifndef CHROME_BROWSER_VIEWS_DOWNLOAD_ITEM_VIEW_H__ | 16 #ifndef CHROME_BROWSER_VIEWS_DOWNLOAD_ITEM_VIEW_H__ |
17 #define CHROME_BROWSER_VIEWS_DOWNLOAD_ITEM_VIEW_H__ | 17 #define CHROME_BROWSER_VIEWS_DOWNLOAD_ITEM_VIEW_H__ |
18 | 18 |
19 #include <string> | 19 #include <string> |
20 | 20 |
21 #include "base/basictypes.h" | 21 #include "base/basictypes.h" |
22 #include "base/scoped_ptr.h" | 22 #include "base/scoped_ptr.h" |
23 #include "base/timer.h" | 23 #include "base/timer.h" |
24 #include "chrome/common/slide_animation.h" | 24 #include "chrome/common/slide_animation.h" |
25 #include "chrome/browser/cancelable_request.h" | 25 #include "chrome/browser/cancelable_request.h" |
26 #include "chrome/browser/download_manager.h" | 26 #include "chrome/browser/download/download_manager.h" |
27 #include "chrome/browser/icon_manager.h" | 27 #include "chrome/browser/icon_manager.h" |
28 #include "chrome/views/event.h" | 28 #include "chrome/views/event.h" |
29 #include "chrome/views/view.h" | 29 #include "chrome/views/view.h" |
30 #include "chrome/views/label.h" | 30 #include "chrome/views/label.h" |
31 | 31 |
32 class DownloadShelfView; | 32 class DownloadShelfView; |
33 class SkBitmap; | 33 class SkBitmap; |
34 | 34 |
35 class DownloadItemView : public ChromeViews::View, | 35 class DownloadItemView : public ChromeViews::View, |
36 public DownloadItem::Observer, | 36 public DownloadItem::Observer, |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 scoped_ptr<SlideAnimation> complete_animation_; | 187 scoped_ptr<SlideAnimation> complete_animation_; |
188 | 188 |
189 // Progress animation | 189 // Progress animation |
190 base::RepeatingTimer<DownloadItemView> progress_timer_; | 190 base::RepeatingTimer<DownloadItemView> progress_timer_; |
191 | 191 |
192 DISALLOW_EVIL_CONSTRUCTORS(DownloadItemView); | 192 DISALLOW_EVIL_CONSTRUCTORS(DownloadItemView); |
193 }; | 193 }; |
194 | 194 |
195 #endif // CHROME_BROWSER_VIEWS_DOWNLOAD_ITEM_VIEW_H__ | 195 #endif // CHROME_BROWSER_VIEWS_DOWNLOAD_ITEM_VIEW_H__ |
196 | 196 |
OLD | NEW |