| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 static_cast<int>(gin::kEncodedValueIndex); | 54 static_cast<int>(gin::kEncodedValueIndex); |
| 55 static const int v8DefaultWrapperInternalFieldCount = | 55 static const int v8DefaultWrapperInternalFieldCount = |
| 56 static_cast<int>(gin::kNumberOfInternalFields); | 56 static_cast<int>(gin::kNumberOfInternalFields); |
| 57 static const int v8PrototypeTypeIndex = 0; | 57 static const int v8PrototypeTypeIndex = 0; |
| 58 static const int v8PrototypeInternalFieldcount = 1; | 58 static const int v8PrototypeInternalFieldcount = 1; |
| 59 | 59 |
| 60 typedef v8::Local<v8::FunctionTemplate> ( | 60 typedef v8::Local<v8::FunctionTemplate> ( |
| 61 *DomTemplateFunction)(v8::Isolate*, const DOMWrapperWorld&); | 61 *DomTemplateFunction)(v8::Isolate*, const DOMWrapperWorld&); |
| 62 typedef void (*TraceFunction)(Visitor*, ScriptWrappable*); | 62 typedef void (*TraceFunction)(Visitor*, ScriptWrappable*); |
| 63 typedef void (*TraceWrappersFunction)(WrapperVisitor*, ScriptWrappable*); | 63 typedef void (*TraceWrappersFunction)(WrapperVisitor*, ScriptWrappable*); |
| 64 typedef ActiveScriptWrappable* (*ToActiveScriptWrappableFunction)( | 64 typedef ActiveScriptWrappableBase* (*ToActiveScriptWrappableFunction)( |
| 65 v8::Local<v8::Object>); | 65 v8::Local<v8::Object>); |
| 66 typedef void (*ResolveWrapperReachabilityFunction)( | 66 typedef void (*ResolveWrapperReachabilityFunction)( |
| 67 v8::Isolate*, | 67 v8::Isolate*, |
| 68 ScriptWrappable*, | 68 ScriptWrappable*, |
| 69 const v8::Persistent<v8::Object>&); | 69 const v8::Persistent<v8::Object>&); |
| 70 typedef void (*PreparePrototypeAndInterfaceObjectFunction)( | 70 typedef void (*PreparePrototypeAndInterfaceObjectFunction)( |
| 71 v8::Local<v8::Context>, | 71 v8::Local<v8::Context>, |
| 72 const DOMWrapperWorld&, | 72 const DOMWrapperWorld&, |
| 73 v8::Local<v8::Object>, | 73 v8::Local<v8::Object>, |
| 74 v8::Local<v8::Function>, | 74 v8::Local<v8::Function>, |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 return getInternalField<WrapperTypeInfo, v8DOMWrapperTypeIndex>(wrapper); | 237 return getInternalField<WrapperTypeInfo, v8DOMWrapperTypeIndex>(wrapper); |
| 238 } | 238 } |
| 239 | 239 |
| 240 inline const WrapperTypeInfo* toWrapperTypeInfo(v8::Local<v8::Object> wrapper) { | 240 inline const WrapperTypeInfo* toWrapperTypeInfo(v8::Local<v8::Object> wrapper) { |
| 241 return getInternalField<WrapperTypeInfo, v8DOMWrapperTypeIndex>(wrapper); | 241 return getInternalField<WrapperTypeInfo, v8DOMWrapperTypeIndex>(wrapper); |
| 242 } | 242 } |
| 243 | 243 |
| 244 } // namespace blink | 244 } // namespace blink |
| 245 | 245 |
| 246 #endif // WrapperTypeInfo_h | 246 #endif // WrapperTypeInfo_h |
| OLD | NEW |