Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Unified Diff: Source/bindings/scripts/CodeGeneratorV8.pm

Issue 14524003: Absolutify paths to bindings/v8, bindings/v8/custom/. Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebKit/chromium/tests/IDBTransactionTest.cpp ('k') | Source/bindings/tests/results/V8Float64Array.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/CodeGeneratorV8.pm
diff --git a/Source/bindings/scripts/CodeGeneratorV8.pm b/Source/bindings/scripts/CodeGeneratorV8.pm
index 26e01d483c90dc0dae1ba7e20f0c8248200959e4..7703ac5e6f3bbd3828233733ad9e67b112e4bdd5 100644
--- a/Source/bindings/scripts/CodeGeneratorV8.pm
+++ b/Source/bindings/scripts/CodeGeneratorV8.pm
@@ -221,7 +221,7 @@ END
GetGenerateIsReachable($interface) eq "ImplOwnerRoot" ||
GetGenerateIsReachable($interface) eq "ImplOwnerNodeRoot") {
- $implIncludes{"V8GCController.h"} = 1;
+ $implIncludes{"bindings/v8/V8GCController.h"} = 1;
my $methodName;
$methodName = "document" if (GetGenerateIsReachable($interface) eq "ImplDocument");
@@ -310,12 +310,12 @@ sub GenerateHeader
# - Add default header template
AddToHeader(GenerateHeaderContentHeader($interface));
- $headerIncludes{"wtf/text/StringHash.h"} = 1;
- $headerIncludes{"WrapperTypeInfo.h"} = 1;
- $headerIncludes{"V8Binding.h"} = 1;
- $headerIncludes{"V8DOMWrapper.h"} = 1;
- $headerIncludes{"wtf/HashMap.h"} = 1;
+ $headerIncludes{"bindings/v8/WrapperTypeInfo.h"} = 1;
+ $headerIncludes{"bindings/v8/V8Binding.h"} = 1;
+ $headerIncludes{"bindings/v8/V8DOMWrapper.h"} = 1;
$headerIncludes{"v8.h"} = 1;
+ $headerIncludes{"wtf/HashMap.h"} = 1;
+ $headerIncludes{"wtf/text/StringHash.h"} = 1;
my $headerClassInclude = GetHeaderClassInclude($interfaceName);
$headerIncludes{$headerClassInclude} = 1 if $headerClassInclude ne "";
@@ -991,8 +991,8 @@ sub GenerateActivityLogging
my $visibleInterfaceName = $codeGenerator->GetVisibleInterfaceName($interface);
- AddToImplIncludes("V8Binding.h");
- AddToImplIncludes("V8DOMActivityLogger.h");
+ AddToImplIncludes("bindings/v8/V8Binding.h");
+ AddToImplIncludes("bindings/v8/V8DOMActivityLogger.h");
AddToImplIncludes("wtf/Vector.h");
my $code = "";
@@ -1575,13 +1575,13 @@ END
} else {
if ($attribute->signature->type eq "EventListener") {
my $implSetterFunctionName = $codeGenerator->WK_ucfirst($attrName);
- AddToImplIncludes("V8AbstractEventListener.h");
+ AddToImplIncludes("bindings/v8/V8AbstractEventListener.h");
if (!$codeGenerator->InheritsInterface($interface, "Node")) {
$code .= " transferHiddenDependency(info.Holder(), imp->$attrName(), value, ${v8InterfaceName}::eventListenerCacheIndex, info.GetIsolate());\n";
}
- AddToImplIncludes("V8EventListenerList.h");
+ AddToImplIncludes("bindings/v8/V8EventListenerList.h");
if ($interfaceName eq "WorkerContext" and $attribute->signature->name eq "onerror") {
- AddToImplIncludes("V8WorkerContextErrorHandler.h");
+ AddToImplIncludes("bindings/v8/V8WorkerContextErrorHandler.h");
$code .= " imp->set$implSetterFunctionName(V8EventListenerList::findOrCreateWrapper<V8WorkerContextErrorHandler>(value, true)";
} elsif ($interfaceName eq "DOMWindow" and $attribute->signature->name eq "onerror") {
AddToImplIncludes("V8WindowErrorHandler.h");
@@ -1838,7 +1838,7 @@ sub GenerateFunction
my $passRefPtrHandling = ($name eq "addEventListener") ? "" : ".get()";
my $hiddenDependencyAction = ($name eq "addEventListener") ? "create" : "remove";
- AddToImplIncludes("V8EventListenerList.h");
+ AddToImplIncludes("bindings/v8/V8EventListenerList.h");
$code .= <<END;
RefPtr<EventListener> listener = V8EventListenerList::getEventListener(args[1], false, ListenerFind${lookupType});
if (listener) {
@@ -1864,7 +1864,7 @@ END
$code .= GenerateArgumentsCountCheck($function, $interface);
if ($name eq "set" and $interface->extendedAttributes->{"TypedArray"}) {
- AddToImplIncludes("V8ArrayBufferViewCustom.h");
+ AddToImplIncludes("bindings/v8/custom/V8ArrayBufferViewCustom.h");
$code .= <<END;
return setWebGLArrayHelper<$interfaceName, ${v8InterfaceName}>(args);
}
@@ -1972,8 +1972,8 @@ sub GenerateCallWith
if ($function and $codeGenerator->ExtendedAttributeContains($callWith, "ScriptArguments")) {
$code .= $indent . "RefPtr<ScriptArguments> scriptArguments(createScriptArguments(args, " . @{$function->parameters} . "));\n";
push(@callWithArgs, "scriptArguments.release()");
- AddToImplIncludes("ScriptArguments.h");
- AddToImplIncludes("ScriptCallStackFactory.h");
+ AddToImplIncludes("bindings/v8/ScriptCallStackFactory.h");
+ AddToImplIncludes("core/inspector/ScriptArguments.h");
}
return ([@callWithArgs], $code);
}
@@ -2077,7 +2077,7 @@ sub GenerateParametersCheck
$parameterCheckString .= " if (!std::isnan($nativeValue))\n";
$parameterCheckString .= " $parameterName = clampTo<$paramType>($nativeValue);\n";
} elsif ($parameter->type eq "SerializedScriptValue") {
- AddToImplIncludes("SerializedScriptValue.h");
+ AddToImplIncludes("bindings/v8/SerializedScriptValue.h");
my $useTransferList = 0;
my $transferListName = "";
my $TransferListName = "";
@@ -2380,7 +2380,7 @@ sub GenerateEventConstructor
my $interface = shift;
my $interfaceName = $interface->name;
- AddToImplIncludes("Dictionary.h");
+ AddToImplIncludes("bindings/v8/Dictionary.h");
AddToImplContentInternals(<<END);
static v8::Handle<v8::Value> constructor(const v8::Arguments& args)
{
@@ -2439,7 +2439,7 @@ sub GenerateTypedArrayConstructor
my $interfaceName = $interface->name;
my $viewType = GetTypeNameOfExternalTypedArray($interface);
my $type = $interface->extendedAttributes->{"TypedArray"};
- AddToImplIncludes("V8ArrayBufferViewCustom.h");
+ AddToImplIncludes("bindings/v8/custom/V8ArrayBufferViewCustom.h");
AddToImplContentInternals(<<END);
static v8::Handle<v8::Value> constructor(const v8::Arguments& args)
@@ -2865,7 +2865,7 @@ sub GenerateImplementationIndexedProperty
return "";
}
- AddToImplIncludes("V8Collection.h");
+ AddToImplIncludes("bindings/v8/V8Collection.h");
if (!$indexer) {
$indexer = $codeGenerator->FindSuperMethod($interface, "item");
@@ -2953,7 +2953,7 @@ sub GenerateImplementationNamedPropertyGetter
if ($interface->extendedAttributes->{"NamedGetter"}) {
die "$interfaceName: [NamedGetter] but no namedItem() method." if (!$namedPropertyGetter);
- AddToImplIncludes("V8Collection.h");
+ AddToImplIncludes("bindings/v8/V8Collection.h");
my $type = $namedPropertyGetter->type;
$subCode .= <<END;
desc->InstanceTemplate()->SetNamedPropertyHandler(${v8InterfaceName}::namedPropertyGetter, 0, 0, 0, 0);
@@ -3064,10 +3064,10 @@ sub GenerateImplementation
# - Add default header template
push(@implContentHeader, GenerateImplementationContentHeader($interface));
- AddToImplIncludes("BindingState.h");
+ AddToImplIncludes("bindings/v8/BindingState.h");
+ AddToImplIncludes("bindings/v8/V8Binding.h");
+ AddToImplIncludes("bindings/v8/V8DOMWrapper.h");
AddToImplIncludes("core/dom/ContextFeatures.h");
- AddToImplIncludes("V8Binding.h");
- AddToImplIncludes("V8DOMWrapper.h");
AddToImplIncludes("core/page/RuntimeEnabledFeatures.h");
AddIncludesForType($interfaceName);
@@ -3184,7 +3184,7 @@ END
}
if ($attrType eq "SerializedScriptValue") {
- AddToImplIncludes("SerializedScriptValue.h");
+ AddToImplIncludes("bindings/v8/SerializedScriptValue.h");
}
GenerateNormalAttrGetter($attribute, $interface, "");
@@ -3812,11 +3812,11 @@ sub GenerateCallbackHeader
AddToHeader(GenerateHeaderContentHeader($interface));
my @unsortedIncludes = ();
- push(@unsortedIncludes, "#include \"ActiveDOMCallback.h\"");
- push(@unsortedIncludes, "#include \"DOMWrapperWorld.h\"");
+ push(@unsortedIncludes, "#include \"bindings/v8/ActiveDOMCallback.h\"");
+ push(@unsortedIncludes, "#include \"bindings/v8/DOMWrapperWorld.h\"");
+ push(@unsortedIncludes, "#include \"bindings/v8/ScopedPersistent.h\"");
my $interfaceHeader = $codeGenerator->HeaderFileForInterface($interfaceName);
push(@unsortedIncludes, "#include \"$interfaceHeader\"");
- push(@unsortedIncludes, "#include \"ScopedPersistent.h\"");
push(@unsortedIncludes, "#include <v8.h>");
push(@unsortedIncludes, "#include <wtf/Forward.h>");
AddToHeader(join("\n", sort @unsortedIncludes));
@@ -3891,8 +3891,8 @@ sub GenerateCallbackImplementation
push(@implContentHeader, GenerateImplementationContentHeader($interface));
AddToImplIncludes("core/dom/ScriptExecutionContext.h");
- AddToImplIncludes("V8Binding.h");
- AddToImplIncludes("V8Callback.h");
+ AddToImplIncludes("bindings/v8/V8Binding.h");
+ AddToImplIncludes("bindings/v8/V8Callback.h");
AddToImplContent("#include <wtf/Assertions.h>\n\n");
AddToImplContent("namespace WebCore {\n\n");
@@ -4003,8 +4003,8 @@ sub GenerateToV8Converters
return;
}
+ AddToImplIncludes("bindings/v8/ScriptController.h");
AddToImplIncludes("core/page/Frame.h");
- AddToImplIncludes("ScriptController.h");
my $createWrapperArgumentType = GetPassRefPtrType($nativeType);
my $baseType = BaseInterfaceName($interface);
@@ -4476,17 +4476,17 @@ sub JSValueToNative
}
if ($type eq "SerializedScriptValue") {
- AddToImplIncludes("SerializedScriptValue.h");
+ AddToImplIncludes("bindings/v8/SerializedScriptValue.h");
return "SerializedScriptValue::create($value, $getIsolate)";
}
if ($type eq "Dictionary") {
- AddToImplIncludes("Dictionary.h");
+ AddToImplIncludes("bindings/v8/Dictionary.h");
return "Dictionary($value, $getIsolate)";
}
if ($type eq "any") {
- AddToImplIncludes("ScriptValue.h");
+ AddToImplIncludes("bindings/v8/ScriptValue.h");
return "ScriptValue($value)";
}
@@ -4530,8 +4530,8 @@ sub GetV8HeaderName
my $type = shift;
return "V8Event.h" if $type eq "DOMTimeStamp";
return "core/dom/EventListener.h" if $type eq "EventListener";
- return "SerializedScriptValue.h" if $type eq "SerializedScriptValue";
- return "ScriptValue.h" if $type eq "any";
+ return "bindings/v8/SerializedScriptValue.h" if $type eq "SerializedScriptValue";
+ return "bindings/v8/ScriptValue.h" if $type eq "any";
return "V8${type}.h";
}
@@ -4782,7 +4782,7 @@ sub NativeToJSValue
}
if ($type eq "EventListener") {
- AddToImplIncludes("V8AbstractEventListener.h");
+ AddToImplIncludes("bindings/v8/V8AbstractEventListener.h");
return "${value} ? v8::Handle<v8::Value>(static_cast<V8AbstractEventListener*>(${value})->getListenerObject(imp->scriptExecutionContext())) : v8::Handle<v8::Value>(v8Null($getIsolate))";
}
« no previous file with comments | « Source/WebKit/chromium/tests/IDBTransactionTest.cpp ('k') | Source/bindings/tests/results/V8Float64Array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698