Chromium Code Reviews| 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..efc687b5109f70fd6f60c65c7d700fde0d379261 |
| --- /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 less than 1.0 shows the progress bar. |
| +void SetProgressPercent(float percentage); |
|
Evan Martin
2011/04/26 21:33:04
It's a little weird to call it 'percentage' when i
|
| + |
| +} // namespace unity |
| + |
| +#endif // CHROME_BROWSER_UI_GTK_UNITY_SERVICE_H_ |