notification_click_handler.h 922 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ASH_COMPONENTS_PHONEHUB_NOTIFICATION_CLICK_HANDLER_H_
  5. #define ASH_COMPONENTS_PHONEHUB_NOTIFICATION_CLICK_HANDLER_H_
  6. #include "ash/components/phonehub/notification.h"
  7. #include "base/observer_list_types.h"
  8. namespace ash {
  9. namespace phonehub {
  10. // Handles actions performed on a notification.
  11. class NotificationClickHandler : public base::CheckedObserver {
  12. public:
  13. ~NotificationClickHandler() override = default;
  14. // Called when the user clicks the PhoneHub notification which has a open
  15. // action.
  16. virtual void HandleNotificationClick(
  17. int64_t notification_id,
  18. const Notification::AppMetadata& app_metadata) = 0;
  19. };
  20. } // namespace phonehub
  21. } // namespace ash
  22. #endif // ASH_COMPONENTS_PHONEHUB_NOTIFICATION_CLICK_HANDLER_H_