Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: chrome/browser/ui/gtk/download/download_item_gtk.h

Issue 10704026: Reland DownloadItem::Observer::OnDownloadDestroyed() replaces DownloadItem::REMOVING (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698