| 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 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 if (InheritsExtendedAttribute($interface, "ActiveDOMObject")) { | 774 if (InheritsExtendedAttribute($interface, "ActiveDOMObject")) { |
| 775 $header{classPublic}->add(" static ActiveDOMObject* toActiveDOMObject
(v8::Handle<v8::Object>);\n"); | 775 $header{classPublic}->add(" static ActiveDOMObject* toActiveDOMObject
(v8::Handle<v8::Object>);\n"); |
| 776 } | 776 } |
| 777 | 777 |
| 778 if (InheritsInterface($interface, "EventTarget")) { | 778 if (InheritsInterface($interface, "EventTarget")) { |
| 779 $header{classPublic}->add(" static EventTarget* toEventTarget(v8::Han
dle<v8::Object>);\n"); | 779 $header{classPublic}->add(" static EventTarget* toEventTarget(v8::Han
dle<v8::Object>);\n"); |
| 780 } | 780 } |
| 781 | 781 |
| 782 if ($interfaceName eq "Window") { | 782 if ($interfaceName eq "Window") { |
| 783 $header{classPublic}->add(<<END); | 783 $header{classPublic}->add(<<END); |
| 784 static v8::Handle<v8::ObjectTemplate> GetShadowObjectTemplate(v8::Isolate*,
WrapperWorldType); | 784 static v8::Handle<v8::ObjectTemplate> getShadowObjectTemplate(v8::Isolate*,
WrapperWorldType); |
| 785 END | 785 END |
| 786 } | 786 } |
| 787 | 787 |
| 788 my @perContextEnabledFunctions; | 788 my @perContextEnabledFunctions; |
| 789 foreach my $function (@{$interface->functions}) { | 789 foreach my $function (@{$interface->functions}) { |
| 790 my $name = $function->name; | 790 my $name = $function->name; |
| 791 next if $name eq ""; | 791 next if $name eq ""; |
| 792 my $attrExt = $function->extendedAttributes; | 792 my $attrExt = $function->extendedAttributes; |
| 793 | 793 |
| 794 if (HasCustomMethod($attrExt) && $function->{overloadIndex} == 1) { | 794 if (HasCustomMethod($attrExt) && $function->{overloadIndex} == 1) { |
| (...skipping 4040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4835 EventTarget* ${v8ClassName}::toEventTarget(v8::Handle<v8::Object> object) | 4835 EventTarget* ${v8ClassName}::toEventTarget(v8::Handle<v8::Object> object) |
| 4836 { | 4836 { |
| 4837 return toNative(object); | 4837 return toNative(object); |
| 4838 } | 4838 } |
| 4839 | 4839 |
| 4840 END | 4840 END |
| 4841 } | 4841 } |
| 4842 | 4842 |
| 4843 if ($interfaceName eq "Window") { | 4843 if ($interfaceName eq "Window") { |
| 4844 $implementation{nameSpaceWebCore}->add(<<END); | 4844 $implementation{nameSpaceWebCore}->add(<<END); |
| 4845 v8::Handle<v8::ObjectTemplate> V8Window::GetShadowObjectTemplate(v8::Isolate* is
olate, WrapperWorldType currentWorldType) | 4845 v8::Handle<v8::ObjectTemplate> V8Window::getShadowObjectTemplate(v8::Isolate* is
olate, WrapperWorldType currentWorldType) |
| 4846 { | 4846 { |
| 4847 if (currentWorldType == MainWorld) { | 4847 if (currentWorldType == MainWorld) { |
| 4848 DEFINE_STATIC_LOCAL(v8::Persistent<v8::ObjectTemplate>, V8WindowShadowOb
jectCacheForMainWorld, ()); | 4848 DEFINE_STATIC_LOCAL(v8::Persistent<v8::ObjectTemplate>, V8WindowShadowOb
jectCacheForMainWorld, ()); |
| 4849 if (V8WindowShadowObjectCacheForMainWorld.IsEmpty()) { | 4849 if (V8WindowShadowObjectCacheForMainWorld.IsEmpty()) { |
| 4850 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | 4850 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); |
| 4851 v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(isola
te); | 4851 v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(isola
te); |
| 4852 configureShadowObjectTemplate(templ, isolate, currentWorldType); | 4852 configureShadowObjectTemplate(templ, isolate, currentWorldType); |
| 4853 V8WindowShadowObjectCacheForMainWorld.Reset(isolate, templ); | 4853 V8WindowShadowObjectCacheForMainWorld.Reset(isolate, templ); |
| 4854 return templ; | 4854 return templ; |
| 4855 } | 4855 } |
| (...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6427 if ($parameter->type eq "SerializedScriptValue") { | 6427 if ($parameter->type eq "SerializedScriptValue") { |
| 6428 return 1; | 6428 return 1; |
| 6429 } elsif (IsIntegerType($parameter->type)) { | 6429 } elsif (IsIntegerType($parameter->type)) { |
| 6430 return 1; | 6430 return 1; |
| 6431 } | 6431 } |
| 6432 } | 6432 } |
| 6433 return 0; | 6433 return 0; |
| 6434 } | 6434 } |
| 6435 | 6435 |
| 6436 1; | 6436 1; |
| OLD | NEW |