Emit a close event
This commit is contained in:
parent
9aa6b83f86
commit
6cdfb43e4e
5 changed files with 21 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -14,6 +14,7 @@ class NotifictionObserver {
|
|||
virtual void OnClicked() {}
|
||||
virtual void OnReplied(std::string reply) {}
|
||||
virtual void OnShown() {}
|
||||
virtual void OnClosed() {}
|
||||
|
||||
protected:
|
||||
virtual ~NotifictionObserver() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue