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