| 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 DownloadItemViewMd contains an application icon, a text label | 6 // Each DownloadItemViewMd 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 class Image; | 46 class Image; |
| 47 class ImageSkia; | 47 class ImageSkia; |
| 48 class SlideAnimation; | 48 class SlideAnimation; |
| 49 } | 49 } |
| 50 | 50 |
| 51 namespace ui { | 51 namespace ui { |
| 52 class ThemeProvider; | 52 class ThemeProvider; |
| 53 } | 53 } |
| 54 | 54 |
| 55 namespace views { | 55 namespace views { |
| 56 class ButtonInkDropDelegate; | |
| 57 class ImageButton; | 56 class ImageButton; |
| 58 class Label; | 57 class Label; |
| 59 class LabelButton; | 58 class LabelButton; |
| 60 } | 59 } |
| 61 | 60 |
| 62 // The DownloadItemView in MD style. This is copied from DownloadItemView, | 61 // The DownloadItemView in MD style. This is copied from DownloadItemView, |
| 63 // which it should eventually replace. | 62 // which it should eventually replace. |
| 64 class DownloadItemViewMd : public views::InkDropHostView, | 63 class DownloadItemViewMd : public views::InkDropHostView, |
| 65 public views::ButtonListener, | 64 public views::ButtonListener, |
| 66 public views::ContextMenuController, | 65 public views::ContextMenuController, |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 std::unique_ptr<extensions::ExperienceSamplingEvent> sampling_event_; | 319 std::unique_ptr<extensions::ExperienceSamplingEvent> sampling_event_; |
| 321 | 320 |
| 322 // Method factory used to delay reenabling of the item when opening the | 321 // Method factory used to delay reenabling of the item when opening the |
| 323 // downloaded file. | 322 // downloaded file. |
| 324 base::WeakPtrFactory<DownloadItemViewMd> weak_ptr_factory_; | 323 base::WeakPtrFactory<DownloadItemViewMd> weak_ptr_factory_; |
| 325 | 324 |
| 326 DISALLOW_COPY_AND_ASSIGN(DownloadItemViewMd); | 325 DISALLOW_COPY_AND_ASSIGN(DownloadItemViewMd); |
| 327 }; | 326 }; |
| 328 | 327 |
| 329 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_MD_H_ | 328 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_MD_H_ |
| OLD | NEW |