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

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

Issue 14083009: Remove ENABLE_CUSTOM_ELEMENTS compile time flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removing flag from features.gypi 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
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 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 sub GenerateCustomElementInvocationScopeIfNeeded 1300 sub GenerateCustomElementInvocationScopeIfNeeded
1301 { 1301 {
1302 my $code = ""; 1302 my $code = "";
1303 my $ext = shift; 1303 my $ext = shift;
1304 1304
1305 if ($ext->{"DeliverCustomElementCallbacks"}) { 1305 if ($ext->{"DeliverCustomElementCallbacks"}) {
1306 if ($ext->{"Reflect"}) { 1306 if ($ext->{"Reflect"}) {
1307 die "IDL error: [Reflect] and [DeliverCustomElementCallbacks] cannot coexist yet"; 1307 die "IDL error: [Reflect] and [DeliverCustomElementCallbacks] cannot coexist yet";
1308 } 1308 }
1309 1309
1310 AddToImplIncludes("CustomElementRegistry.h", "CUSTOM_ELEMENTS"); 1310 AddToImplIncludes("CustomElementRegistry.h", "CUSTOM_ELEMENTS");
dglazkov 2013/04/19 16:55:25 This guy needs tweaking, too.
1311 $code .= <<END; 1311 $code .= <<END;
1312 #if ENABLE(CUSTOM_ELEMENTS)
1313 CustomElementRegistry::CallbackDeliveryScope deliveryScope; 1312 CustomElementRegistry::CallbackDeliveryScope deliveryScope;
1314 #endif 1313
1315 END 1314 END
1316 } 1315 }
1317 return $code; 1316 return $code;
1318 } 1317 }
1319 1318
1320 sub GenerateNormalAttrSetterCallback 1319 sub GenerateNormalAttrSetterCallback
1321 { 1320 {
1322 my $attribute = shift; 1321 my $attribute = shift;
1323 my $interface = shift; 1322 my $interface = shift;
1324 my $forMainWorldSuffix = shift; 1323 my $forMainWorldSuffix = shift;
(...skipping 3407 matching lines...) Expand 10 before | Expand all | Expand 10 after
4732 4731
4733 sub GetPassRefPtrType 4732 sub GetPassRefPtrType
4734 { 4733 {
4735 my $v8InterfaceName = shift; 4734 my $v8InterfaceName = shift;
4736 4735
4737 my $angleBracketSpace = $v8InterfaceName =~ />$/ ? " " : ""; 4736 my $angleBracketSpace = $v8InterfaceName =~ />$/ ? " " : "";
4738 return "PassRefPtr<${v8InterfaceName}${angleBracketSpace}>"; 4737 return "PassRefPtr<${v8InterfaceName}${angleBracketSpace}>";
4739 } 4738 }
4740 4739
4741 1; 4740 1;
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/WebRuntimeFeatures.cpp ('k') | Source/bindings/v8/CustomElementHelpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698