Add systemPreferences.subscribeNotification
This commit is contained in:
parent
ddd8eae661
commit
9557226223
3 changed files with 50 additions and 2 deletions
|
@ -5,7 +5,10 @@
|
|||
#ifndef ATOM_BROWSER_API_ATOM_API_SYSTEM_PREFERENCES_H_
|
||||
#define ATOM_BROWSER_API_ATOM_API_SYSTEM_PREFERENCES_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "atom/browser/api/event_emitter.h"
|
||||
#include "base/callback.h"
|
||||
#include "native_mate/handle.h"
|
||||
|
||||
namespace atom {
|
||||
|
@ -21,6 +24,10 @@ class SystemPreferences : public mate::EventEmitter<SystemPreferences> {
|
|||
|
||||
#if defined(OS_WIN)
|
||||
bool IsAeroGlassEnabled();
|
||||
#elif defined(OS_MACOSX)
|
||||
int SubscribeNotification(const std::string& name,
|
||||
const base::Closure& callback);
|
||||
void UnsubscribeNotification(int id);
|
||||
#endif
|
||||
bool IsDarkMode();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue