OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_UI_VIEWS_DOWNLOAD_ITEM_VIEW_H__ | 16 #ifndef CHROME_BROWSER_UI_VIEWS_DOWNLOAD_ITEM_VIEW_H__ |
17 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_ITEM_VIEW_H__ | 17 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_ITEM_VIEW_H__ |
18 #pragma once | 18 #pragma once |
19 | 19 |
20 #include <string> | 20 #include <string> |
21 | 21 |
22 #include "base/basictypes.h" | 22 #include "base/basictypes.h" |
23 #include "base/scoped_ptr.h" | 23 #include "base/scoped_ptr.h" |
24 #include "base/time.h" | 24 #include "base/time.h" |
25 #include "base/timer.h" | 25 #include "base/timer.h" |
26 #include "chrome/browser/cancelable_request.h" | 26 #include "chrome/browser/cancelable_request.h" |
27 #include "chrome/browser/download/download_item.h" | 27 #include "chrome/browser/download/download_item.h" |
28 #include "chrome/browser/download/download_manager.h" | 28 #include "chrome/browser/download/download_manager.h" |
29 #include "chrome/browser/icon_manager.h" | 29 #include "chrome/browser/icon_manager.h" |
30 #include "gfx/font.h" | |
31 #include "ui/base/animation/animation_delegate.h" | 30 #include "ui/base/animation/animation_delegate.h" |
| 31 #include "ui/gfx/font.h" |
32 #include "views/event.h" | 32 #include "views/event.h" |
33 #include "views/controls/button/button.h" | 33 #include "views/controls/button/button.h" |
34 #include "views/view.h" | 34 #include "views/view.h" |
35 | 35 |
36 class BaseDownloadItemModel; | 36 class BaseDownloadItemModel; |
37 class DownloadShelfView; | 37 class DownloadShelfView; |
38 class SkBitmap; | 38 class SkBitmap; |
39 class DownloadShelfContextMenuWin; | 39 class DownloadShelfContextMenuWin; |
40 | 40 |
41 namespace ui { | 41 namespace ui { |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 272 |
273 // If non-NULL, set to true when this object is deleted. | 273 // If non-NULL, set to true when this object is deleted. |
274 // (Used when showing the context menu as it runs an inner message loop that | 274 // (Used when showing the context menu as it runs an inner message loop that |
275 // might delete us). | 275 // might delete us). |
276 bool* deleted_; | 276 bool* deleted_; |
277 | 277 |
278 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); | 278 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); |
279 }; | 279 }; |
280 | 280 |
281 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_ITEM_VIEW_H__ | 281 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_ITEM_VIEW_H__ |
OLD | NEW |