forked from adamlaska/electron
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunity_service.h
More file actions
23 lines (16 loc) · 776 Bytes
/
unity_service.h
File metadata and controls
23 lines (16 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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.
#ifndef ELECTRON_SHELL_BROWSER_LINUX_UNITY_SERVICE_H_
#define ELECTRON_SHELL_BROWSER_LINUX_UNITY_SERVICE_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 between 0.0 and 1.0 (exclusive) shows the progress bar.
void SetProgressFraction(float percentage);
} // namespace unity
#endif // ELECTRON_SHELL_BROWSER_LINUX_UNITY_SERVICE_H_