| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "content/browser/cancelable_request.h" | 29 #include "content/browser/cancelable_request.h" |
| 30 #include "ui/base/animation/animation_delegate.h" | 30 #include "ui/base/animation/animation_delegate.h" |
| 31 #include "ui/gfx/font.h" | 31 #include "ui/gfx/font.h" |
| 32 #include "views/controls/button/button.h" | 32 #include "views/controls/button/button.h" |
| 33 #include "views/events/event.h" | 33 #include "views/events/event.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 DownloadShelfContextMenuView; |
| 40 | 40 |
| 41 namespace gfx { | 41 namespace gfx { |
| 42 class Image; | 42 class Image; |
| 43 } | 43 } |
| 44 | 44 |
| 45 namespace ui { | 45 namespace ui { |
| 46 class SlideAnimation; | 46 class SlideAnimation; |
| 47 } | 47 } |
| 48 | 48 |
| 49 namespace views { | 49 namespace views { |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 bool disabled_while_opening_; | 269 bool disabled_while_opening_; |
| 270 | 270 |
| 271 // The time at which this view was created. | 271 // The time at which this view was created. |
| 272 base::Time creation_time_; | 272 base::Time creation_time_; |
| 273 | 273 |
| 274 // Method factory used to delay reenabling of the item when opening the | 274 // Method factory used to delay reenabling of the item when opening the |
| 275 // downloaded file. | 275 // downloaded file. |
| 276 ScopedRunnableMethodFactory<DownloadItemView> reenable_method_factory_; | 276 ScopedRunnableMethodFactory<DownloadItemView> reenable_method_factory_; |
| 277 | 277 |
| 278 // The currently running download context menu. | 278 // The currently running download context menu. |
| 279 scoped_ptr<DownloadShelfContextMenuWin> context_menu_; | 279 scoped_ptr<DownloadShelfContextMenuView> context_menu_; |
| 280 | 280 |
| 281 // If non-NULL, set to true when this object is deleted. | 281 // If non-NULL, set to true when this object is deleted. |
| 282 // (Used when showing the context menu as it runs an inner message loop that | 282 // (Used when showing the context menu as it runs an inner message loop that |
| 283 // might delete us). | 283 // might delete us). |
| 284 bool* deleted_; | 284 bool* deleted_; |
| 285 | 285 |
| 286 // The name of this view as reported to assistive technology. | 286 // The name of this view as reported to assistive technology. |
| 287 string16 accessible_name_; | 287 string16 accessible_name_; |
| 288 | 288 |
| 289 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); | 289 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); |
| 290 }; | 290 }; |
| 291 | 291 |
| 292 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H__ | 292 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H__ |
| OLD | NEW |