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

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

Issue 10837125: Revert 149794 - DownloadItem::Observer::OnDownloadDestroyed() replaces DownloadItem::REMOVING (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1228/src/
Patch Set: Created 8 years, 4 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
Property Changes:
Deleted: svn:mergeinfo
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 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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_item_mac.mm ('k') | chrome/browser/ui/gtk/download/download_item_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698