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

Side by Side Diff: third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_constants.mojom

Issue 1127293003: Update mojo sdk to rev f84766d3b6420b7cf6a113d9d65d73cb5fe18d90 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge IPC fixes Created 5 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2015 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
5 [JavaPackage="org.chromium.mojo.bindings.test.mojom.test_constants"]
6 module mojo.test;
7
8 // Integral types.
9 const bool kBoolValue = true;
10
11 const int8 kInt8Value = -2;
12
13 // In the range of (MAX_INT8, MAX_UINT8].
14 const uint8 kUint8Value = 128;
15
16 // In the range of [MIN_INT16, MIN_INT8).
17 const int16 kInt16Value = -233;
18
19 // In the range of (MAX_INT16, MAX_UINT16].
20 const uint16 kUint16Value = 44204;
21
22 // In the range of [MIN_INT32, MIN_INT16).
23 const int32 kInt32Value = -44204;
24
25 // In the range of (MAX_INT32, MAX_UINT32].
26 const uint32 kUint32Value = 4294967295;
27
28 // In the range of [MIN_INT64, MIN_INT32).
29 const int64 kInt64Value = -9223372036854775807;
30
31 // In the range of (MAX_INT64, MAX_UINT64].
32 const uint64 kUint64Value = 9999999999999999999;
33
34 // Floating point types.
35 const double kDoubleValue = 3.14159;
36 const double kDoubleInfinity = double.INFINITY;
37 const double kDoubleNegativeInfinity = double.NEGATIVE_INFINITY;
38 const double kDoubleNaN = double.NAN;
39
40 const float kFloatValue = 2.71828;
41 const float kFloatInfinity = float.INFINITY;
42 const float kFloatNegativeInfinity = float.NEGATIVE_INFINITY;
43 const float kFloatNaN = float.NAN;
44
45 struct StructWithConstants {
46 const int8 kInt8Value = 5;
47 const float kFloatValue = 765.432;
48 };
49
50 interface InterfaceWithConstants {
51 const uint32 kUint32Value = 20100722;
52 const double kDoubleValue = 12.34567;
53 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698