| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 const gin::GinEmbedder ginEmbedder; | 175 const gin::GinEmbedder ginEmbedder; |
| 176 | 176 |
| 177 DomTemplateFunction domTemplateFunction; | 177 DomTemplateFunction domTemplateFunction; |
| 178 const RefObjectFunction refObjectFunction; | 178 const RefObjectFunction refObjectFunction; |
| 179 const DerefObjectFunction derefObjectFunction; | 179 const DerefObjectFunction derefObjectFunction; |
| 180 const TraceFunction traceFunction; | 180 const TraceFunction traceFunction; |
| 181 const ToActiveDOMObjectFunction toActiveDOMObjectFunction; | 181 const ToActiveDOMObjectFunction toActiveDOMObjectFunction; |
| 182 const ResolveWrapperReachabilityFunction visitDOMWrapperFunction; | 182 const ResolveWrapperReachabilityFunction visitDOMWrapperFunction; |
| 183 InstallConditionallyEnabledMethodsFunction installConditionallyEnabledMethod
sFunction; | 183 InstallConditionallyEnabledMethodsFunction installConditionallyEnabledMethod
sFunction; |
| 184 const InstallConditionallyEnabledPropertiesFunction installConditionallyEnab
ledPropertiesFunction; | 184 const InstallConditionallyEnabledPropertiesFunction installConditionallyEnab
ledPropertiesFunction; |
| 185 const char* const interfaceName; |
| 185 const WrapperTypeInfo* parentClass; | 186 const WrapperTypeInfo* parentClass; |
| 186 const unsigned wrapperTypePrototype : 1; // WrapperTypePrototype | 187 const unsigned wrapperTypePrototype : 1; // WrapperTypePrototype |
| 187 const unsigned wrapperClassId : 2; // WrapperClassId | 188 const unsigned wrapperClassId : 2; // WrapperClassId |
| 188 const unsigned eventTargetInheritance : 1; // EventTargetInheritance | 189 const unsigned eventTargetInheritance : 1; // EventTargetInheritance |
| 189 const unsigned lifetime : 1; // Lifetime | 190 const unsigned lifetime : 1; // Lifetime |
| 190 const unsigned gcType : 2; // GCType | 191 const unsigned gcType : 2; // GCType |
| 191 }; | 192 }; |
| 192 | 193 |
| 193 static_assert(offsetof(struct WrapperTypeInfo, ginEmbedder) == offsetof(struct g
in::WrapperInfo, embedder), "offset of WrapperTypeInfo.ginEmbedder must be the s
ame as gin::WrapperInfo.embedder"); | 194 static_assert(offsetof(struct WrapperTypeInfo, ginEmbedder) == offsetof(struct g
in::WrapperInfo, embedder), "offset of WrapperTypeInfo.ginEmbedder must be the s
ame as gin::WrapperInfo.embedder"); |
| 194 | 195 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 } | 228 } |
| 228 | 229 |
| 229 inline void releaseObject(v8::Handle<v8::Object> wrapper) | 230 inline void releaseObject(v8::Handle<v8::Object> wrapper) |
| 230 { | 231 { |
| 231 toWrapperTypeInfo(wrapper)->derefObject(toScriptWrappable(wrapper)); | 232 toWrapperTypeInfo(wrapper)->derefObject(toScriptWrappable(wrapper)); |
| 232 } | 233 } |
| 233 | 234 |
| 234 } // namespace blink | 235 } // namespace blink |
| 235 | 236 |
| 236 #endif // WrapperTypeInfo_h | 237 #endif // WrapperTypeInfo_h |
| OLD | NEW |