| 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 4371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4382 | 4382 |
| 4383 if ($interface->extendedAttributes->{"CheckSecurity"} && $interface->name ne
"Window") { | 4383 if ($interface->extendedAttributes->{"CheckSecurity"} && $interface->name ne
"Window") { |
| 4384 GenerateSecurityCheckFunctions($interface); | 4384 GenerateSecurityCheckFunctions($interface); |
| 4385 } | 4385 } |
| 4386 | 4386 |
| 4387 my @perContextEnabledFunctions; | 4387 my @perContextEnabledFunctions; |
| 4388 my @normalFunctions; | 4388 my @normalFunctions; |
| 4389 my $needsDomainSafeFunctionSetter = 0; | 4389 my $needsDomainSafeFunctionSetter = 0; |
| 4390 # Generate methods for functions. | 4390 # Generate methods for functions. |
| 4391 foreach my $function (@{$interface->functions}) { | 4391 foreach my $function (@{$interface->functions}) { |
| 4392 next if $function->name eq ""; | 4392 next if $function->name eq ""; # Skip anonymous special operations |
| 4393 my @worldSuffixes = (""); | 4393 my @worldSuffixes = (""); |
| 4394 if ($function->extendedAttributes->{"PerWorldBindings"}) { | 4394 if ($function->extendedAttributes->{"PerWorldBindings"}) { |
| 4395 push(@worldSuffixes, "ForMainWorld"); | 4395 push(@worldSuffixes, "ForMainWorld"); |
| 4396 } | 4396 } |
| 4397 foreach my $worldSuffix (@worldSuffixes) { | 4397 foreach my $worldSuffix (@worldSuffixes) { |
| 4398 GenerateFunction($function, $interface, $worldSuffix); | 4398 GenerateFunction($function, $interface, $worldSuffix); |
| 4399 if ($function->{overloadIndex} == @{$function->{overloads}}) { | 4399 if ($function->{overloadIndex} == @{$function->{overloads}}) { |
| 4400 if ($function->{overloadIndex} > 1) { | 4400 if ($function->{overloadIndex} > 1) { |
| 4401 GenerateOverloadedFunction($function, $interface, $worldSuff
ix); | 4401 GenerateOverloadedFunction($function, $interface, $worldSuff
ix); |
| 4402 } | 4402 } |
| (...skipping 1997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6400 if ($parameter->type eq "SerializedScriptValue") { | 6400 if ($parameter->type eq "SerializedScriptValue") { |
| 6401 return 1; | 6401 return 1; |
| 6402 } elsif (IsIntegerType($parameter->type)) { | 6402 } elsif (IsIntegerType($parameter->type)) { |
| 6403 return 1; | 6403 return 1; |
| 6404 } | 6404 } |
| 6405 } | 6405 } |
| 6406 return 0; | 6406 return 0; |
| 6407 } | 6407 } |
| 6408 | 6408 |
| 6409 1; | 6409 1; |
| OLD | NEW |