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

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

Issue 14676023: Remove DOM prefix from plugins IDL interfaces (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix build due to (unrelated) missing include in generated code Created 7 years, 7 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/core/core.gypi » ('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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 END 491 END
492 if (GetGenerateIsReachable($interface) eq "ImplDocument" || 492 if (GetGenerateIsReachable($interface) eq "ImplDocument" ||
493 GetGenerateIsReachable($interface) eq "ImplElementRoot" || 493 GetGenerateIsReachable($interface) eq "ImplElementRoot" ||
494 GetGenerateIsReachable($interface) eq "ImplOwnerRoot" || 494 GetGenerateIsReachable($interface) eq "ImplOwnerRoot" ||
495 GetGenerateIsReachable($interface) eq "ImplOwnerNodeRoot") { 495 GetGenerateIsReachable($interface) eq "ImplOwnerNodeRoot") {
496 496
497 AddToImplIncludes("bindings/v8/V8GCController.h"); 497 AddToImplIncludes("bindings/v8/V8GCController.h");
498 498
499 my $methodName; 499 my $methodName;
500 $methodName = "document" if (GetGenerateIsReachable($interface) eq "Impl Document"); 500 $methodName = "document" if (GetGenerateIsReachable($interface) eq "Impl Document");
501 $methodName = "element" if (GetGenerateIsReachable($interface) eq "ImplE lementRoot"); 501 if (GetGenerateIsReachable($interface) eq "ImplElementRoot") {
502 $methodName = "element";
503 # Include Element.h so that the implicit cast from Element* to Node* compiles.
504 AddToImplIncludes("core/dom/Element.h");
do-not-use 2013/05/16 22:38:21 I was getting the following error locally without
505 }
502 $methodName = "owner" if (GetGenerateIsReachable($interface) eq "ImplOwn erRoot"); 506 $methodName = "owner" if (GetGenerateIsReachable($interface) eq "ImplOwn erRoot");
503 $methodName = "ownerNode" if (GetGenerateIsReachable($interface) eq "Imp lOwnerNodeRoot"); 507 $methodName = "ownerNode" if (GetGenerateIsReachable($interface) eq "Imp lOwnerNodeRoot");
504 508
505 $code .= <<END; 509 $code .= <<END;
506 if (Node* owner = impl->${methodName}()) 510 if (Node* owner = impl->${methodName}())
507 return V8GCController::opaqueRootForGC(owner, isolate); 511 return V8GCController::opaqueRootForGC(owner, isolate);
508 END 512 END
509 } 513 }
510 514
511 $code .= <<END; 515 $code .= <<END;
(...skipping 4918 matching lines...) Expand 10 before | Expand all | Expand 10 after
5430 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { 5434 if ($currentInterface->extendedAttributes->{$extendedAttribute}) {
5431 $found = 1; 5435 $found = 1;
5432 } 5436 }
5433 return 1 if $found; 5437 return 1 if $found;
5434 }, 0); 5438 }, 0);
5435 5439
5436 return $found; 5440 return $found;
5437 } 5441 }
5438 5442
5439 1; 5443 1;
OLDNEW
« no previous file with comments | « no previous file | Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698