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 "V8TestInterfaceNotScriptWrappable.h" | 8 #include "V8TestInterfaceNotScriptWrappable.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 static void attr1AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 50 static void attr1AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
51 { | 51 { |
52 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 52 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
53 TestInterfaceNotScriptWrappableV8Internal::attr1AttributeSetter(v8Value, inf
o); | 53 TestInterfaceNotScriptWrappableV8Internal::attr1AttributeSetter(v8Value, inf
o); |
54 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 54 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
55 } | 55 } |
56 | 56 |
57 static void funcMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 57 static void funcMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
58 { | 58 { |
59 if (UNLIKELY(info.Length() < 1)) { | 59 if (UNLIKELY(info.Length() < 1)) { |
60 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("f
unc", "TestInterfaceNotScriptWrappable", 1, info.Length(), info.GetIsolate()), i
nfo.GetIsolate()); | 60 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "func", "TestInterfaceNotScriptWrappable", 1, info.Length()), i
nfo.GetIsolate()); |
61 return; | 61 return; |
62 } | 62 } |
63 TestInterfaceNotScriptWrappable* impl = V8TestInterfaceNotScriptWrappable::t
oImpl(info.Holder()); | 63 TestInterfaceNotScriptWrappable* impl = V8TestInterfaceNotScriptWrappable::t
oImpl(info.Holder()); |
64 TestInterfaceNotScriptWrappable* arg; | 64 TestInterfaceNotScriptWrappable* arg; |
65 { | 65 { |
66 arg = V8TestInterfaceNotScriptWrappable::toImplWithTypeCheck(info.GetIso
late(), info[0]); | 66 arg = V8TestInterfaceNotScriptWrappable::toImplWithTypeCheck(info.GetIso
late(), info[0]); |
67 } | 67 } |
68 impl->func(arg); | 68 impl->func(arg); |
69 } | 69 } |
70 | 70 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 scriptWrappableBase->toImpl<TestInterfaceNotScriptWrappable>()->deref(); | 155 scriptWrappableBase->toImpl<TestInterfaceNotScriptWrappable>()->deref(); |
156 } | 156 } |
157 | 157 |
158 template<> | 158 template<> |
159 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNotScriptWrappable* impl, v8::Ha
ndle<v8::Object> creationContext, v8::Isolate* isolate) | 159 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNotScriptWrappable* impl, v8::Ha
ndle<v8::Object> creationContext, v8::Isolate* isolate) |
160 { | 160 { |
161 return toV8(impl, creationContext, isolate); | 161 return toV8(impl, creationContext, isolate); |
162 } | 162 } |
163 | 163 |
164 } // namespace blink | 164 } // namespace blink |
OLD | NEW |