Emit a close event

This commit is contained in:
Samuel Attard 2017-05-29 21:33:43 +10:00
parent 9aa6b83f86
commit 6cdfb43e4e
5 changed files with 21 additions and 11 deletions

View file

@ -23,7 +23,9 @@ void AtomNotificationDelegateAdapter::NotificationClick() {
void AtomNotificationDelegateAdapter::NotificationReplied(std::string reply) {
observer_->OnReplied(reply);
}
void AtomNotificationDelegateAdapter::NotificationDestroyed() {}
void AtomNotificationDelegateAdapter::NotificationDestroyed() {
observer_->OnClosed();
}
void AtomNotificationDelegateAdapter::NotificationFailed() {}
} // namespace atom

View file

@ -14,6 +14,7 @@ class NotifictionObserver {
virtual void OnClicked() {}
virtual void OnReplied(std::string reply) {}
virtual void OnShown() {}
virtual void OnClosed() {}
protected:
virtual ~NotifictionObserver() {}