| 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_
|
|
|