| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef MOJO_PUBLIC_C_BINDINGS_VALIDATION_H_ | 5 #ifndef MOJO_PUBLIC_C_INCLUDE_MOJO_BINDINGS_VALIDATION_H_ |
| 6 #define MOJO_PUBLIC_C_BINDINGS_VALIDATION_H_ | 6 #define MOJO_PUBLIC_C_INCLUDE_MOJO_BINDINGS_VALIDATION_H_ |
| 7 | 7 |
| 8 #include <mojo/macros.h> | 8 #include <mojo/macros.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 MOJO_BEGIN_EXTERN_C | 11 MOJO_BEGIN_EXTERN_C |
| 12 | 12 |
| 13 // One of MOJOM_VALIDATION_* codes; See below. | 13 // One of MOJOM_VALIDATION_* codes; See below. |
| 14 typedef uint32_t MojomValidationResult; | 14 typedef uint32_t MojomValidationResult; |
| 15 | 15 |
| 16 // No error; successful validation. | 16 // No error; successful validation. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 ((MojomValidationResult)11) | 53 ((MojomValidationResult)11) |
| 54 // Two parallel arrays which are supposed to represent a map have different | 54 // Two parallel arrays which are supposed to represent a map have different |
| 55 // lengths. | 55 // lengths. |
| 56 #define MOJOM_VALIDATION_DIFFERENT_SIZED_ARRAYS_IN_MAP \ | 56 #define MOJOM_VALIDATION_DIFFERENT_SIZED_ARRAYS_IN_MAP \ |
| 57 ((MojomValidationResult)12) | 57 ((MojomValidationResult)12) |
| 58 // A non-nullable union is set to null. (Has size 0) | 58 // A non-nullable union is set to null. (Has size 0) |
| 59 #define MOJOM_VALIDATION_UNEXPECTED_NULL_UNION ((MojomValidationResult)13) | 59 #define MOJOM_VALIDATION_UNEXPECTED_NULL_UNION ((MojomValidationResult)13) |
| 60 | 60 |
| 61 MOJO_END_EXTERN_C | 61 MOJO_END_EXTERN_C |
| 62 | 62 |
| 63 #endif // MOJO_PUBLIC_C_BINDINGS_VALIDATION_H_ | 63 #endif // MOJO_PUBLIC_C_INCLUDE_MOJO_BINDINGS_VALIDATION_H_ |
| OLD | NEW |