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

Unified Diff: chrome/browser/ui/gtk/unity_service.h

Issue 6903017: GTK: Add download notifications to the unity dock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: evnam comments 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 | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/unity_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/unity_service.h
diff --git a/chrome/browser/ui/gtk/unity_service.h b/chrome/browser/ui/gtk/unity_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..dca959519db6c559597200aa69e8dc94eb86c44d
--- /dev/null
+++ b/chrome/browser/ui/gtk/unity_service.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_GTK_UNITY_SERVICE_H_
+#define CHROME_BROWSER_UI_GTK_UNITY_SERVICE_H_
+
+#include <gtk/gtk.h>
+
+namespace unity {
+
+// Returns whether unity is currently running.
+bool IsRunning();
+
+// If unity is running, sets the download counter in the dock icon. Any value
+// other than 0 displays the badge.
+void SetDownloadCount(int count);
+
+// If unity is running, sets the download progress bar in the dock icon. Any
+// value between 0.0 and 1.0 (exclusive) shows the progress bar.
+void SetProgressFraction(float percentage);
+
+} // namespace unity
+
+#endif // CHROME_BROWSER_UI_GTK_UNITY_SERVICE_H_
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/unity_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698