OLD | NEW |
1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> | 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> |
3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> | 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> |
5 # Copyright (C) 2006 Apple Computer, Inc. | 5 # Copyright (C) 2006 Apple Computer, Inc. |
6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. | 6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. |
7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. | 8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. |
9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 # Copyright (C) 2012 Ericsson AB. All rights reserved. | 10 # Copyright (C) 2012 Ericsson AB. All rights reserved. |
(...skipping 4586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4597 if ($interfaceName eq "Window") { | 4597 if ($interfaceName eq "Window") { |
4598 $implementation{nameSpaceWebCore}->add(<<END); | 4598 $implementation{nameSpaceWebCore}->add(<<END); |
4599 static void configureShadowObjectTemplate(v8::Handle<v8::ObjectTemplate> templ,
v8::Isolate* isolate, WrapperWorldType currentWorldType) | 4599 static void configureShadowObjectTemplate(v8::Handle<v8::ObjectTemplate> templ,
v8::Isolate* isolate, WrapperWorldType currentWorldType) |
4600 { | 4600 { |
4601 V8DOMConfiguration::installAttributes(templ, v8::Handle<v8::ObjectTemplate>(
), shadowAttributes, WTF_ARRAY_LENGTH(shadowAttributes), isolate, currentWorldTy
pe); | 4601 V8DOMConfiguration::installAttributes(templ, v8::Handle<v8::ObjectTemplate>(
), shadowAttributes, WTF_ARRAY_LENGTH(shadowAttributes), isolate, currentWorldTy
pe); |
4602 | 4602 |
4603 // Install a security handler with V8. | 4603 // Install a security handler with V8. |
4604 templ->SetAccessCheckCallbacks(V8Window::namedSecurityCheckCustom, V8Window:
:indexedSecurityCheckCustom, v8::External::New(isolate, const_cast<WrapperTypeIn
fo*>(&V8Window::wrapperTypeInfo))); | 4604 templ->SetAccessCheckCallbacks(V8Window::namedSecurityCheckCustom, V8Window:
:indexedSecurityCheckCustom, v8::External::New(isolate, const_cast<WrapperTypeIn
fo*>(&V8Window::wrapperTypeInfo))); |
4605 templ->SetInternalFieldCount(V8Window::internalFieldCount); | 4605 templ->SetInternalFieldCount(V8Window::internalFieldCount); |
4606 } | 4606 } |
| 4607 |
4607 END | 4608 END |
4608 } | 4609 } |
4609 | 4610 |
4610 if (!$parentClassTemplate) { | 4611 if (!$parentClassTemplate) { |
4611 $parentClassTemplate = "v8::Local<v8::FunctionTemplate>()"; | 4612 $parentClassTemplate = "v8::Local<v8::FunctionTemplate>()"; |
4612 } | 4613 } |
4613 | 4614 |
4614 # Generate the template configuration method | 4615 # Generate the template configuration method |
4615 $code = <<END; | 4616 $code = <<END; |
4616 static void configure${v8ClassName}Template(v8::Handle<v8::FunctionTemplate> fun
ctionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType) | 4617 static void configure${v8ClassName}Template(v8::Handle<v8::FunctionTemplate> fun
ctionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType) |
(...skipping 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6467 if ($parameter->type eq "SerializedScriptValue") { | 6468 if ($parameter->type eq "SerializedScriptValue") { |
6468 return 1; | 6469 return 1; |
6469 } elsif (IsIntegerType($parameter->type)) { | 6470 } elsif (IsIntegerType($parameter->type)) { |
6470 return 1; | 6471 return 1; |
6471 } | 6472 } |
6472 } | 6473 } |
6473 return 0; | 6474 return 0; |
6474 } | 6475 } |
6475 | 6476 |
6476 1; | 6477 1; |
OLD | NEW |