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 "V8TestInterfaceDocument.h" | 8 #include "V8TestInterfaceDocument.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 60 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
61 } | 61 } |
62 | 62 |
63 v8::Handle<v8::Object> V8TestInterfaceDocument::findInstanceInPrototypeChain(v8:
:Handle<v8::Value> v8Value, v8::Isolate* isolate) | 63 v8::Handle<v8::Object> V8TestInterfaceDocument::findInstanceInPrototypeChain(v8:
:Handle<v8::Value> v8Value, v8::Isolate* isolate) |
64 { | 64 { |
65 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 65 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
66 } | 66 } |
67 | 67 |
68 TestInterfaceDocument* V8TestInterfaceDocument::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Handle<v8::Value> value) | 68 TestInterfaceDocument* V8TestInterfaceDocument::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Handle<v8::Value> value) |
69 { | 69 { |
70 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle
<v8::Object>::Cast(value))->toImpl<TestInterfaceDocument>() : 0; | 70 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val
ue)) : 0; |
71 } | 71 } |
72 | 72 |
73 EventTarget* V8TestInterfaceDocument::toEventTarget(v8::Handle<v8::Object> objec
t) | 73 EventTarget* V8TestInterfaceDocument::toEventTarget(v8::Handle<v8::Object> objec
t) |
74 { | 74 { |
75 return toImpl(object); | 75 return toImpl(object); |
76 } | 76 } |
77 | 77 |
78 | 78 |
79 void V8TestInterfaceDocument::refObject(ScriptWrappableBase* internalPointer) | 79 void V8TestInterfaceDocument::refObject(ScriptWrappableBase* internalPointer) |
80 { | 80 { |
(...skipping 19 matching lines...) Expand all Loading... |
100 #endif | 100 #endif |
101 } | 101 } |
102 | 102 |
103 template<> | 103 template<> |
104 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) | 104 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) |
105 { | 105 { |
106 return toV8(impl, creationContext, isolate); | 106 return toV8(impl, creationContext, isolate); |
107 } | 107 } |
108 | 108 |
109 } // namespace blink | 109 } // namespace blink |
OLD | NEW |