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

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

Issue 14301003: Rename FeatureObserver to UseCounter to make clear that all it stores are usage counts. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Now with 20% more awesome 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 | Annotate | Revision Log
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 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 return perContextData->constructorForType(WrapperTypeInfo::unwrap(data)); 904 return perContextData->constructorForType(WrapperTypeInfo::unwrap(data));
905 } 905 }
906 END 906 END
907 } 907 }
908 908
909 sub GenerateFeatureObservation 909 sub GenerateFeatureObservation
910 { 910 {
911 my $measureAs = shift; 911 my $measureAs = shift;
912 912
913 if ($measureAs) { 913 if ($measureAs) {
914 AddToImplIncludes("FeatureObserver.h"); 914 AddToImplIncludes("UseCounter.h");
915 return " FeatureObserver::observe(activeDOMWindow(BindingState::insta nce()), FeatureObserver::${measureAs});\n"; 915 return " UseCounter::observe(activeDOMWindow(BindingState::instance() ), UseCounter::${measureAs});\n";
916 } 916 }
917 917
918 return ""; 918 return "";
919 } 919 }
920 920
921 sub GenerateNormalAttrGetterCallback 921 sub GenerateNormalAttrGetterCallback
922 { 922 {
923 my $attribute = shift; 923 my $attribute = shift;
924 my $interface = shift; 924 my $interface = shift;
925 my $forMainWorldSuffix = shift; 925 my $forMainWorldSuffix = shift;
(...skipping 3670 matching lines...) Expand 10 before | Expand all | Expand 10 after
4596 4596
4597 sub GetPassRefPtrType 4597 sub GetPassRefPtrType
4598 { 4598 {
4599 my $v8InterfaceName = shift; 4599 my $v8InterfaceName = shift;
4600 4600
4601 my $angleBracketSpace = $v8InterfaceName =~ />$/ ? " " : ""; 4601 my $angleBracketSpace = $v8InterfaceName =~ />$/ ? " " : "";
4602 return "PassRefPtr<${v8InterfaceName}${angleBracketSpace}>"; 4602 return "PassRefPtr<${v8InterfaceName}${angleBracketSpace}>";
4603 } 4603 }
4604 4604
4605 1; 4605 1;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698