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

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

Issue 1528032: Add download item tooltips on linux/win. (Closed)
Patch Set: fix compile Created 10 years, 8 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
« 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // Starts a repeating timer for UpdateDownloadProgress. 70 // Starts a repeating timer for UpdateDownloadProgress.
71 void StartDownloadProgress(); 71 void StartDownloadProgress();
72 72
73 // Stops the repeating timer. 73 // Stops the repeating timer.
74 void StopDownloadProgress(); 74 void StopDownloadProgress();
75 75
76 // Ask the icon manager to asynchronously start loading the icon for the file. 76 // Ask the icon manager to asynchronously start loading the icon for the file.
77 void LoadIcon(); 77 void LoadIcon();
78 78
79 // Sets the tooltip on the download button.
80 void UpdateTooltip();
81
79 // Sets the name label to the correct color. 82 // Sets the name label to the correct color.
80 void UpdateNameLabel(); 83 void UpdateNameLabel();
81 84
82 // Sets the text with the correct color if |status_label| exists. 85 // Sets the text with the correct color if |status_label| exists.
83 void UpdateStatusLabel(GtkWidget* status_label, 86 void UpdateStatusLabel(GtkWidget* status_label,
84 const std::string& status_text); 87 const std::string& status_text);
85 88
86 // Sets the components of the danger warning. 89 // Sets the components of the danger warning.
87 void UpdateDangerWarning(); 90 void UpdateDangerWarning();
88 91
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 NotificationRegistrar registrar_; 207 NotificationRegistrar registrar_;
205 208
206 // The time at which we were insantiated. 209 // The time at which we were insantiated.
207 base::Time creation_time_; 210 base::Time creation_time_;
208 211
209 // For canceling an in progress icon request. 212 // For canceling an in progress icon request.
210 CancelableRequestConsumerT<int, 0> icon_consumer_; 213 CancelableRequestConsumerT<int, 0> icon_consumer_;
211 }; 214 };
212 215
213 #endif // CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ 216 #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