actions.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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_QUICK_PAIR_UI_ACTIONS_H_
  5. #define ASH_QUICK_PAIR_UI_ACTIONS_H_
  6. #include <ostream>
  7. namespace ash {
  8. namespace quick_pair {
  9. enum class DiscoveryAction {
  10. kPairToDevice = 0,
  11. kDismissedByUser = 1,
  12. kDismissed = 2,
  13. kLearnMore = 3,
  14. };
  15. enum class AssociateAccountAction {
  16. kAssoicateAccount = 0,
  17. kLearnMore = 1,
  18. kDismissedByUser = 2,
  19. kDismissed = 3
  20. };
  21. enum class CompanionAppAction {
  22. kDownloadAndLaunchApp = 0,
  23. kLaunchApp = 1,
  24. kDismissedByUser = 2,
  25. kDismissed = 3
  26. };
  27. enum class PairingFailedAction {
  28. kNavigateToSettings = 0,
  29. kDismissedByUser = 1,
  30. kDismissed = 2
  31. };
  32. std::ostream& operator<<(std::ostream& stream, DiscoveryAction protocol);
  33. std::ostream& operator<<(std::ostream& stream, AssociateAccountAction protocol);
  34. std::ostream& operator<<(std::ostream& stream, CompanionAppAction protocol);
  35. std::ostream& operator<<(std::ostream& stream, PairingFailedAction protocol);
  36. } // namespace quick_pair
  37. } // namespace ash
  38. #endif // ASH_QUICK_PAIR_UI_ACTIONS_H_