| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_GTK_DOWNLOAD_ITEM_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ | 6 #define CHROME_BROWSER_GTK_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 21 matching lines...) Expand all Loading... |
| 32 public: | 32 public: |
| 33 // DownloadItemGtk takes ownership of |download_item_model|. | 33 // DownloadItemGtk takes ownership of |download_item_model|. |
| 34 DownloadItemGtk(DownloadShelfGtk* parent_shelf, | 34 DownloadItemGtk(DownloadShelfGtk* parent_shelf, |
| 35 BaseDownloadItemModel* download_item_model); | 35 BaseDownloadItemModel* download_item_model); |
| 36 | 36 |
| 37 // Destroys all widgets belonging to this DownloadItemGtk. | 37 // Destroys all widgets belonging to this DownloadItemGtk. |
| 38 ~DownloadItemGtk(); | 38 ~DownloadItemGtk(); |
| 39 | 39 |
| 40 // DownloadItem::Observer implementation. | 40 // DownloadItem::Observer implementation. |
| 41 virtual void OnDownloadUpdated(DownloadItem* download); | 41 virtual void OnDownloadUpdated(DownloadItem* download); |
| 42 virtual void OnDownloadFileCompleted(DownloadItem* download) { } |
| 42 virtual void OnDownloadOpened(DownloadItem* download) { } | 43 virtual void OnDownloadOpened(DownloadItem* download) { } |
| 43 | 44 |
| 44 // AnimationDelegate implementation. | 45 // AnimationDelegate implementation. |
| 45 virtual void AnimationProgressed(const Animation* animation); | 46 virtual void AnimationProgressed(const Animation* animation); |
| 46 | 47 |
| 47 // Overridden from NotificationObserver: | 48 // Overridden from NotificationObserver: |
| 48 virtual void Observe(NotificationType type, | 49 virtual void Observe(NotificationType type, |
| 49 const NotificationSource& source, | 50 const NotificationSource& source, |
| 50 const NotificationDetails& details); | 51 const NotificationDetails& details); |
| 51 | 52 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 NotificationRegistrar registrar_; | 217 NotificationRegistrar registrar_; |
| 217 | 218 |
| 218 // The time at which we were insantiated. | 219 // The time at which we were insantiated. |
| 219 base::Time creation_time_; | 220 base::Time creation_time_; |
| 220 | 221 |
| 221 // For canceling an in progress icon request. | 222 // For canceling an in progress icon request. |
| 222 CancelableRequestConsumerT<int, 0> icon_consumer_; | 223 CancelableRequestConsumerT<int, 0> icon_consumer_; |
| 223 }; | 224 }; |
| 224 | 225 |
| 225 #endif // CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ | 226 #endif // CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ |
| OLD | NEW |