software_feature_state.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2018 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_MULTIDEVICE_SOFTWARE_FEATURE_STATE_H_
  5. #define ASH_COMPONENTS_MULTIDEVICE_SOFTWARE_FEATURE_STATE_H_
  6. #include <ostream>
  7. namespace ash::multidevice {
  8. // State of a multi-device feature (see SoftwareFeature).
  9. //
  10. // Note that numerical enum values must not be changed as these values are
  11. // serialized to numbers and stored persistently.
  12. enum class SoftwareFeatureState {
  13. // Not supported by the device (e.g., hardware does not support feature).
  14. kNotSupported = 0,
  15. // Supported by device, but device has not enabled the feature.
  16. kSupported = 1,
  17. // Supported by device, and device has enabled the feature.
  18. kEnabled = 2
  19. };
  20. std::ostream& operator<<(std::ostream& stream,
  21. const SoftwareFeatureState& state);
  22. } // namespace ash::multidevice
  23. #endif // ASH_COMPONENTS_MULTIDEVICE_SOFTWARE_FEATURE_STATE_H_