12345678910111213141516171819202122232425262728 |
- // Copyright 2021 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #ifndef ASH_COMPONENTS_PHONEHUB_NOTIFICATION_CLICK_HANDLER_H_
- #define ASH_COMPONENTS_PHONEHUB_NOTIFICATION_CLICK_HANDLER_H_
- #include "ash/components/phonehub/notification.h"
- #include "base/observer_list_types.h"
- namespace ash {
- namespace phonehub {
- // Handles actions performed on a notification.
- class NotificationClickHandler : public base::CheckedObserver {
- public:
- ~NotificationClickHandler() override = default;
- // Called when the user clicks the PhoneHub notification which has a open
- // action.
- virtual void HandleNotificationClick(
- int64_t notification_id,
- const Notification::AppMetadata& app_metadata) = 0;
- };
- } // namespace phonehub
- } // namespace ash
- #endif // ASH_COMPONENTS_PHONEHUB_NOTIFICATION_CLICK_HANDLER_H_
|