| OLD | NEW | 
|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 import "sample_import.mojom" | 5 import "sample_import.mojom" | 
| 6 import "sample_import2.mojom" | 6 import "sample_import2.mojom" | 
| 7 | 7 | 
| 8 [JavaPackage="org.chromium.mojo.bindings.test.mojom.sample"] | 8 [JavaPackage="org.chromium.mojo.bindings.test.mojom.sample"] | 
| 9 module sample { | 9 module sample { | 
| 10 | 10 | 
| 11 const uint8 kTwelve = 12; | 11 const uint8 kTwelve = 12; | 
| 12 const uint64 kTooBigForSignedInt64 = 9999999999999999999; | 12 const uint64 kTooBigForSignedInt64 = 9999999999999999999; | 
| 13 | 13 | 
|  | 14 const double kDoubleInfinity = double.INFINITY; | 
|  | 15 const double kDoubleNegativeInfinity = double.NEGATIVE_INFINITY; | 
|  | 16 const double kDoubleNaN = double.NAN; | 
|  | 17 | 
|  | 18 const float kFloatInfinity = float.INFINITY; | 
|  | 19 const float kFloatNegativeInfinity = float.NEGATIVE_INFINITY; | 
|  | 20 const float kFloatNaN = float.NAN; | 
|  | 21 | 
| 14 struct Bar { | 22 struct Bar { | 
| 15   enum Type { | 23   enum Type { | 
| 16     VERTICAL = 1, | 24     VERTICAL = 1, | 
| 17     HORIZONTAL, | 25     HORIZONTAL, | 
| 18     BOTH, | 26     BOTH, | 
| 19     INVALID | 27     INVALID | 
| 20   }; | 28   }; | 
| 21   uint8 alpha@0 = 0xff; | 29   uint8 alpha@0 = 0xff; | 
| 22   uint8 beta@1; | 30   uint8 beta@1; | 
| 23   uint8 gamma@2; | 31   uint8 gamma@2; | 
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 69   uint8[] a18@18; | 77   uint8[] a18@18; | 
| 70   string a19@19; | 78   string a19@19; | 
| 71 | 79 | 
| 72   Bar.Type a20@20 = BOTH; | 80   Bar.Type a20@20 = BOTH; | 
| 73   imported.Point a21@21; | 81   imported.Point a21@21; | 
| 74   imported.Thing a22@22 = default; | 82   imported.Thing a22@22 = default; | 
| 75 | 83 | 
| 76   uint64 a23@23 = 0xFFFFFFFFFFFFFFFF; | 84   uint64 a23@23 = 0xFFFFFFFFFFFFFFFF; | 
| 77   int64 a24@24 = 0x123456789; | 85   int64 a24@24 = 0x123456789; | 
| 78   int64 a25@25 = -0x123456789; | 86   int64 a25@25 = -0x123456789; | 
|  | 87 | 
|  | 88   double a26@26 = double.INFINITY; | 
|  | 89   double a27@27 = double.NEGATIVE_INFINITY; | 
|  | 90   double a28@28 = double.NAN; | 
|  | 91   float a29@29 = float.INFINITY; | 
|  | 92   float a30@30 = float.NEGATIVE_INFINITY; | 
|  | 93   float a31@31 = float.NAN; | 
| 79 }; | 94 }; | 
| 80 | 95 | 
| 81 struct StructWithHoleV1 { | 96 struct StructWithHoleV1 { | 
| 82   int32 v1 = 1; | 97   int32 v1 = 1; | 
| 83   int64 v2 = 2; | 98   int64 v2 = 2; | 
| 84 }; | 99 }; | 
| 85 | 100 | 
| 86 struct StructWithHoleV2 { | 101 struct StructWithHoleV2 { | 
| 87   int32 v1 = 1; | 102   int32 v1 = 1; | 
| 88   int64 v2 = 2; | 103   int64 v2 = 2; | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
| 104   DidFrobinate@0(int32 result@0); | 119   DidFrobinate@0(int32 result@0); | 
| 105 }; | 120 }; | 
| 106 | 121 | 
| 107 // This interface is referenced above where it is defined. It also refers to | 122 // This interface is referenced above where it is defined. It also refers to | 
| 108 // itself from a method. | 123 // itself from a method. | 
| 109 interface Port { | 124 interface Port { | 
| 110   PostMessage@0(string message_text@0, Port port@1); | 125   PostMessage@0(string message_text@0, Port port@1); | 
| 111 }; | 126 }; | 
| 112 | 127 | 
| 113 } | 128 } | 
| OLD | NEW | 
|---|