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 #ifndef GIN_WRAPPER_INFO_H_ | 5 #ifndef GIN_PUBLIC_WRAPPER_INFO_H_ |
6 #define GIN_WRAPPER_INFO_H_ | 6 #define GIN_PUBLIC_WRAPPER_INFO_H_ |
7 | 7 |
8 #include "v8/include/v8.h" | 8 #include "v8/include/v8.h" |
9 | 9 |
10 namespace gin { | 10 namespace gin { |
11 | 11 |
12 enum InternalFields { | 12 enum InternalFields { |
13 kWrapperInfoIndex, | 13 kWrapperInfoIndex, |
14 kEncodedValueIndex, | 14 kEncodedValueIndex, |
15 kNumberOfInternalFields, | 15 kNumberOfInternalFields, |
16 }; | 16 }; |
17 | 17 |
18 struct WrapperInfo { | 18 struct WrapperInfo { |
19 static WrapperInfo* From(v8::Handle<v8::Object> object); | 19 static WrapperInfo* From(v8::Handle<v8::Object> object); |
20 // Currently we just use the address of this struct for identity. | 20 // Currently we just use the address of this struct for identity. |
21 }; | 21 }; |
22 | 22 |
23 } // namespace gin | 23 } // namespace gin |
24 | 24 |
25 #endif // GIN_WRAPPER_INFO_H_ | 25 #endif // GIN_PUBLIC_WRAPPER_INFO_H_ |
OLD | NEW |