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 1829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1840 $code .= " *imp = $expression;\n"; | 1840 $code .= " *imp = $expression;\n"; |
1841 } else { | 1841 } else { |
1842 if ($attribute->signature->type eq "EventListener") { | 1842 if ($attribute->signature->type eq "EventListener") { |
1843 my $implSetterFunctionName = FirstLetterToUpperCase($attrName); | 1843 my $implSetterFunctionName = FirstLetterToUpperCase($attrName); |
1844 AddToImplIncludes("bindings/v8/V8AbstractEventListener.h"); | 1844 AddToImplIncludes("bindings/v8/V8AbstractEventListener.h"); |
1845 if (!InheritsInterface($interface, "Node")) { | 1845 if (!InheritsInterface($interface, "Node")) { |
1846 my $attrImplName = GetImplName($attribute->signature); | 1846 my $attrImplName = GetImplName($attribute->signature); |
1847 $code .= " transferHiddenDependency(info.Holder(), imp->${att rImplName}(), value, ${v8ClassName}::eventListenerCacheIndex, info.GetIsolate()) ;\n"; | 1847 $code .= " transferHiddenDependency(info.Holder(), imp->${att rImplName}(), value, ${v8ClassName}::eventListenerCacheIndex, info.GetIsolate()) ;\n"; |
1848 } | 1848 } |
1849 AddToImplIncludes("bindings/v8/V8EventListenerList.h"); | 1849 AddToImplIncludes("bindings/v8/V8EventListenerList.h"); |
1850 if ($interfaceName eq "WorkerContext" and $attribute->signature->nam e eq "onerror") { | 1850 if (($interfaceName eq "DOMWindow" or $interfaceName eq "WorkerConte xt") and $attribute->signature->name eq "onerror") { |
haraken
2013/05/20 02:53:09
Another thing I don't understand is why we treat o
| |
1851 AddToImplIncludes("bindings/v8/V8WorkerContextErrorHandler.h"); | 1851 AddToImplIncludes("bindings/v8/V8DOMWindowOrWorkerContextErrorHa ndler.h"); |
1852 $code .= " imp->set$implSetterFunctionName(V8EventListenerLis t::findOrCreateWrapper<V8WorkerContextErrorHandler>(value, true)"; | 1852 $code .= " imp->set$implSetterFunctionName(V8EventListenerLis t::findOrCreateWrapper<V8DOMWindowOrWorkerContextErrorHandler>(value, true)"; |
1853 } elsif ($interfaceName eq "DOMWindow" and $attribute->signature->na me eq "onerror") { | |
1854 AddToImplIncludes("bindings/v8/V8WindowErrorHandler.h"); | |
1855 $code .= " imp->set$implSetterFunctionName(V8EventListenerLis t::findOrCreateWrapper<V8WindowErrorHandler>(value, true)"; | |
1856 } else { | 1853 } else { |
1857 $code .= " imp->set$implSetterFunctionName(V8EventListenerLis t::getEventListener(value, true, ListenerFindOrCreate)"; | 1854 $code .= " imp->set$implSetterFunctionName(V8EventListenerLis t::getEventListener(value, true, ListenerFindOrCreate)"; |
1858 } | 1855 } |
1859 $code .= ", ec" if $useExceptions; | 1856 $code .= ", ec" if $useExceptions; |
1860 $code .= ");\n"; | 1857 $code .= ");\n"; |
1861 } else { | 1858 } else { |
1862 my ($functionName, @arguments) = SetterExpression($interfaceName, $a ttribute); | 1859 my ($functionName, @arguments) = SetterExpression($interfaceName, $a ttribute); |
1863 push(@arguments, $expression); | 1860 push(@arguments, $expression); |
1864 push(@arguments, "ec") if $useExceptions; | 1861 push(@arguments, "ec") if $useExceptions; |
1865 if ($attribute->signature->extendedAttributes->{"ImplementedBy"}) { | 1862 if ($attribute->signature->extendedAttributes->{"ImplementedBy"}) { |
(...skipping 3525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5391 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { | 5388 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { |
5392 $found = 1; | 5389 $found = 1; |
5393 } | 5390 } |
5394 return 1 if $found; | 5391 return 1 if $found; |
5395 }, 0); | 5392 }, 0); |
5396 | 5393 |
5397 return $found; | 5394 return $found; |
5398 } | 5395 } |
5399 | 5396 |
5400 1; | 5397 1; |
OLD | NEW |