| 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 3680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3691 my $interface = shift; | 3691 my $interface = shift; |
| 3692 my $v8InterfaceName = shift; | 3692 my $v8InterfaceName = shift; |
| 3693 my $nativeType = shift; | 3693 my $nativeType = shift; |
| 3694 my $interfaceName = $interface->name; | 3694 my $interfaceName = $interface->name; |
| 3695 | 3695 |
| 3696 if ($interface->extendedAttributes->{"NoWrapperCache"} || $interface->extend
edAttributes->{"SuppressToJSObject"}) { | 3696 if ($interface->extendedAttributes->{"NoWrapperCache"} || $interface->extend
edAttributes->{"SuppressToJSObject"}) { |
| 3697 return; | 3697 return; |
| 3698 } | 3698 } |
| 3699 | 3699 |
| 3700 AddToImplIncludes("Frame.h"); | 3700 AddToImplIncludes("Frame.h"); |
| 3701 AddToImplIncludes("ScriptController.h"); |
| 3701 | 3702 |
| 3702 my $createWrapperArgumentType = GetPassRefPtrType($nativeType); | 3703 my $createWrapperArgumentType = GetPassRefPtrType($nativeType); |
| 3703 my $baseType = BaseInterfaceName($interface); | 3704 my $baseType = BaseInterfaceName($interface); |
| 3704 | 3705 |
| 3705 push(@implContent, <<END); | 3706 push(@implContent, <<END); |
| 3706 | 3707 |
| 3707 v8::Handle<v8::Object> ${v8InterfaceName}::createWrapper(${createWrapperArgument
Type} impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 3708 v8::Handle<v8::Object> ${v8InterfaceName}::createWrapper(${createWrapperArgument
Type} impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 3708 { | 3709 { |
| 3709 ASSERT(impl.get()); | 3710 ASSERT(impl.get()); |
| 3710 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); | 3711 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4596 | 4597 |
| 4597 sub GetPassRefPtrType | 4598 sub GetPassRefPtrType |
| 4598 { | 4599 { |
| 4599 my $v8InterfaceName = shift; | 4600 my $v8InterfaceName = shift; |
| 4600 | 4601 |
| 4601 my $angleBracketSpace = $v8InterfaceName =~ />$/ ? " " : ""; | 4602 my $angleBracketSpace = $v8InterfaceName =~ />$/ ? " " : ""; |
| 4602 return "PassRefPtr<${v8InterfaceName}${angleBracketSpace}>"; | 4603 return "PassRefPtr<${v8InterfaceName}${angleBracketSpace}>"; |
| 4603 } | 4604 } |
| 4604 | 4605 |
| 4605 1; | 4606 1; |
| OLD | NEW |