| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 // This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY! | 31 // This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY! |
| 32 | 32 |
| 33 #include "config.h" | 33 #include "config.h" |
| 34 #include "V8TestInterfacePython3.h" | 34 #include "V8TestInterfacePython3.h" |
| 35 | 35 |
| 36 #include "RuntimeEnabledFeatures.h" | 36 #include "RuntimeEnabledFeatures.h" |
| 37 #include "bindings/v8/ExceptionState.h" | 37 #include "bindings/v8/ExceptionState.h" |
| 38 #include "bindings/v8/V8DOMConfiguration.h" | 38 #include "bindings/v8/V8DOMConfiguration.h" |
| 39 #include "bindings/v8/V8GCController.h" |
| 39 #include "bindings/v8/V8ObjectConstructor.h" | 40 #include "bindings/v8/V8ObjectConstructor.h" |
| 40 #include "core/dom/ContextFeatures.h" | 41 #include "core/dom/ContextFeatures.h" |
| 41 #include "core/dom/Document.h" | 42 #include "core/dom/Document.h" |
| 43 #include "core/dom/Element.h" |
| 42 #include "platform/TraceEvent.h" | 44 #include "platform/TraceEvent.h" |
| 43 #include "wtf/GetPtr.h" | 45 #include "wtf/GetPtr.h" |
| 44 #include "wtf/RefPtr.h" | 46 #include "wtf/RefPtr.h" |
| 45 | 47 |
| 46 namespace WebCore { | 48 namespace WebCore { |
| 47 | 49 |
| 48 static void initializeScriptWrappableForInterface(TestInterfacePython3* object) | 50 static void initializeScriptWrappableForInterface(TestInterfacePython3* object) |
| 49 { | 51 { |
| 50 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) | 52 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) |
| 51 ScriptWrappable::setTypeInfoInObject(object, &V8TestInterfacePython3::wr
apperTypeInfo); | 53 ScriptWrappable::setTypeInfoInObject(object, &V8TestInterfacePython3::wr
apperTypeInfo); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 66 | 68 |
| 67 namespace WebCore { | 69 namespace WebCore { |
| 68 const WrapperTypeInfo V8TestInterfacePython3::wrapperTypeInfo = { gin::kEmbedder
Blink, V8TestInterfacePython3::domTemplate, V8TestInterfacePython3::derefObject,
0, 0, V8TestInterfacePython3::visitDOMWrapper, V8TestInterfacePython3::installP
erContextEnabledMethods, 0, WrapperTypeObjectPrototype, false }; | 70 const WrapperTypeInfo V8TestInterfacePython3::wrapperTypeInfo = { gin::kEmbedder
Blink, V8TestInterfacePython3::domTemplate, V8TestInterfacePython3::derefObject,
0, 0, V8TestInterfacePython3::visitDOMWrapper, V8TestInterfacePython3::installP
erContextEnabledMethods, 0, WrapperTypeObjectPrototype, false }; |
| 69 | 71 |
| 70 namespace TestInterfacePython3V8Internal { | 72 namespace TestInterfacePython3V8Internal { |
| 71 | 73 |
| 72 template <typename T> void V8_USE(T) { } | 74 template <typename T> void V8_USE(T) { } |
| 73 | 75 |
| 74 } // namespace TestInterfacePython3V8Internal | 76 } // namespace TestInterfacePython3V8Internal |
| 75 | 77 |
| 78 void V8TestInterfacePython3::visitDOMWrapper(void* object, const v8::Persistent<
v8::Object>& wrapper, v8::Isolate* isolate) |
| 79 { |
| 80 TestInterfacePython3* impl = fromInternalPointer(object); |
| 81 Node* root = V8GCController::opaqueRootForGC(&impl->document(), isolate); |
| 82 isolate->SetReferenceFromGroup(v8::UniqueId(reinterpret_cast<intptr_t>(root)
), wrapper); |
| 83 } |
| 84 |
| 76 static void configureV8TestInterfacePython3Template(v8::Handle<v8::FunctionTempl
ate> functionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType) | 85 static void configureV8TestInterfacePython3Template(v8::Handle<v8::FunctionTempl
ate> functionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType) |
| 77 { | 86 { |
| 78 functionTemplate->ReadOnlyPrototype(); | 87 functionTemplate->ReadOnlyPrototype(); |
| 79 | 88 |
| 80 v8::Local<v8::Signature> defaultSignature; | 89 v8::Local<v8::Signature> defaultSignature; |
| 81 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestInterfacePython3", v8::Local<v8::FunctionTemplate>(), V8TestInterfaceP
ython3::internalFieldCount, | 90 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestInterfacePython3", v8::Local<v8::FunctionTemplate>(), V8TestInterfaceP
ython3::internalFieldCount, |
| 82 0, 0, | 91 0, 0, |
| 83 0, 0, | 92 0, 0, |
| 84 0, 0, | 93 0, 0, |
| 85 isolate, currentWorldType); | 94 isolate, currentWorldType); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 fromInternalPointer(object)->deref(); | 150 fromInternalPointer(object)->deref(); |
| 142 } | 151 } |
| 143 | 152 |
| 144 template<> | 153 template<> |
| 145 v8::Handle<v8::Value> toV8NoInline(TestInterfacePython3* impl, v8::Handle<v8::Ob
ject> creationContext, v8::Isolate* isolate) | 154 v8::Handle<v8::Value> toV8NoInline(TestInterfacePython3* impl, v8::Handle<v8::Ob
ject> creationContext, v8::Isolate* isolate) |
| 146 { | 155 { |
| 147 return toV8(impl, creationContext, isolate); | 156 return toV8(impl, creationContext, isolate); |
| 148 } | 157 } |
| 149 | 158 |
| 150 } // namespace WebCore | 159 } // namespace WebCore |
| OLD | NEW |