| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 DownloadItemModel model_; | 281 DownloadItemModel model_; |
| 282 | 282 |
| 283 // Hover animations for our body and drop buttons. | 283 // Hover animations for our body and drop buttons. |
| 284 scoped_ptr<gfx::SlideAnimation> body_hover_animation_; | 284 scoped_ptr<gfx::SlideAnimation> body_hover_animation_; |
| 285 scoped_ptr<gfx::SlideAnimation> drop_hover_animation_; | 285 scoped_ptr<gfx::SlideAnimation> drop_hover_animation_; |
| 286 | 286 |
| 287 // Animation for download complete. | 287 // Animation for download complete. |
| 288 scoped_ptr<gfx::SlideAnimation> complete_animation_; | 288 scoped_ptr<gfx::SlideAnimation> complete_animation_; |
| 289 | 289 |
| 290 // Progress animation | 290 // Progress animation |
| 291 base::RepeatingTimer<DownloadItemViewMd> progress_timer_; | 291 base::RepeatingTimer progress_timer_; |
| 292 | 292 |
| 293 // Dangerous mode buttons. | 293 // Dangerous mode buttons. |
| 294 views::LabelButton* save_button_; | 294 views::LabelButton* save_button_; |
| 295 views::LabelButton* discard_button_; | 295 views::LabelButton* discard_button_; |
| 296 | 296 |
| 297 // The drop down button. | 297 // The drop down button. |
| 298 views::ImageButton* dropdown_button_; | 298 views::ImageButton* dropdown_button_; |
| 299 | 299 |
| 300 // Dangerous mode label. | 300 // Dangerous mode label. |
| 301 views::Label* dangerous_download_label_; | 301 views::Label* dangerous_download_label_; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 331 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; | 331 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; |
| 332 | 332 |
| 333 // Method factory used to delay reenabling of the item when opening the | 333 // Method factory used to delay reenabling of the item when opening the |
| 334 // downloaded file. | 334 // downloaded file. |
| 335 base::WeakPtrFactory<DownloadItemViewMd> weak_ptr_factory_; | 335 base::WeakPtrFactory<DownloadItemViewMd> weak_ptr_factory_; |
| 336 | 336 |
| 337 DISALLOW_COPY_AND_ASSIGN(DownloadItemViewMd); | 337 DISALLOW_COPY_AND_ASSIGN(DownloadItemViewMd); |
| 338 }; | 338 }; |
| 339 | 339 |
| 340 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_MD_H_ | 340 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_MD_H_ |
| OLD | NEW |