1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25

content / test / data / mojo_bindings_web_test_types.test-mojom [blame]

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module mojo_bindings_test.mojom;

struct TestStruct {
  enum StructEnum {
    kZero = 0,
    kOne  = 1,
  };

  const int32 kStructConst = 2;

  int32 x;
  int32 y = kStructConst;
  StructEnum z = StructEnum.kOne;
  const bool isValid = false;
};

union TestUnion {
  int32 x;
  TestStruct s;
};