| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 #include "V8TestSpecialOperations.h" | 8 #include "V8TestSpecialOperations.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| 11 #include "bindings/core/v8/V8DOMConfiguration.h" | 11 #include "bindings/core/v8/V8DOMConfiguration.h" |
| 12 #include "bindings/core/v8/V8HiddenValue.h" | 12 #include "bindings/core/v8/V8HiddenValue.h" |
| 13 #include "bindings/core/v8/V8NodeList.h" | 13 #include "bindings/core/v8/V8NodeList.h" |
| 14 #include "bindings/core/v8/V8ObjectConstructor.h" | 14 #include "bindings/core/v8/V8ObjectConstructor.h" |
| 15 #include "bindings/tests/v8/V8Node.h" | 15 #include "bindings/tests/v8/V8Node.h" |
| 16 #include "core/dom/ContextFeatures.h" | 16 #include "core/dom/ContextFeatures.h" |
| 17 #include "core/dom/Document.h" | 17 #include "core/dom/Document.h" |
| 18 #include "core/dom/NameNodeList.h" | 18 #include "core/dom/NameNodeList.h" |
| 19 #include "core/dom/NodeList.h" | 19 #include "core/dom/NodeList.h" |
| 20 #include "core/dom/StaticNodeList.h" | 20 #include "core/dom/StaticNodeList.h" |
| 21 #include "core/html/LabelsNodeList.h" | 21 #include "core/html/LabelsNodeList.h" |
| 22 #include "platform/RuntimeEnabledFeatures.h" | 22 #include "platform/RuntimeEnabledFeatures.h" |
| 23 #include "platform/TraceEvent.h" | 23 #include "platform/TraceEvent.h" |
| 24 #include "wtf/GetPtr.h" | 24 #include "wtf/GetPtr.h" |
| 25 #include "wtf/RefPtr.h" | 25 #include "wtf/RefPtr.h" |
| 26 | 26 |
| 27 namespace WebCore { | 27 namespace blink { |
| 28 | 28 |
| 29 static void initializeScriptWrappableForInterface(TestSpecialOperations* object) | 29 static void initializeScriptWrappableForInterface(TestSpecialOperations* object) |
| 30 { | 30 { |
| 31 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) | 31 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) |
| 32 ScriptWrappable::fromObject(object)->setTypeInfo(&V8TestSpecialOperation
s::wrapperTypeInfo); | 32 ScriptWrappable::fromObject(object)->setTypeInfo(&V8TestSpecialOperation
s::wrapperTypeInfo); |
| 33 else | 33 else |
| 34 ASSERT_NOT_REACHED(); | 34 ASSERT_NOT_REACHED(); |
| 35 } | 35 } |
| 36 | 36 |
| 37 } // namespace WebCore | 37 } // namespace blink |
| 38 | 38 |
| 39 void webCoreInitializeScriptWrappableForInterface(WebCore::TestSpecialOperations
* object) | 39 void webCoreInitializeScriptWrappableForInterface(blink::TestSpecialOperations*
object) |
| 40 { | 40 { |
| 41 WebCore::initializeScriptWrappableForInterface(object); | 41 blink::initializeScriptWrappableForInterface(object); |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace WebCore { | 44 namespace blink { |
| 45 const WrapperTypeInfo V8TestSpecialOperations::wrapperTypeInfo = { gin::kEmbedde
rBlink, V8TestSpecialOperations::domTemplate, V8TestSpecialOperations::derefObje
ct, 0, 0, 0, V8TestSpecialOperations::installPerContextEnabledMethods, 0, Wrappe
rTypeObjectPrototype, RefCountedObject }; | 45 const WrapperTypeInfo V8TestSpecialOperations::wrapperTypeInfo = { gin::kEmbedde
rBlink, V8TestSpecialOperations::domTemplate, V8TestSpecialOperations::derefObje
ct, 0, 0, 0, V8TestSpecialOperations::installPerContextEnabledMethods, 0, Wrappe
rTypeObjectPrototype, RefCountedObject }; |
| 46 | 46 |
| 47 namespace TestSpecialOperationsV8Internal { | 47 namespace TestSpecialOperationsV8Internal { |
| 48 | 48 |
| 49 template <typename T> void V8_USE(T) { } | 49 template <typename T> void V8_USE(T) { } |
| 50 | 50 |
| 51 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 51 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 52 { | 52 { |
| 53 if (UNLIKELY(info.Length() < 1)) { | 53 if (UNLIKELY(info.Length() < 1)) { |
| 54 throwMinimumArityTypeErrorForMethod("namedItem", "TestSpecialOperations"
, 1, info.Length(), info.GetIsolate()); | 54 throwMinimumArityTypeErrorForMethod("namedItem", "TestSpecialOperations"
, 1, info.Length(), info.GetIsolate()); |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 { | 246 { |
| 247 fromInternalPointer(object)->deref(); | 247 fromInternalPointer(object)->deref(); |
| 248 } | 248 } |
| 249 | 249 |
| 250 template<> | 250 template<> |
| 251 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) | 251 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) |
| 252 { | 252 { |
| 253 return toV8(impl, creationContext, isolate); | 253 return toV8(impl, creationContext, isolate); |
| 254 } | 254 } |
| 255 | 255 |
| 256 } // namespace WebCore | 256 } // namespace blink |
| OLD | NEW |