2019-10-28 22:12:35 +00:00
|
|
|
// Copyright 2013 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.
|
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_LINUX_UNITY_SERVICE_H_
|
|
|
|
#define ELECTRON_SHELL_BROWSER_LINUX_UNITY_SERVICE_H_
|
2019-10-28 22:12:35 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#endif // ELECTRON_SHELL_BROWSER_LINUX_UNITY_SERVICE_H_
|