Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: Source/bindings/scripts/CodeGeneratorV8.pm

Issue 15317004: Remove V8WorkerContextErrorHandler.cpp (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/bindings/bindings.gypi ('k') | Source/bindings/v8/V8ErrorHandler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 $code .= " *imp = $expression;\n"; 1883 $code .= " *imp = $expression;\n";
1884 } else { 1884 } else {
1885 if ($attribute->signature->type eq "EventListener") { 1885 if ($attribute->signature->type eq "EventListener") {
1886 my $implSetterFunctionName = FirstLetterToUpperCase($attrName); 1886 my $implSetterFunctionName = FirstLetterToUpperCase($attrName);
1887 AddToImplIncludes("bindings/v8/V8AbstractEventListener.h"); 1887 AddToImplIncludes("bindings/v8/V8AbstractEventListener.h");
1888 if (!InheritsInterface($interface, "Node")) { 1888 if (!InheritsInterface($interface, "Node")) {
1889 my $attrImplName = GetImplName($attribute->signature); 1889 my $attrImplName = GetImplName($attribute->signature);
1890 $code .= " transferHiddenDependency(info.Holder(), imp->${att rImplName}(), value, ${v8ClassName}::eventListenerCacheIndex, info.GetIsolate()) ;\n"; 1890 $code .= " transferHiddenDependency(info.Holder(), imp->${att rImplName}(), value, ${v8ClassName}::eventListenerCacheIndex, info.GetIsolate()) ;\n";
1891 } 1891 }
1892 AddToImplIncludes("bindings/v8/V8EventListenerList.h"); 1892 AddToImplIncludes("bindings/v8/V8EventListenerList.h");
1893 if ($interfaceName eq "WorkerContext" and $attribute->signature->nam e eq "onerror") { 1893 if (($interfaceName eq "DOMWindow" or $interfaceName eq "WorkerConte xt") and $attribute->signature->name eq "onerror") {
1894 AddToImplIncludes("bindings/v8/V8WorkerContextErrorHandler.h"); 1894 AddToImplIncludes("bindings/v8/V8ErrorHandler.h");
1895 $code .= " imp->set$implSetterFunctionName(V8EventListenerLis t::findOrCreateWrapper<V8WorkerContextErrorHandler>(value, true)"; 1895 $code .= " imp->set$implSetterFunctionName(V8EventListenerLis t::findOrCreateWrapper<V8ErrorHandler>(value, true)";
1896 } elsif ($interfaceName eq "DOMWindow" and $attribute->signature->na me eq "onerror") {
1897 AddToImplIncludes("bindings/v8/V8WindowErrorHandler.h");
1898 $code .= " imp->set$implSetterFunctionName(V8EventListenerLis t::findOrCreateWrapper<V8WindowErrorHandler>(value, true)";
1899 } else { 1896 } else {
1900 $code .= " imp->set$implSetterFunctionName(V8EventListenerLis t::getEventListener(value, true, ListenerFindOrCreate)"; 1897 $code .= " imp->set$implSetterFunctionName(V8EventListenerLis t::getEventListener(value, true, ListenerFindOrCreate)";
1901 } 1898 }
1902 $code .= ", ec" if $useExceptions; 1899 $code .= ", ec" if $useExceptions;
1903 $code .= ");\n"; 1900 $code .= ");\n";
1904 } else { 1901 } else {
1905 my ($functionName, @arguments) = SetterExpression($interfaceName, $a ttribute); 1902 my ($functionName, @arguments) = SetterExpression($interfaceName, $a ttribute);
1906 push(@arguments, $expression); 1903 push(@arguments, $expression);
1907 push(@arguments, "ec") if $useExceptions; 1904 push(@arguments, "ec") if $useExceptions;
1908 if ($attribute->signature->extendedAttributes->{"ImplementedBy"}) { 1905 if ($attribute->signature->extendedAttributes->{"ImplementedBy"}) {
(...skipping 3878 matching lines...) Expand 10 before | Expand all | Expand 10 after
5787 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { 5784 if ($currentInterface->extendedAttributes->{$extendedAttribute}) {
5788 $found = 1; 5785 $found = 1;
5789 } 5786 }
5790 return 1 if $found; 5787 return 1 if $found;
5791 }, 0); 5788 }, 0);
5792 5789
5793 return $found; 5790 return $found;
5794 } 5791 }
5795 5792
5796 1; 5793 1;
OLDNEW
« no previous file with comments | « Source/bindings/bindings.gypi ('k') | Source/bindings/v8/V8ErrorHandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698