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

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

Issue 14329023: Bindings generator should support Web IDL callback interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master 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/bindings/scripts/CodeGeneratorV8.pm ('k') | Source/bindings/tests/idls/TestCallback.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/IDLParser.pm
diff --git a/Source/bindings/scripts/IDLParser.pm b/Source/bindings/scripts/IDLParser.pm
index 3a2af0110a4617622a00026649b81730512db926..95bf8330c3a131e07d8ec8ae871f8db1a8f815dc 100644
--- a/Source/bindings/scripts/IDLParser.pm
+++ b/Source/bindings/scripts/IDLParser.pm
@@ -51,6 +51,7 @@ struct( domInterface => {
constructors => '@', # Constructors, list of 'domFunction'
customConstructors => '@', # Custom constructors, list of 'domFunction'
isException => '$', # Used for exception interfaces
+ isCallback => '$', # Used for callback interfaces
});
# Used to represent domInterface contents (name of method, signature)
@@ -470,7 +471,9 @@ sub parseCallbackRestOrInterface
my $next = $self->nextToken();
if ($next->value() eq "interface") {
- return $self->parseInterface($extendedAttributeList);
+ my $interface = $self->parseInterface($extendedAttributeList);
+ $interface->isCallback(1);
+ return $interface;
}
if ($next->type() == IdentifierToken) {
return $self->parseCallbackRest($extendedAttributeList);
« no previous file with comments | « Source/bindings/scripts/CodeGeneratorV8.pm ('k') | Source/bindings/tests/idls/TestCallback.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698