feat: add object to subscribe notification callback (#19110)
This commit is contained in:
parent
6d34314457
commit
79114ff40a
3 changed files with 18 additions and 4 deletions
|
@ -67,7 +67,8 @@ class SystemPreferences : public mate::EventEmitter<SystemPreferences>
|
|||
#elif defined(OS_MACOSX)
|
||||
using NotificationCallback =
|
||||
base::RepeatingCallback<void(const std::string&,
|
||||
const base::DictionaryValue&)>;
|
||||
const base::DictionaryValue&,
|
||||
const std::string&)>;
|
||||
|
||||
void PostNotification(const std::string& name,
|
||||
const base::DictionaryValue& user_info,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue