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

Side by Side Diff: Source/bindings/scripts/code_generator_v8.pm

Issue 75933002: IDL compiler: rename object => wrapper in toActiveDOMObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/bindings/templates/interface.cpp » ('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 4653 matching lines...) Expand 10 before | Expand all | Expand 10 after
4664 4664
4665 $code .= <<END; 4665 $code .= <<END;
4666 } 4666 }
4667 4667
4668 END 4668 END
4669 $implementation{nameSpaceWebCore}->add($code); 4669 $implementation{nameSpaceWebCore}->add($code);
4670 } 4670 }
4671 4671
4672 if (InheritsExtendedAttribute($interface, "ActiveDOMObject")) { 4672 if (InheritsExtendedAttribute($interface, "ActiveDOMObject")) {
4673 $implementation{nameSpaceWebCore}->add(<<END); 4673 $implementation{nameSpaceWebCore}->add(<<END);
4674 ActiveDOMObject* ${v8ClassName}::toActiveDOMObject(v8::Handle<v8::Object> object ) 4674 ActiveDOMObject* ${v8ClassName}::toActiveDOMObject(v8::Handle<v8::Object> wrappe r)
4675 { 4675 {
4676 return toNative(object); 4676 return toNative(wrapper);
4677 } 4677 }
4678 4678
4679 END 4679 END
4680 } 4680 }
4681 4681
4682 if (InheritsInterface($interface, "EventTarget")) { 4682 if (InheritsInterface($interface, "EventTarget")) {
4683 $implementation{nameSpaceWebCore}->add(<<END); 4683 $implementation{nameSpaceWebCore}->add(<<END);
4684 EventTarget* ${v8ClassName}::toEventTarget(v8::Handle<v8::Object> object) 4684 EventTarget* ${v8ClassName}::toEventTarget(v8::Handle<v8::Object> object)
4685 { 4685 {
4686 return toNative(object); 4686 return toNative(object);
(...skipping 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after
6310 my $interface = shift; 6310 my $interface = shift;
6311 6311
6312 return 1 if $interface->extendedAttributes->{"CustomToV8"}; 6312 return 1 if $interface->extendedAttributes->{"CustomToV8"};
6313 return 1 if $interface->extendedAttributes->{"SpecialWrapFor"}; 6313 return 1 if $interface->extendedAttributes->{"SpecialWrapFor"};
6314 return 1 if InheritsInterface($interface, "Document"); 6314 return 1 if InheritsInterface($interface, "Document");
6315 6315
6316 return 0; 6316 return 0;
6317 } 6317 }
6318 6318
6319 1; 6319 1;
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698