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

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

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
Index: chrome/browser/ui/gtk/dock_service.h
diff --git a/chrome/browser/ui/gtk/dock_service.h b/chrome/browser/ui/gtk/dock_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..9632efd440b28c4f8a36bffaa802a5c79712eb1d
--- /dev/null
+++ b/chrome/browser/ui/gtk/dock_service.h
@@ -0,0 +1,24 @@
+// 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_DOCK_SERVICE_H_
+#define CHROME_BROWSER_UI_GTK_DOCK_SERVICE_H_
+
+// A common interface to various application docks on the Linux desktop.
+class DockService {
+ public:
+ // Returns the singleton instance of LaunchService. This can return NULL if
+ // there's no dock on this desktop.
+ static DockService* GetService();
+
+ // Possibly sets the download counter in the dock icon. Any value other than
+ // 0 displays the badge.
+ virtual void SetDownloadCount(int count) = 0;
+
+ // Possibly sets the download progress bar in the dock icon. Any value less
+ // than 1.0 shows the progress bar.
+ virtual void SetProgressPercent(float percentage) = 0;
+};
+
+#endif // CHROME_BROWSER_UI_GTK_DOCK_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698