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

Unified Diff: chrome/browser/download/download_util.cc

Issue 6903017: GTK: Add download notifications to the unity dock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/launcher/dock/; Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/dock_service.h » ('j') | chrome/browser/ui/gtk/dock_service.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_util.cc
diff --git a/chrome/browser/download/download_util.cc b/chrome/browser/download/download_util.cc
index 05751ded1ff230e8b028cb2f9f6e1809025a5dfa..0fffcff72c95d11aad9a6238bf493fe20a8cf2f7 100644
--- a/chrome/browser/download/download_util.cc
+++ b/chrome/browser/download/download_util.cc
@@ -70,6 +70,7 @@
#include "views/widget/widget_gtk.h"
#elif defined(TOOLKIT_GTK)
#include "chrome/browser/ui/gtk/custom_drag.h"
+#include "chrome/browser/ui/gtk/dock_service.h"
#endif // defined(TOOLKIT_GTK)
#endif // defined(TOOLKIT_USES_GTK)
@@ -756,6 +757,12 @@ void UpdateAppIconDownloadProgress(int download_count,
else
taskbar->SetProgressValue(frame, static_cast<int>(progress * 100), 100);
}
+#elif defined(TOOLKIT_GTK)
+ DockService* service = DockService::GetService();
Evan Martin 2011/04/26 00:33:52 This appears to make blocking disk calls. Do we c
Elliot Glaysher 2011/04/26 01:02:39 I'm not sure. The dlsym parts (I think) can be run
+ if (service) {
+ service->SetDownloadCount(download_count);
+ service->SetProgressPercent(progress);
+ }
#endif
}
#endif
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/dock_service.h » ('j') | chrome/browser/ui/gtk/dock_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698