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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 | 285 |
286 // The drop down button. | 286 // The drop down button. |
287 BarControlButton* dropdown_button_; | 287 BarControlButton* dropdown_button_; |
288 | 288 |
289 // Dangerous mode label. | 289 // Dangerous mode label. |
290 views::Label* dangerous_download_label_; | 290 views::Label* dangerous_download_label_; |
291 | 291 |
292 // Whether the dangerous mode label has been sized yet. | 292 // Whether the dangerous mode label has been sized yet. |
293 bool dangerous_download_label_sized_; | 293 bool dangerous_download_label_sized_; |
294 | 294 |
295 // The size of the buttons. Cached so animation works when hidden. | |
296 mutable gfx::Size cached_button_size_; | |
297 | |
298 // Whether we are currently disabled as part of opening the downloaded file. | 295 // Whether we are currently disabled as part of opening the downloaded file. |
299 bool disabled_while_opening_; | 296 bool disabled_while_opening_; |
300 | 297 |
301 // The time at which this view was created. | 298 // The time at which this view was created. |
302 base::Time creation_time_; | 299 base::Time creation_time_; |
303 | 300 |
304 // The time at which a dangerous download warning was displayed. | 301 // The time at which a dangerous download warning was displayed. |
305 base::Time time_download_warning_shown_; | 302 base::Time time_download_warning_shown_; |
306 | 303 |
307 // The currently running download context menu. | 304 // The currently running download context menu. |
(...skipping 12 matching lines...) Expand all Loading... |
320 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; | 317 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; |
321 | 318 |
322 // Method factory used to delay reenabling of the item when opening the | 319 // Method factory used to delay reenabling of the item when opening the |
323 // downloaded file. | 320 // downloaded file. |
324 base::WeakPtrFactory<DownloadItemViewMd> weak_ptr_factory_; | 321 base::WeakPtrFactory<DownloadItemViewMd> weak_ptr_factory_; |
325 | 322 |
326 DISALLOW_COPY_AND_ASSIGN(DownloadItemViewMd); | 323 DISALLOW_COPY_AND_ASSIGN(DownloadItemViewMd); |
327 }; | 324 }; |
328 | 325 |
329 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_MD_H_ | 326 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_MD_H_ |
OLD | NEW |