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 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1879 $code .= " *imp = $expression;\n"; | 1879 $code .= " *imp = $expression;\n"; |
1880 } else { | 1880 } else { |
1881 if ($attribute->type eq "EventListener") { | 1881 if ($attribute->type eq "EventListener") { |
1882 my $implSetterFunctionName = FirstLetterToUpperCase($attrName); | 1882 my $implSetterFunctionName = FirstLetterToUpperCase($attrName); |
1883 AddToImplIncludes("bindings/v8/V8AbstractEventListener.h"); | 1883 AddToImplIncludes("bindings/v8/V8AbstractEventListener.h"); |
1884 if (!InheritsInterface($interface, "Node")) { | 1884 if (!InheritsInterface($interface, "Node")) { |
1885 my $attrImplName = GetImplName($attribute); | 1885 my $attrImplName = GetImplName($attribute); |
1886 $code .= " transferHiddenDependency(info.Holder(), imp->${att
rImplName}(isolatedWorldForIsolate(info.GetIsolate())), value, ${v8ClassName}::e
ventListenerCacheIndex, info.GetIsolate());\n"; | 1886 $code .= " transferHiddenDependency(info.Holder(), imp->${att
rImplName}(isolatedWorldForIsolate(info.GetIsolate())), value, ${v8ClassName}::e
ventListenerCacheIndex, info.GetIsolate());\n"; |
1887 } | 1887 } |
1888 AddToImplIncludes("bindings/v8/V8EventListenerList.h"); | 1888 AddToImplIncludes("bindings/v8/V8EventListenerList.h"); |
1889 if (($interfaceName eq "Window" or $interfaceName eq "WorkerContext"
) and $attribute->name eq "onerror") { | 1889 if (($interfaceName eq "Window" or $interfaceName eq "WorkerGlobalSc
ope") and $attribute->name eq "onerror") { |
1890 AddToImplIncludes("bindings/v8/V8ErrorHandler.h"); | 1890 AddToImplIncludes("bindings/v8/V8ErrorHandler.h"); |
1891 $code .= " imp->set$implSetterFunctionName(V8EventListenerLis
t::findOrCreateWrapper<V8ErrorHandler>(value, true), isolatedWorldForIsolate(inf
o.GetIsolate()));\n"; | 1891 $code .= " imp->set$implSetterFunctionName(V8EventListenerLis
t::findOrCreateWrapper<V8ErrorHandler>(value, true), isolatedWorldForIsolate(inf
o.GetIsolate()));\n"; |
1892 } else { | 1892 } else { |
1893 $code .= " imp->set$implSetterFunctionName(V8EventListenerLis
t::getEventListener(value, true, ListenerFindOrCreate), isolatedWorldForIsolate(
info.GetIsolate()));\n"; | 1893 $code .= " imp->set$implSetterFunctionName(V8EventListenerLis
t::getEventListener(value, true, ListenerFindOrCreate), isolatedWorldForIsolate(
info.GetIsolate()));\n"; |
1894 } | 1894 } |
1895 } else { | 1895 } else { |
1896 my ($functionName, @arguments) = SetterExpression($interfaceName, $a
ttribute); | 1896 my ($functionName, @arguments) = SetterExpression($interfaceName, $a
ttribute); |
1897 push(@arguments, $expression); | 1897 push(@arguments, $expression); |
1898 push(@arguments, "ec") if $useExceptions; | 1898 push(@arguments, "ec") if $useExceptions; |
1899 if ($attribute->extendedAttributes->{"ImplementedBy"}) { | 1899 if ($attribute->extendedAttributes->{"ImplementedBy"}) { |
(...skipping 2417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4317 | 4317 |
4318 proto->SetInternalFieldCount(V8Window::internalFieldCount); | 4318 proto->SetInternalFieldCount(V8Window::internalFieldCount); |
4319 desc->SetHiddenPrototype(true); | 4319 desc->SetHiddenPrototype(true); |
4320 instance->SetInternalFieldCount(V8Window::internalFieldCount); | 4320 instance->SetInternalFieldCount(V8Window::internalFieldCount); |
4321 // Set access check callbacks, but turned off initially. | 4321 // Set access check callbacks, but turned off initially. |
4322 // When a context is detached from a frame, turn on the access check. | 4322 // When a context is detached from a frame, turn on the access check. |
4323 // Turning on checks also invalidates inline caches of the object. | 4323 // Turning on checks also invalidates inline caches of the object. |
4324 instance->SetAccessCheckCallbacks(V8Window::namedSecurityCheckCustom, V8Wind
ow::indexedSecurityCheckCustom, v8::External::New(&V8Window::info), false); | 4324 instance->SetAccessCheckCallbacks(V8Window::namedSecurityCheckCustom, V8Wind
ow::indexedSecurityCheckCustom, v8::External::New(&V8Window::info), false); |
4325 END | 4325 END |
4326 } | 4326 } |
4327 if ($interfaceName eq "HTMLDocument" or $interfaceName eq "DedicatedWorkerCo
ntext" or $interfaceName eq "SharedWorkerContext") { | 4327 if ($interfaceName eq "HTMLDocument" or $interfaceName eq "DedicatedWorkerGl
obalScope" or $interfaceName eq "SharedWorkerGlobalScope") { |
4328 $code .= <<END; | 4328 $code .= <<END; |
4329 desc->SetHiddenPrototype(true); | 4329 desc->SetHiddenPrototype(true); |
4330 END | 4330 END |
4331 } | 4331 } |
4332 | 4332 |
4333 $code .= <<END; | 4333 $code .= <<END; |
4334 | 4334 |
4335 // Custom toString template | 4335 // Custom toString template |
4336 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); | 4336 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); |
4337 return desc; | 4337 return desc; |
(...skipping 1698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6036 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { | 6036 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { |
6037 $found = 1; | 6037 $found = 1; |
6038 } | 6038 } |
6039 return 1 if $found; | 6039 return 1 if $found; |
6040 }, 0); | 6040 }, 0); |
6041 | 6041 |
6042 return $found; | 6042 return $found; |
6043 } | 6043 } |
6044 | 6044 |
6045 1; | 6045 1; |
OLD | NEW |