Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: mojo/public/interfaces/bindings/tests/sample_service.mojom

Issue 474063002: Mojo: add support for {double,float}.{INFINITY,NEGATIVE_INFINITY,NAN} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 uint8[] a18@18; 69 uint8[] a18@18;
70 string a19@19; 70 string a19@19;
71 71
72 Bar.Type a20@20 = BOTH; 72 Bar.Type a20@20 = BOTH;
73 imported.Point a21@21; 73 imported.Point a21@21;
74 imported.Thing a22@22 = default; 74 imported.Thing a22@22 = default;
75 75
76 uint64 a23@23 = 0xFFFFFFFFFFFFFFFF; 76 uint64 a23@23 = 0xFFFFFFFFFFFFFFFF;
77 int64 a24@24 = 0x123456789; 77 int64 a24@24 = 0x123456789;
78 int64 a25@25 = -0x123456789; 78 int64 a25@25 = -0x123456789;
79
80 double a26@26 = Inf;
81 double a27@27 = +Inf;
82 double a28@28 = -Inf;
83 double a29@29 = NaN;
79 }; 84 };
80 85
81 struct StructWithHoleV1 { 86 struct StructWithHoleV1 {
82 int32 v1 = 1; 87 int32 v1 = 1;
83 int64 v2 = 2; 88 int64 v2 = 2;
84 }; 89 };
85 90
86 struct StructWithHoleV2 { 91 struct StructWithHoleV2 {
87 int32 v1 = 1; 92 int32 v1 = 1;
88 int64 v2 = 2; 93 int64 v2 = 2;
(...skipping 15 matching lines...) Expand all
104 DidFrobinate@0(int32 result@0); 109 DidFrobinate@0(int32 result@0);
105 }; 110 };
106 111
107 // This interface is referenced above where it is defined. It also refers to 112 // This interface is referenced above where it is defined. It also refers to
108 // itself from a method. 113 // itself from a method.
109 interface Port { 114 interface Port {
110 PostMessage@0(string message_text@0, Port port@1); 115 PostMessage@0(string message_text@0, Port port@1);
111 }; 116 };
112 117
113 } 118 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698