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