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 2684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2695 if (!fill${interfaceBase}Init(eventInit, options)) | 2695 if (!fill${interfaceBase}Init(eventInit, options)) |
2696 return false; | 2696 return false; |
2697 | 2697 |
2698 END | 2698 END |
2699 } | 2699 } |
2700 | 2700 |
2701 foreach my $attribute (@{$interface->attributes}) { | 2701 foreach my $attribute (@{$interface->attributes}) { |
2702 if ($attribute->extendedAttributes->{"InitializedByEventConstructor"}) { | 2702 if ($attribute->extendedAttributes->{"InitializedByEventConstructor"}) { |
2703 if ($attribute->type ne "any") { | 2703 if ($attribute->type ne "any") { |
2704 my $attributeName = $attribute->name; | 2704 my $attributeName = $attribute->name; |
2705 $code .= " options.get(\"$attributeName\", eventInit.$attribu
teName);\n"; | 2705 my $attributeImplName = GetImplName($attribute); |
| 2706 my $deprecation = $attribute->extendedAttributes->{"DeprecateAs"
}; |
| 2707 my $dictionaryGetter = "options.get(\"$attributeName\", eventIni
t.$attributeImplName)"; |
| 2708 if ($attribute->extendedAttributes->{"DeprecateAs"}) { |
| 2709 $code .= " if ($dictionaryGetter)\n"; |
| 2710 $code .= " " . GenerateDeprecationNotification($attribute
->extendedAttributes->{"DeprecateAs"}); |
| 2711 } else { |
| 2712 $code .= " $dictionaryGetter;\n"; |
| 2713 } |
2706 } | 2714 } |
2707 } | 2715 } |
2708 } | 2716 } |
2709 | 2717 |
2710 $code .= <<END; | 2718 $code .= <<END; |
2711 return true; | 2719 return true; |
2712 } | 2720 } |
2713 | 2721 |
2714 END | 2722 END |
2715 $implementation{nameSpaceWebCore}->add($code); | 2723 $implementation{nameSpaceWebCore}->add($code); |
(...skipping 3292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6008 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { | 6016 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { |
6009 $found = 1; | 6017 $found = 1; |
6010 } | 6018 } |
6011 return 1 if $found; | 6019 return 1 if $found; |
6012 }, 0); | 6020 }, 0); |
6013 | 6021 |
6014 return $found; | 6022 return $found; |
6015 } | 6023 } |
6016 | 6024 |
6017 1; | 6025 1; |
OLD | NEW |