nullable_primitives.mojom 944 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright 2022 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. module crosapi.mojom;
  5. // Primitive numeric types cannot be optional in Mojom.
  6. // We therefore wrap them in structs here which can be used for optional values.
  7. [Stable, RenamedFrom="ash.health.mojom.DoubleValue"]
  8. struct DoubleValue {
  9. // The value of the double.
  10. double value@0;
  11. };
  12. [Stable, RenamedFrom="ash.health.mojom.Int64Value"]
  13. struct Int64Value {
  14. // The value of the int64.
  15. int64 value@0;
  16. };
  17. [Stable, RenamedFrom="ash.health.mojom.UInt32Value"]
  18. struct UInt32Value {
  19. // The value of the uint32.
  20. uint32 value@0;
  21. };
  22. [Stable, RenamedFrom="ash.health.mojom.UInt64Value"]
  23. struct UInt64Value {
  24. // The value of the uint64.
  25. uint64 value@0;
  26. };
  27. [Stable, RenamedFrom="ash.health.mojom.BoolValue"]
  28. struct BoolValue {
  29. // The value of the bool.
  30. bool value@0;
  31. };