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

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

Issue 14070021: Rename 'UseCounter::observe' to 'UseCounter::count'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline. 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
« no previous file with comments | « no previous file | Source/bindings/tests/results/V8TestObj.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 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 } 951 }
952 END 952 END
953 } 953 }
954 954
955 sub GenerateFeatureObservation 955 sub GenerateFeatureObservation
956 { 956 {
957 my $measureAs = shift; 957 my $measureAs = shift;
958 958
959 if ($measureAs) { 959 if ($measureAs) {
960 AddToImplIncludes("core/page/UseCounter.h"); 960 AddToImplIncludes("core/page/UseCounter.h");
961 return " UseCounter::observe(activeDOMWindow(BindingState::instance() ), UseCounter::${measureAs});\n"; 961 return " UseCounter::count(activeDOMWindow(BindingState::instance()), UseCounter::${measureAs});\n";
962 } 962 }
963 963
964 return ""; 964 return "";
965 } 965 }
966 966
967 sub GenerateDeprecationNotification 967 sub GenerateDeprecationNotification
968 { 968 {
969 my $deprecateAs = shift; 969 my $deprecateAs = shift;
970 if ($deprecateAs) { 970 if ($deprecateAs) {
971 AddToImplIncludes("PageConsole.h"); 971 AddToImplIncludes("PageConsole.h");
972 return " UseCounter::measureDeprecatedFeature(activeDOMWindow(Binding State::instance()), UseCounter::${deprecateAs});\n"; 972 return " UseCounter::countDeprecation(activeDOMWindow(BindingState::i nstance()), UseCounter::${deprecateAs});\n";
973 } 973 }
974 return ""; 974 return "";
975 } 975 }
976 976
977 sub GenerateActivityLogging 977 sub GenerateActivityLogging
978 { 978 {
979 my $accessType = shift; 979 my $accessType = shift;
980 my $interface = shift; 980 my $interface = shift;
981 my $propertyName = shift; 981 my $propertyName = shift;
982 982
(...skipping 3899 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/tests/results/V8TestObj.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698