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

Unified Diff: webkit/port/bindings/scripts/CodeGeneratorV8.pm

Issue 17246: Add V8 bindings for Worker (Part I). (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 11 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 | « webkit/port/DerivedSources.make ('k') | webkit/port/bindings/v8/Threading.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/port/bindings/scripts/CodeGeneratorV8.pm
===================================================================
--- webkit/port/bindings/scripts/CodeGeneratorV8.pm (revision 8350)
+++ webkit/port/bindings/scripts/CodeGeneratorV8.pm (working copy)
@@ -262,6 +262,8 @@
push(@headerContent, "\n#if ENABLE(SVG)\n");
} elsif (IsVideoClassName($className)) {
push(@headerContent, "\n#if ENABLE(VIDEO)\n");
+ } elsif (IsWorkerClassName($className)) {
+ push(@headerContent, "\n#if ENABLE(WORKERS)\n");
}
push(@headerContent, "\n#ifndef $className" . "_H");
@@ -310,6 +312,8 @@
push(@headerContent, "\n#endif // ENABLE(SVG)\n");
} elsif (IsVideoClassName($className)) {
push(@headerContent, "\n#endif // ENABLE(VIDEO)\n");
+ } elsif (IsWorkerClassName($className)) {
+ push(@headerContent, "\n#endif // ENABLE(WORKERS)\n");
}
}
@@ -1000,6 +1004,8 @@
push(@implFixedHeader, "#if ENABLE(SVG)\n\n");
} elsif (IsVideoClassName($className)) {
push(@implFixedHeader, "#if ENABLE(VIDEO)\n\n");
+ } elsif (IsWorkerClassName($className)) {
+ push(@implFixedHeader, "#if ENABLE(WORKERS)\n\n");
}
if ($className =~ /^V8SVGAnimated/) {
@@ -1323,6 +1329,8 @@
push(@implContent, "\n#endif // ENABLE(SVG)\n");
} elsif (IsVideoClassName($className)) {
push(@implContent, "\n#endif // ENABLE(VIDEO)\n");
+ } elsif (IsWorkerClassName($className)) {
+ push(@implContent, "\n#endif // ENABLE(WORKERS)\n");
}
}
@@ -1595,6 +1603,15 @@
return 0;
}
+sub IsWorkerClassName
+{
+ my $class = shift;
+ return 1 if $class eq "V8Worker";
+ return 1 if $class eq "V8WorkerLocation";
+
+ return 0;
+}
+
sub GetNativeType
{
my $type = shift;
« no previous file with comments | « webkit/port/DerivedSources.make ('k') | webkit/port/bindings/v8/Threading.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698