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

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: Rebasing. 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 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after
1368 sub GenerateCustomElementInvocationScopeIfNeeded 1368 sub GenerateCustomElementInvocationScopeIfNeeded
1369 { 1369 {
1370 my $code = ""; 1370 my $code = "";
1371 my $ext = shift; 1371 my $ext = shift;
1372 1372
1373 if ($ext->{"DeliverCustomElementCallbacks"}) { 1373 if ($ext->{"DeliverCustomElementCallbacks"}) {
1374 if ($ext->{"Reflect"}) { 1374 if ($ext->{"Reflect"}) {
1375 die "IDL error: [Reflect] and [DeliverCustomElementCallbacks] cannot coexist yet"; 1375 die "IDL error: [Reflect] and [DeliverCustomElementCallbacks] cannot coexist yet";
1376 } 1376 }
1377 1377
1378 AddToImplIncludes("CustomElementRegistry.h", "CUSTOM_ELEMENTS"); 1378 AddToImplIncludes("CustomElementRegistry.h");
1379 $code .= <<END; 1379 $code .= <<END;
1380 #if ENABLE(CUSTOM_ELEMENTS)
1381 CustomElementRegistry::CallbackDeliveryScope deliveryScope; 1380 CustomElementRegistry::CallbackDeliveryScope deliveryScope;
1382 #endif
1383 END 1381 END
1384 } 1382 }
1385 return $code; 1383 return $code;
1386 } 1384 }
1387 1385
1388 sub GenerateNormalAttrSetterCallback 1386 sub GenerateNormalAttrSetterCallback
1389 { 1387 {
1390 my $attribute = shift; 1388 my $attribute = shift;
1391 my $interface = shift; 1389 my $interface = shift;
1392 my $forMainWorldSuffix = shift; 1390 my $forMainWorldSuffix = shift;
(...skipping 3464 matching lines...) Expand 10 before | Expand all | Expand 10 after
4857 4855
4858 sub GetPassRefPtrType 4856 sub GetPassRefPtrType
4859 { 4857 {
4860 my $v8InterfaceName = shift; 4858 my $v8InterfaceName = shift;
4861 4859
4862 my $angleBracketSpace = $v8InterfaceName =~ />$/ ? " " : ""; 4860 my $angleBracketSpace = $v8InterfaceName =~ />$/ ? " " : "";
4863 return "PassRefPtr<${v8InterfaceName}${angleBracketSpace}>"; 4861 return "PassRefPtr<${v8InterfaceName}${angleBracketSpace}>";
4864 } 4862 }
4865 4863
4866 1; 4864 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