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 // clang-format off | 7 // clang-format off |
8 #include "V8TestIntegerIndexedPrimaryGlobal.h" | 8 #include "V8TestIntegerIndexedPrimaryGlobal.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); | 99 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); |
100 if (!document) { | 100 if (!document) { |
101 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f
ailedToExecute("voidMethodDocument", "TestIntegerIndexedPrimaryGlobal", "paramet
er 1 is not of type 'Document'.")); | 101 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f
ailedToExecute("voidMethodDocument", "TestIntegerIndexedPrimaryGlobal", "paramet
er 1 is not of type 'Document'.")); |
102 | 102 |
103 return; | 103 return; |
104 } | 104 } |
105 | 105 |
106 impl->voidMethodDocument(document); | 106 impl->voidMethodDocument(document); |
107 } | 107 } |
108 | 108 |
109 static void voidMethodDocumentMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 109 void voidMethodDocumentMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
110 { | 110 { |
111 TestIntegerIndexedPrimaryGlobalV8Internal::voidMethodDocumentMethod(info); | 111 TestIntegerIndexedPrimaryGlobalV8Internal::voidMethodDocumentMethod(info); |
112 } | 112 } |
113 | 113 |
114 void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::PropertyCal
lbackInfo<v8::Value>& info) | 114 void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::PropertyCal
lbackInfo<v8::Value>& info) |
115 { | 115 { |
116 if (!name->IsString()) | 116 if (!name->IsString()) |
117 return; | 117 return; |
118 const AtomicString& propertyName = toCoreAtomicString(name.As<v8::String>())
; | 118 const AtomicString& propertyName = toCoreAtomicString(name.As<v8::String>())
; |
119 | 119 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 { | 230 { |
231 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 231 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
232 } | 232 } |
233 | 233 |
234 TestIntegerIndexedPrimaryGlobal* V8TestIntegerIndexedPrimaryGlobal::toImplWithTy
peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) | 234 TestIntegerIndexedPrimaryGlobal* V8TestIntegerIndexedPrimaryGlobal::toImplWithTy
peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) |
235 { | 235 { |
236 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; | 236 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; |
237 } | 237 } |
238 | 238 |
239 } // namespace blink | 239 } // namespace blink |
OLD | NEW |