recent_app_click_observer.h 889 B

123456789101112131415161718192021222324252627
  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_RECENT_APP_CLICK_OBSERVER_H_
  5. #define ASH_COMPONENTS_PHONEHUB_RECENT_APP_CLICK_OBSERVER_H_
  6. #include "ash/components/phonehub/notification.h"
  7. #include "base/observer_list_types.h"
  8. namespace ash {
  9. namespace phonehub {
  10. // Interface used to listen for a recent app click.
  11. class RecentAppClickObserver : public base::CheckedObserver {
  12. public:
  13. ~RecentAppClickObserver() override = default;
  14. // Called when the user clicks the recent app which has an open
  15. // action in the PhoneHub.
  16. virtual void OnRecentAppClicked(
  17. const Notification::AppMetadata& app_metadata) = 0;
  18. };
  19. } // namespace phonehub
  20. } // namespace ash
  21. #endif // ASH_COMPONENTS_PHONEHUB_RECENT_APP_CLICK_OBSERVER_H_