Update API to get/setLoginItemSettings
This commit is contained in:
parent
e4906f2d87
commit
c100300764
4 changed files with 85 additions and 44 deletions
|
@ -92,6 +92,14 @@ class Browser : public WindowListObserver {
|
|||
int GetBadgeCount();
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
struct LoginItemSettings {
|
||||
bool open_at_login = false;
|
||||
bool open_as_hidden = false;
|
||||
bool restore_state = false;
|
||||
bool opened_at_login = false;
|
||||
bool opened_as_hidden = false;
|
||||
};
|
||||
|
||||
// Hide the application.
|
||||
void Hide();
|
||||
|
||||
|
@ -135,14 +143,11 @@ class Browser : public WindowListObserver {
|
|||
// Set docks' icon.
|
||||
void DockSetIcon(const gfx::Image& image);
|
||||
|
||||
// Get login item status of app
|
||||
v8::Local<v8::Value> GetLoginItemStatus(mate::Arguments* args);
|
||||
// Get login item settings of app
|
||||
LoginItemSettings GetLoginItemSettings();
|
||||
|
||||
// Set app as a login item
|
||||
void SetAsLoginItem(mate::Arguments* args);
|
||||
|
||||
// Remove app as a login item
|
||||
void RemoveAsLoginItem();
|
||||
// Set login item settings of app
|
||||
void SetLoginItemSettings(LoginItemSettings settings);
|
||||
#endif // defined(OS_MACOSX)
|
||||
|
||||
#if defined(OS_WIN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue