| 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 20 matching lines...) Expand all Loading... |
| 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 "V8TestInterfacePython2.h" | 34 #include "V8TestInterfacePython2.h" |
| 35 | 35 |
| 36 #include "RuntimeEnabledFeatures.h" | 36 #include "RuntimeEnabledFeatures.h" |
| 37 #include "V8Interface1.h" | 37 #include "V8Interface1.h" |
| 38 #include "V8Interface2.h" | 38 #include "V8Interface2.h" |
| 39 #include "bindings/v8/ExceptionState.h" | 39 #include "bindings/v8/ExceptionState.h" |
| 40 #include "bindings/v8/V8DOMConfiguration.h" | 40 #include "bindings/v8/V8DOMConfiguration.h" |
| 41 #include "bindings/v8/V8GCController.h" |
| 41 #include "core/dom/ContextFeatures.h" | 42 #include "core/dom/ContextFeatures.h" |
| 42 #include "core/dom/Document.h" | 43 #include "core/dom/Document.h" |
| 44 #include "core/dom/Element.h" |
| 43 #include "platform/TraceEvent.h" | 45 #include "platform/TraceEvent.h" |
| 44 | 46 |
| 45 namespace WebCore { | 47 namespace WebCore { |
| 46 | 48 |
| 47 static void initializeScriptWrappableForInterface(TestInterfacePython2* object) | 49 static void initializeScriptWrappableForInterface(TestInterfacePython2* object) |
| 48 { | 50 { |
| 49 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) | 51 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) |
| 50 ScriptWrappable::setTypeInfoInObject(object, &V8TestInterfacePython2::wr
apperTypeInfo); | 52 ScriptWrappable::setTypeInfoInObject(object, &V8TestInterfacePython2::wr
apperTypeInfo); |
| 51 else | 53 else |
| 52 ASSERT_NOT_REACHED(); | 54 ASSERT_NOT_REACHED(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 65 | 67 |
| 66 namespace WebCore { | 68 namespace WebCore { |
| 67 const WrapperTypeInfo V8TestInterfacePython2::wrapperTypeInfo = { gin::kEmbedder
Blink, V8TestInterfacePython2::domTemplate, V8TestInterfacePython2::derefObject,
0, 0, V8TestInterfacePython2::visitDOMWrapper, V8TestInterfacePython2::installP
erContextEnabledMethods, 0, WrapperTypeObjectPrototype }; | 69 const WrapperTypeInfo V8TestInterfacePython2::wrapperTypeInfo = { gin::kEmbedder
Blink, V8TestInterfacePython2::domTemplate, V8TestInterfacePython2::derefObject,
0, 0, V8TestInterfacePython2::visitDOMWrapper, V8TestInterfacePython2::installP
erContextEnabledMethods, 0, WrapperTypeObjectPrototype }; |
| 68 | 70 |
| 69 namespace TestInterfacePython2V8Internal { | 71 namespace TestInterfacePython2V8Internal { |
| 70 | 72 |
| 71 template <typename T> void V8_USE(T) { } | 73 template <typename T> void V8_USE(T) { } |
| 72 | 74 |
| 73 } // namespace TestInterfacePython2V8Internal | 75 } // namespace TestInterfacePython2V8Internal |
| 74 | 76 |
| 77 void V8TestInterfacePython2::visitDOMWrapper(void* object, const v8::Persistent<
v8::Object>& wrapper, v8::Isolate* isolate) |
| 78 { |
| 79 TestInterfacePython2* impl = fromInternalPointer(object); |
| 80 if (Node* owner = impl->ownerNode()) { |
| 81 setObjectGroup(V8GCController::opaqueRootForGC(owner, isolate), wrapper,
isolate); |
| 82 return; |
| 83 } |
| 84 setObjectGroup(object, wrapper, isolate); |
| 85 } |
| 86 |
| 75 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfacePython2Template(
v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate, Wrapper
WorldType currentWorldType) | 87 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfacePython2Template(
v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate, Wrapper
WorldType currentWorldType) |
| 76 { | 88 { |
| 77 functionTemplate->ReadOnlyPrototype(); | 89 functionTemplate->ReadOnlyPrototype(); |
| 78 | 90 |
| 79 v8::Local<v8::Signature> defaultSignature; | 91 v8::Local<v8::Signature> defaultSignature; |
| 80 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestInterfacePython2", v8::Local<v8::FunctionTemplate>(), V8TestInterfaceP
ython2::internalFieldCount, | 92 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestInterfacePython2", v8::Local<v8::FunctionTemplate>(), V8TestInterfaceP
ython2::internalFieldCount, |
| 81 0, 0, | 93 0, 0, |
| 82 0, 0, | 94 0, 0, |
| 83 0, 0, | 95 0, 0, |
| 84 isolate, currentWorldType); | 96 isolate, currentWorldType); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 fromInternalPointer(object)->deref(); | 165 fromInternalPointer(object)->deref(); |
| 154 } | 166 } |
| 155 | 167 |
| 156 template<> | 168 template<> |
| 157 v8::Handle<v8::Value> toV8NoInline(TestInterfacePython2* impl, v8::Handle<v8::Ob
ject> creationContext, v8::Isolate* isolate) | 169 v8::Handle<v8::Value> toV8NoInline(TestInterfacePython2* impl, v8::Handle<v8::Ob
ject> creationContext, v8::Isolate* isolate) |
| 158 { | 170 { |
| 159 return toV8(impl, creationContext, isolate); | 171 return toV8(impl, creationContext, isolate); |
| 160 } | 172 } |
| 161 | 173 |
| 162 } // namespace WebCore | 174 } // namespace WebCore |
| OLD | NEW |