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" |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 void webCoreInitializeScriptWrappableForInterface(blink::TestSpecialOperations*
object) | 36 void webCoreInitializeScriptWrappableForInterface(blink::TestSpecialOperations*
object) |
37 { | 37 { |
38 blink::initializeScriptWrappableForInterface(object); | 38 blink::initializeScriptWrappableForInterface(object); |
39 } | 39 } |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 const WrapperTypeInfo V8TestSpecialOperations::wrapperTypeInfo = { gin::kEmbedde
rBlink, V8TestSpecialOperations::domTemplate, V8TestSpecialOperations::refObject
, V8TestSpecialOperations::derefObject, V8TestSpecialOperations::createPersisten
tHandle, 0, 0, 0, V8TestSpecialOperations::installConditionallyEnabledMethods, V
8TestSpecialOperations::installConditionallyEnabledProperties, 0, WrapperTypeObj
ectPrototype, RefCountedObject }; | 43 const WrapperTypeInfo V8TestSpecialOperations::wrapperTypeInfo = { gin::kEmbedde
rBlink, V8TestSpecialOperations::domTemplate, V8TestSpecialOperations::refObject
, V8TestSpecialOperations::derefObject, V8TestSpecialOperations::createPersisten
tHandle, 0, 0, 0, V8TestSpecialOperations::installConditionallyEnabledMethods, V
8TestSpecialOperations::installConditionallyEnabledProperties, 0, WrapperTypeObj
ectPrototype, RefCountedObject }; |
44 | 44 |
| 45 // The definition of TestSpecialOperations's WrapperTypeInfo. If TestSpecialOper
ations inherits |
| 46 // from ScriptWrappable, you have to write DEFINE_WRAPPERTYPEINFO macro in the |
| 47 // class definition. Otherwise, you have to write NotScriptWrappable in the IDL |
| 48 // file as an extended attribute in order to let IDL compiler know that |
| 49 // TestSpecialOperations doesn't inherit from ScriptWrappable. Note that |
| 50 // NotScriptWrappable is inheritable. |
| 51 const WrapperTypeInfo& TestSpecialOperations::s_wrapperTypeInfo = V8TestSpecialO
perations::wrapperTypeInfo; |
| 52 |
45 namespace TestSpecialOperationsV8Internal { | 53 namespace TestSpecialOperationsV8Internal { |
46 | 54 |
47 template <typename T> void V8_USE(T) { } | 55 template <typename T> void V8_USE(T) { } |
48 | 56 |
49 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 57 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
50 { | 58 { |
51 if (UNLIKELY(info.Length() < 1)) { | 59 if (UNLIKELY(info.Length() < 1)) { |
52 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("n
amedItem", "TestSpecialOperations", 1, info.Length(), info.GetIsolate()), info.G
etIsolate()); | 60 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("n
amedItem", "TestSpecialOperations", 1, info.Length(), info.GetIsolate()), info.G
etIsolate()); |
53 return; | 61 return; |
54 } | 62 } |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 return 0; | 259 return 0; |
252 } | 260 } |
253 | 261 |
254 template<> | 262 template<> |
255 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) | 263 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) |
256 { | 264 { |
257 return toV8(impl, creationContext, isolate); | 265 return toV8(impl, creationContext, isolate); |
258 } | 266 } |
259 | 267 |
260 } // namespace blink | 268 } // namespace blink |
OLD | NEW |