unity_service.h 776 B

1234567891011121314151617181920212223
  1. // Copyright 2013 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ELECTRON_SHELL_BROWSER_LINUX_UNITY_SERVICE_H_
  5. #define ELECTRON_SHELL_BROWSER_LINUX_UNITY_SERVICE_H_
  6. namespace unity {
  7. // Returns whether unity is currently running.
  8. bool IsRunning();
  9. // If unity is running, sets the download counter in the dock icon. Any value
  10. // other than 0 displays the badge.
  11. void SetDownloadCount(int count);
  12. // If unity is running, sets the download progress bar in the dock icon. Any
  13. // value between 0.0 and 1.0 (exclusive) shows the progress bar.
  14. void SetProgressFraction(float percentage);
  15. } // namespace unity
  16. #endif // ELECTRON_SHELL_BROWSER_LINUX_UNITY_SERVICE_H_