[Mac] Add API for dock, fixes #46.
This commit is contained in:
parent
6e90430df5
commit
b1f88d680b
5 changed files with 76 additions and 0 deletions
|
@ -33,6 +33,19 @@ class Browser : public WindowListObserver {
|
|||
// Returns the version of the executable (or bundle).
|
||||
std::string GetVersion();
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
// Bounce the dock icon.
|
||||
enum BounceType {
|
||||
BOUNCE_CRITICAL = 0,
|
||||
BOUNCE_INFORMATIONAL = 10,
|
||||
};
|
||||
int DockBounce(BounceType type);
|
||||
void DockCancelBounce(int request_id);
|
||||
|
||||
// Set dock's badge text.
|
||||
void DockSetBadgeText(const std::string& label);
|
||||
#endif // defined(OS_MACOSX)
|
||||
|
||||
// Tell the application to open a file.
|
||||
bool OpenFile(const std::string& file_path);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue