Sanitized notification delegate implementation

I made `brightray::NotificationDelegate` back into just an interface and
extracted the implementation used by `PlatformNotificationService`, so that
the main process notification implementation can inherit only the interface.
This commit is contained in:
Ales Pergl 2017-11-01 23:14:27 +01:00 committed by Cheng Zhao
parent 8750fde6d3
commit f3c32647af
5 changed files with 56 additions and 70 deletions

View file

@ -51,8 +51,7 @@ namespace api {
Notification::Notification(v8::Isolate* isolate,
v8::Local<v8::Object> wrapper,
mate::Arguments* args)
: NotificationDelegate(std::string()) { // FIXME(alexeykuzmin)
mate::Arguments* args) {
InitWith(isolate, wrapper);
presenter_ = brightray::BrowserClient::Get()->GetNotificationPresenter();