| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 bool V8TestInterfaceDocument::hasInstance(v8::Handle<v8::Value> v8Value, v8::Iso
late* isolate) | 58 bool V8TestInterfaceDocument::hasInstance(v8::Handle<v8::Value> v8Value, v8::Iso
late* isolate) |
| 59 { | 59 { |
| 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 |
| 68 TestInterfaceDocument* V8TestInterfaceDocument::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Handle<v8::Value> value) | 69 TestInterfaceDocument* V8TestInterfaceDocument::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Handle<v8::Value> value) |
| 69 { | 70 { |
| 70 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle
<v8::Object>::Cast(value))->toImpl<TestInterfaceDocument>() : 0; | 71 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val
ue)) : 0; |
| 71 } | 72 } |
| 72 | 73 |
| 73 EventTarget* V8TestInterfaceDocument::toEventTarget(v8::Handle<v8::Object> objec
t) | 74 EventTarget* V8TestInterfaceDocument::toEventTarget(v8::Handle<v8::Object> objec
t) |
| 74 { | 75 { |
| 75 return toImpl(object); | 76 return toImpl(object); |
| 76 } | 77 } |
| 77 | 78 |
| 78 | 79 |
| 79 void V8TestInterfaceDocument::refObject(ScriptWrappableBase* internalPointer) | 80 void V8TestInterfaceDocument::refObject(ScriptWrappableBase* internalPointer) |
| 80 { | 81 { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 100 #endif | 101 #endif |
| 101 } | 102 } |
| 102 | 103 |
| 103 template<> | 104 template<> |
| 104 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) | 105 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) |
| 105 { | 106 { |
| 106 return toV8(impl, creationContext, isolate); | 107 return toV8(impl, creationContext, isolate); |
| 107 } | 108 } |
| 108 | 109 |
| 109 } // namespace blink | 110 } // namespace blink |
| OLD | NEW |