• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_NATIVE_ENUM_DATA_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_NATIVE_ENUM_DATA_H_
7 
8 namespace mojo {
9 namespace internal {
10 
11 class ValidationContext;
12 
13 class NativeEnum_Data {
14  public:
15   static bool const kIsExtensible = true;
16 
IsKnownValue(int32_t value)17   static bool IsKnownValue(int32_t value) { return false; }
18 
Validate(int32_t value,ValidationContext * validation_context)19   static bool Validate(int32_t value,
20                        ValidationContext* validation_context) { return true; }
21 };
22 
23 }  // namespace internal
24 }  // namespace mojo
25 
26 #endif  // MOJO_PUBLIC_CPP_BINDINGS_LIB_NATIVE_ENUM_DATA_H_
27