OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 view that implements one download on the Download shelf. | 5 // A view 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. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 class Image; | 47 class Image; |
48 class ImageSkia; | 48 class ImageSkia; |
49 class SlideAnimation; | 49 class SlideAnimation; |
50 } | 50 } |
51 | 51 |
52 namespace ui { | 52 namespace ui { |
53 class ThemeProvider; | 53 class ThemeProvider; |
54 } | 54 } |
55 | 55 |
56 namespace views { | 56 namespace views { |
57 class ImageButton; | |
58 class Label; | 57 class Label; |
59 class LabelButton; | |
60 class MdTextButton; | 58 class MdTextButton; |
61 } | 59 } |
62 | 60 |
63 // Represents a single download item on the download shelf. Encompasses an icon, | 61 // Represents a single download item on the download shelf. Encompasses an icon, |
64 // text, malicious download warnings, etc. | 62 // text, malicious download warnings, etc. |
65 class DownloadItemView : public views::InkDropHostView, | 63 class DownloadItemView : public views::InkDropHostView, |
66 public views::VectorIconButtonDelegate, | 64 public views::VectorIconButtonDelegate, |
67 public views::ContextMenuController, | 65 public views::ContextMenuController, |
68 public content::DownloadItem::Observer, | 66 public content::DownloadItem::Observer, |
69 public gfx::AnimationDelegate { | 67 public gfx::AnimationDelegate { |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 std::unique_ptr<extensions::ExperienceSamplingEvent> sampling_event_; | 329 std::unique_ptr<extensions::ExperienceSamplingEvent> sampling_event_; |
332 | 330 |
333 // Method factory used to delay reenabling of the item when opening the | 331 // Method factory used to delay reenabling of the item when opening the |
334 // downloaded file. | 332 // downloaded file. |
335 base::WeakPtrFactory<DownloadItemView> weak_ptr_factory_; | 333 base::WeakPtrFactory<DownloadItemView> weak_ptr_factory_; |
336 | 334 |
337 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); | 335 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); |
338 }; | 336 }; |
339 | 337 |
340 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H_ | 338 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H_ |
OLD | NEW |