OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 public: | 44 public: |
45 // DownloadItemGtk takes ownership of |download_item_model|. | 45 // DownloadItemGtk takes ownership of |download_item_model|. |
46 DownloadItemGtk(DownloadShelfGtk* parent_shelf, | 46 DownloadItemGtk(DownloadShelfGtk* parent_shelf, |
47 BaseDownloadItemModel* download_item_model); | 47 BaseDownloadItemModel* download_item_model); |
48 | 48 |
49 // Destroys all widgets belonging to this DownloadItemGtk. | 49 // Destroys all widgets belonging to this DownloadItemGtk. |
50 virtual ~DownloadItemGtk(); | 50 virtual ~DownloadItemGtk(); |
51 | 51 |
52 // content::DownloadItem::Observer implementation. | 52 // content::DownloadItem::Observer implementation. |
53 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE; | 53 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE; |
| 54 virtual void OnDownloadDestructed(content::DownloadItem* download) OVERRIDE; |
54 virtual void OnDownloadOpened(content::DownloadItem* download) OVERRIDE; | 55 virtual void OnDownloadOpened(content::DownloadItem* download) OVERRIDE; |
55 | 56 |
56 // ui::AnimationDelegate implementation. | 57 // ui::AnimationDelegate implementation. |
57 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 58 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
58 | 59 |
59 // Overridden from content::NotificationObserver: | 60 // Overridden from content::NotificationObserver: |
60 virtual void Observe(int type, | 61 virtual void Observe(int type, |
61 const content::NotificationSource& source, | 62 const content::NotificationSource& source, |
62 const content::NotificationDetails& details) OVERRIDE; | 63 const content::NotificationDetails& details) OVERRIDE; |
63 | 64 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 245 |
245 // Whether we are currently disabled as part of opening the downloaded file. | 246 // Whether we are currently disabled as part of opening the downloaded file. |
246 bool disabled_while_opening_; | 247 bool disabled_while_opening_; |
247 | 248 |
248 // Method factory used to delay reenabling of the item when opening the | 249 // Method factory used to delay reenabling of the item when opening the |
249 // downloaded file. | 250 // downloaded file. |
250 base::WeakPtrFactory<DownloadItemGtk> weak_ptr_factory_; | 251 base::WeakPtrFactory<DownloadItemGtk> weak_ptr_factory_; |
251 }; | 252 }; |
252 | 253 |
253 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ | 254 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ |
OLD | NEW |