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

Side by Side Diff: Source/bindings/scripts/CodeGeneratorV8.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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/bindings/scripts/IDLParser.pm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 bless($reference, $object); 73 bless($reference, $object);
74 return $reference; 74 return $reference;
75 } 75 }
76 76
77 sub GenerateInterface 77 sub GenerateInterface
78 { 78 {
79 my $object = shift; 79 my $object = shift;
80 my $interface = shift; 80 my $interface = shift;
81 81
82 # Start actual generation 82 # Start actual generation
83 if ($interface->extendedAttributes->{"Callback"}) { 83 if ($interface->isCallback) {
84 $object->GenerateCallbackHeader($interface); 84 $object->GenerateCallbackHeader($interface);
85 $object->GenerateCallbackImplementation($interface); 85 $object->GenerateCallbackImplementation($interface);
86 } else { 86 } else {
87 $object->GenerateHeader($interface); 87 $object->GenerateHeader($interface);
88 $object->GenerateImplementation($interface); 88 $object->GenerateImplementation($interface);
89 } 89 }
90 } 90 }
91 91
92 sub AddToImplIncludes 92 sub AddToImplIncludes
93 { 93 {
(...skipping 4788 matching lines...) Expand 10 before | Expand all | Expand 10 after
4882 4882
4883 sub GetPassRefPtrType 4883 sub GetPassRefPtrType
4884 { 4884 {
4885 my $v8InterfaceName = shift; 4885 my $v8InterfaceName = shift;
4886 4886
4887 my $angleBracketSpace = $v8InterfaceName =~ />$/ ? " " : ""; 4887 my $angleBracketSpace = $v8InterfaceName =~ />$/ ? " " : "";
4888 return "PassRefPtr<${v8InterfaceName}${angleBracketSpace}>"; 4888 return "PassRefPtr<${v8InterfaceName}${angleBracketSpace}>";
4889 } 4889 }
4890 4890
4891 1; 4891 1;
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/scripts/IDLParser.pm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698