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

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

Issue 173456: Revert my download item change.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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
« no previous file with comments | « no previous file | chrome/browser/gtk/download_item_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Sets the name label to the correct color. 77 // Sets the name label to the correct color.
78 void UpdateNameLabel(); 78 void UpdateNameLabel();
79 79
80 // Sets the text with the correct color if |status_label| exists. 80 // Sets the text with the correct color if |status_label| exists.
81 void UpdateStatusLabel(GtkWidget* status_label, 81 void UpdateStatusLabel(GtkWidget* status_label,
82 const std::string& status_text); 82 const std::string& status_text);
83 83
84 // Sets the components of the danger warning. 84 // Sets the components of the danger warning.
85 void UpdateDangerWarning(); 85 void UpdateDangerWarning();
86 86
87 // Remove ourselves from the parent download shelf. This will delete us.
88 void RemoveThis();
89
90 static void InitNineBoxes(); 87 static void InitNineBoxes();
91 88
92 // Draws everything in GTK rendering mode. 89 // Draws everything in GTK rendering mode.
93 static gboolean OnHboxExpose(GtkWidget* widget, GdkEventExpose* e, 90 static gboolean OnHboxExpose(GtkWidget* widget, GdkEventExpose* e,
94 DownloadItemGtk* download_item); 91 DownloadItemGtk* download_item);
95 92
96 // Used for the download item's body and menu button in chrome theme mode. 93 // Used for the download item's body and menu button in chrome theme mode.
97 static gboolean OnExpose(GtkWidget* widget, GdkEventExpose* e, 94 static gboolean OnExpose(GtkWidget* widget, GdkEventExpose* e,
98 DownloadItemGtk* download_item); 95 DownloadItemGtk* download_item);
99 96
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // The file icon for the download. May be null. 204 // The file icon for the download. May be null.
208 SkBitmap* icon_; 205 SkBitmap* icon_;
209 // The last download file path for which we requested an icon. 206 // The last download file path for which we requested an icon.
210 FilePath icon_filepath_; 207 FilePath icon_filepath_;
211 208
212 NotificationRegistrar registrar_; 209 NotificationRegistrar registrar_;
213 210
214 // The time at which we were insantiated. 211 // The time at which we were insantiated.
215 base::Time creation_time_; 212 base::Time creation_time_;
216 213
217 ScopedRunnableMethodFactory<DownloadItemGtk> method_factory_;
218
219 // For canceling an in progress icon request. 214 // For canceling an in progress icon request.
220 CancelableRequestConsumerT<int, 0> icon_consumer_; 215 CancelableRequestConsumerT<int, 0> icon_consumer_;
221 }; 216 };
222 217
223 #endif // CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ 218 #endif // CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/download_item_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698