notification_delegate.h 926 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright (c) 2015 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef BRIGHTRAY_BROWSER_NOTIFICATION_DELEGATE_H_
  5. #define BRIGHTRAY_BROWSER_NOTIFICATION_DELEGATE_H_
  6. #include <string>
  7. namespace brightray {
  8. class NotificationDelegate {
  9. public:
  10. // The native Notification object is destroyed.
  11. virtual void NotificationDestroyed() {}
  12. // Failed to send the notification.
  13. virtual void NotificationFailed() {}
  14. // Notification was replied to
  15. virtual void NotificationReplied(const std::string& reply) {}
  16. virtual void NotificationAction(int index) {}
  17. virtual void NotificationClick() {}
  18. virtual void NotificationClosed() {}
  19. virtual void NotificationDisplayed() {}
  20. protected:
  21. NotificationDelegate() = default;
  22. ~NotificationDelegate() = default;
  23. };
  24. } // namespace brightray
  25. #endif // BRIGHTRAY_BROWSER_NOTIFICATION_DELEGATE_H_