Add systemPreferences.getUserDefault

This commit is contained in:
Cheng Zhao 2016-04-25 15:35:52 +09:00
parent a421c66f3f
commit 067e9c1a85
3 changed files with 28 additions and 0 deletions

View file

@ -28,6 +28,8 @@ class SystemPreferences : public mate::EventEmitter<SystemPreferences> {
int SubscribeNotification(const std::string& name,
const base::Closure& callback);
void UnsubscribeNotification(int id);
v8::Local<v8::Value> GetUserDefault(const std::string& name,
const std::string& type);
#endif
bool IsDarkMode();