<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[163389] trunk</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/163389">163389</a></dd>
<dt>Author</dt> <dd>akling@apple.com</dd>
<dt>Date</dt> <dd>2014-02-04 10:51:07 -0800 (Tue, 04 Feb 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>Remove CPP bindings generator.
<https://webkit.org/b/128189>
Scrub out some leftover Blackberry gunk.
Reviewed by Anders Carlsson.
* Modules/webdatabase/SQLResultSet.idl:
* bindings/cpp/WebDOMCString.cpp: Removed.
* bindings/cpp/WebDOMCString.h: Removed.
* bindings/cpp/WebDOMDOMWindowCustom.cpp: Removed.
* bindings/cpp/WebDOMEventListenerCustom.cpp: Removed.
* bindings/cpp/WebDOMEventTarget.cpp: Removed.
* bindings/cpp/WebDOMEventTarget.h: Removed.
* bindings/cpp/WebDOMHTMLCollectionCustom.cpp: Removed.
* bindings/cpp/WebDOMHTMLDocumentCustom.cpp: Removed.
* bindings/cpp/WebDOMHTMLOptionsCollectionCustom.cpp: Removed.
* bindings/cpp/WebDOMNodeCustom.cpp: Removed.
* bindings/cpp/WebDOMNodeFilterCustom.cpp: Removed.
* bindings/cpp/WebDOMObject.h: Removed.
* bindings/cpp/WebDOMString.cpp: Removed.
* bindings/cpp/WebDOMString.h: Removed.
* bindings/cpp/WebExceptionHandler.cpp: Removed.
* bindings/cpp/WebExceptionHandler.h: Removed.
* bindings/cpp/WebNativeEventListener.cpp: Removed.
* bindings/cpp/WebNativeEventListener.h: Removed.
* bindings/cpp/WebNativeNodeFilterCondition.cpp: Removed.
* bindings/cpp/WebNativeNodeFilterCondition.h: Removed.
* bindings/scripts/CodeGeneratorCPP.pm: Removed.
* bindings/scripts/test/CPP/CPPTestSupplemental.cpp: Removed.
* bindings/scripts/test/CPP/CPPTestSupplemental.h: Removed.
* bindings/scripts/test/CPP/WebDOMFloat64Array.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMFloat64Array.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestActiveDOMObject.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestActiveDOMObject.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestCallback.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestCallback.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestCustomNamedGetter.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestCustomNamedGetter.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestEventConstructor.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestEventConstructor.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestEventTarget.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestEventTarget.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestException.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestException.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestGenerateIsReachable.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestGenerateIsReachable.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestImplements.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestImplements.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestInterface.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestInterface.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestNamedConstructor.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestNamedConstructor.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestNode.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestNode.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestObj.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestObj.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestOverloadedConstructors.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestOverloadedConstructors.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestSerializedScriptValueInterface.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestSerializedScriptValueInterface.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestSupplemental.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestSupplemental.h: Removed.
* bindings/scripts/test/CPP/WebDOMTestTypedefs.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMTestTypedefs.h: Removed.
* bindings/scripts/test/CPP/WebDOMattribute.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMattribute.h: Removed.
* bindings/scripts/test/CPP/WebDOMreadonly.cpp: Removed.
* bindings/scripts/test/CPP/WebDOMreadonly.h: Removed.
* css/StyleSheet.idl:
* dom/CustomEvent.idl:
* dom/Document.idl:
* dom/Event.idl:
* dom/Node.idl:
* dom/PopStateEvent.idl:
* html/HTMLCanvasElement.idl:
* html/HTMLInputElement.idl:
* html/canvas/CanvasRenderingContext2D.idl:
* page/DOMWindow.idl:
* page/Location.idl:
* workers/DedicatedWorkerGlobalScope.idl:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModuleswebdatabaseSQLResultSetidl">trunk/Source/WebCore/Modules/webdatabase/SQLResultSet.idl</a></li>
<li><a href="#trunkSourceWebCorecssStyleSheetidl">trunk/Source/WebCore/css/StyleSheet.idl</a></li>
<li><a href="#trunkSourceWebCoredomCustomEventidl">trunk/Source/WebCore/dom/CustomEvent.idl</a></li>
<li><a href="#trunkSourceWebCoredomDocumentidl">trunk/Source/WebCore/dom/Document.idl</a></li>
<li><a href="#trunkSourceWebCoredomEventidl">trunk/Source/WebCore/dom/Event.idl</a></li>
<li><a href="#trunkSourceWebCoredomNodeidl">trunk/Source/WebCore/dom/Node.idl</a></li>
<li><a href="#trunkSourceWebCoredomPopStateEventidl">trunk/Source/WebCore/dom/PopStateEvent.idl</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLCanvasElementidl">trunk/Source/WebCore/html/HTMLCanvasElement.idl</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLInputElementidl">trunk/Source/WebCore/html/HTMLInputElement.idl</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasCanvasRenderingContext2Didl">trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.idl</a></li>
<li><a href="#trunkSourceWebCorepageDOMWindowidl">trunk/Source/WebCore/page/DOMWindow.idl</a></li>
<li><a href="#trunkSourceWebCorepageLocationidl">trunk/Source/WebCore/page/Location.idl</a></li>
<li><a href="#trunkSourceWebCoreworkersDedicatedWorkerGlobalScopeidl">trunk/Source/WebCore/workers/DedicatedWorkerGlobalScope.idl</a></li>
<li><a href="#trunkToolsScriptsrunbindingstests">trunk/Tools/Scripts/run-bindings-tests</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li>trunk/Source/WebCore/bindings/cpp/</li>
<li><a href="#trunkSourceWebCorebindingsscriptsCodeGeneratorCPPpm">trunk/Source/WebCore/bindings/scripts/CodeGeneratorCPP.pm</a></li>
<li>trunk/Source/WebCore/bindings/scripts/test/CPP/</li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (163388 => 163389)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-02-04 18:41:07 UTC (rev 163388)
+++ trunk/Source/WebCore/ChangeLog        2014-02-04 18:51:07 UTC (rev 163389)
</span><span class="lines">@@ -1,3 +1,89 @@
</span><ins>+2014-02-04 Andreas Kling <akling@apple.com>
+
+ Remove CPP bindings generator.
+ <https://webkit.org/b/128189>
+
+ Scrub out some leftover Blackberry gunk.
+
+ Reviewed by Anders Carlsson.
+
+ * Modules/webdatabase/SQLResultSet.idl:
+ * bindings/cpp/WebDOMCString.cpp: Removed.
+ * bindings/cpp/WebDOMCString.h: Removed.
+ * bindings/cpp/WebDOMDOMWindowCustom.cpp: Removed.
+ * bindings/cpp/WebDOMEventListenerCustom.cpp: Removed.
+ * bindings/cpp/WebDOMEventTarget.cpp: Removed.
+ * bindings/cpp/WebDOMEventTarget.h: Removed.
+ * bindings/cpp/WebDOMHTMLCollectionCustom.cpp: Removed.
+ * bindings/cpp/WebDOMHTMLDocumentCustom.cpp: Removed.
+ * bindings/cpp/WebDOMHTMLOptionsCollectionCustom.cpp: Removed.
+ * bindings/cpp/WebDOMNodeCustom.cpp: Removed.
+ * bindings/cpp/WebDOMNodeFilterCustom.cpp: Removed.
+ * bindings/cpp/WebDOMObject.h: Removed.
+ * bindings/cpp/WebDOMString.cpp: Removed.
+ * bindings/cpp/WebDOMString.h: Removed.
+ * bindings/cpp/WebExceptionHandler.cpp: Removed.
+ * bindings/cpp/WebExceptionHandler.h: Removed.
+ * bindings/cpp/WebNativeEventListener.cpp: Removed.
+ * bindings/cpp/WebNativeEventListener.h: Removed.
+ * bindings/cpp/WebNativeNodeFilterCondition.cpp: Removed.
+ * bindings/cpp/WebNativeNodeFilterCondition.h: Removed.
+ * bindings/scripts/CodeGeneratorCPP.pm: Removed.
+ * bindings/scripts/test/CPP/CPPTestSupplemental.cpp: Removed.
+ * bindings/scripts/test/CPP/CPPTestSupplemental.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMFloat64Array.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMFloat64Array.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestActiveDOMObject.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestActiveDOMObject.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestCallback.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestCallback.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestCustomNamedGetter.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestCustomNamedGetter.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestEventConstructor.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestEventConstructor.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestEventTarget.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestEventTarget.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestException.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestException.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestGenerateIsReachable.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestGenerateIsReachable.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestImplements.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestImplements.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestInterface.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestInterface.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestNamedConstructor.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestNamedConstructor.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestNode.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestNode.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestObj.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestObj.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestOverloadedConstructors.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestOverloadedConstructors.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestSerializedScriptValueInterface.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestSerializedScriptValueInterface.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestSupplemental.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestSupplemental.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestTypedefs.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMTestTypedefs.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMattribute.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMattribute.h: Removed.
+ * bindings/scripts/test/CPP/WebDOMreadonly.cpp: Removed.
+ * bindings/scripts/test/CPP/WebDOMreadonly.h: Removed.
+ * css/StyleSheet.idl:
+ * dom/CustomEvent.idl:
+ * dom/Document.idl:
+ * dom/Event.idl:
+ * dom/Node.idl:
+ * dom/PopStateEvent.idl:
+ * html/HTMLCanvasElement.idl:
+ * html/HTMLInputElement.idl:
+ * html/canvas/CanvasRenderingContext2D.idl:
+ * page/DOMWindow.idl:
+ * page/Location.idl:
+ * workers/DedicatedWorkerGlobalScope.idl:
+
</ins><span class="cx"> 2014-02-04 Dan Bernstein <mitz@apple.com>
</span><span class="cx">
</span><span class="cx"> iOS build fix.
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebdatabaseSQLResultSetidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webdatabase/SQLResultSet.idl (163388 => 163389)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webdatabase/SQLResultSet.idl        2014-02-04 18:41:07 UTC (rev 163388)
+++ trunk/Source/WebCore/Modules/webdatabase/SQLResultSet.idl        2014-02-04 18:51:07 UTC (rev 163389)
</span><span class="lines">@@ -33,12 +33,6 @@
</span><span class="cx"> ImplementationLacksVTable
</span><span class="cx"> ] interface SQLResultSet {
</span><span class="cx"> readonly attribute SQLResultSetRowList rows;
</span><del>-
-#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
</del><span class="cx"> [GetterRaisesException] readonly attribute long insertId;
</span><del>-#else
- // Explicitely choose 'long long' here to avoid a 64bit->32bit shortening warning for us.
- [GetterRaisesException] readonly attribute long long insertId;
-#endif
</del><span class="cx"> readonly attribute long rowsAffected;
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorCPPpm"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/bindings/scripts/CodeGeneratorCPP.pm (163388 => 163389)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorCPP.pm        2014-02-04 18:41:07 UTC (rev 163388)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorCPP.pm        2014-02-04 18:51:07 UTC (rev 163389)
</span><span class="lines">@@ -1,998 +0,0 @@
</span><del>-
-# Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
-# Copyright (C) 2006 Anders Carlsson <andersca@mac.com>
-# Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org>
-# Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org>
-# Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
-# Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
-# Copyright (C) Research In Motion Limited 2010. All rights reserved.
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Library General Public
-# License as published by the Free Software Foundation; either
-# version 2 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Library General Public License for more details.
-#
-# You should have received a copy of the GNU Library General Public License
-# aint with this library; see the file COPYING.LIB. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-# Boston, MA 02110-1301, USA.
-#
-
-package CodeGeneratorCPP;
-
-use constant FileNamePrefix => "WebDOM";
-
-# Global Variables
-
-my @headerContentHeader = ();
-my @headerContent = ();
-my %headerForwardDeclarations = ();
-
-my @implContentHeader = ();
-my @implContent = ();
-my %implIncludes = ();
-
-# Constants
-my $exceptionInit = "WebCore::ExceptionCode ec = 0;";
-my $exceptionRaiseOnError = "webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec));";
-
-# Default License Templates
-my $headerLicenseTemplate = << "EOF";
-/*
- * Copyright (C) Research In Motion Limited 2010. All rights reserved.
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
- * Copyright (C) 2006 Samuel Weinig <sam.weinig\@gmail.com>
- * Copyright (C) Research In Motion Limited 2010. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-EOF
-
-my $implementationLicenseTemplate = << "EOF";
-/*
- * This file is part of the WebKit open source project.
- * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-EOF
-
-# Default constructor
-sub new
-{
- my $object = shift;
- my $reference = { };
-
- $codeGenerator = shift;
- shift; # $useLayerOnTop
- shift; # $preprocessor
- shift; # $writeDependencies
-
- bless($reference, $object);
- return $reference;
-}
-
-sub GenerateInterface
-{
- my $object = shift;
- my $interface = shift;
- my $defines = shift;
-
- my $name = $interface->name;
- my $className = GetClassName($name);
- my $parentClassName = "WebDOM" . GetParentImplClassName($interface);
-
- $object->GenerateHeader($interface);
- $object->GenerateImplementation($interface);
-}
-
-sub GetClassName
-{
- my $name = shift;
-
- # special cases
- return "WebDOMString" if $codeGenerator->IsStringType($name) or $name eq "SerializedScriptValue";
- return "WebDOMObject" if $name eq "any";
- return "bool" if $name eq "boolean";
- return $name if $codeGenerator->IsPrimitiveType($name);
-
- return "WebDOM$name";
-}
-
-sub GetImplClassName
-{
- return shift;
-}
-
-sub GetParentImplClassName
-{
- my $interface = shift;
-
- unless ($interface->parent) {
- return "EventTarget" if $interface->extendedAttributes->{"EventTarget"};
- return "Object";
- }
-
- return $interface->parent;
-}
-
-sub GetParent
-{
- my $interface = shift;
-
- my $parent;
- if (!$interface->parent) {
- $parent = "WebDOMObject";
- $parent = "WebDOMEventTarget" if $interface->extendedAttributes->{"EventTarget"};
- } else {
- my $parentName = $interface->parent;
- $parent = "WebDOM" . $parentName;
- }
-
- return $parent;
-}
-
-sub SkipFunction
-{
- my $function = shift;
-
- return 1 if $function->signature->extendedAttributes->{"Custom"};
-
- # FIXME: We don't generate bindings for SVG related interfaces yet
- return 1 if $function->signature->name =~ /getSVGDocument/;
-
- if ($codeGenerator->GetArrayType($function->signature->type)) {
- return 1;
- }
-
- if ($codeGenerator->GetSequenceType($function->signature->type)) {
- return 1;
- }
-
- foreach my $param (@{$function->parameters}) {
- return 1 if $codeGenerator->GetSequenceType($param->type);
- return 1 if $param->extendedAttributes->{"Clamp"};
- }
-
- # FIXME: This is typically used to add script execution state arguments to the method.
- # These functions will not compile with the C++ bindings as is, so disable them
- # to restore compilation until a proper implementation can be developed.
- return 1 if $function->signature->extendedAttributes->{"CallWith"};
-}
-
-sub SkipAttribute
-{
- my $attribute = shift;
- my $type = $attribute->signature->type;
-
- return 1 if $attribute->signature->extendedAttributes->{"Custom"}
- or $attribute->signature->extendedAttributes->{"CustomGetter"};
-
- return 1 if $type =~ /Constructor$/;
- return 1 if $attribute->isStatic;
- return 1 if $codeGenerator->IsTypedArrayType($type);
-
- if ($codeGenerator->GetArrayType($type)) {
- return 1;
- }
-
- if ($codeGenerator->GetSequenceType($type)) {
- return 1;
- }
-
- if ($codeGenerator->IsEnumType($type)) {
- return 1;
- }
-
- $codeGenerator->AssertNotSequenceType($type);
-
- # FIXME: This is typically used to add script execution state arguments to the method.
- # These functions will not compile with the C++ bindings as is, so disable them
- # to restore compilation until a proper implementation can be developed.
- return 1 if $attribute->signature->extendedAttributes->{"CallWith"};
-
- return 0;
-}
-
-sub GetCPPType
-{
- my $type = shift;
- my $useConstReference = shift;
- my $name = GetClassName($type);
-
- return "char" if $type eq "byte";
- return "unsigned char" if $type eq "octet";
- return "int" if $type eq "long";
- return "unsigned" if $name eq "unsigned long";
- return "unsigned short" if $type eq "CompareHow";
- return "double" if $name eq "Date";
-
- if ($codeGenerator->IsStringType($type)) {
- if ($useConstReference) {
- return "const $name&";
- }
-
- return $name;
- }
-
- return $name if $codeGenerator->IsPrimitiveType($type) or $type eq "DOMTimeStamp";
- return "const $name&" if $useConstReference;
- return $name;
-}
-
-sub ConversionNeeded
-{
- my $type = shift;
- return !$codeGenerator->IsNonPointerType($type) && !$codeGenerator->IsStringType($type);
-}
-
-sub GetCPPTypeGetter
-{
- my $argName = shift;
- my $type = shift;
-
- return $argName if $codeGenerator->IsPrimitiveType($type) or $codeGenerator->IsStringType($type);
- return "static_cast<WebCore::Range::CompareHow>($argName)" if $type eq "CompareHow";
- return "WebCore::SerializedScriptValue::create(WTF::String($argName))" if $type eq "SerializedScriptValue";
- return "to" . GetNamespaceForClass($argName) . "($argName)";
-}
-
-sub AddForwardDeclarationsForType
-{
- my $type = shift;
- my $public = shift;
-
- return if $codeGenerator->IsNonPointerType($type) or $codeGenerator->IsStringType($type);
-
- my $class = GetClassName($type);
- $headerForwardDeclarations{$class} = 1 if $public;
-}
-
-sub AddIncludesForType
-{
- my $type = shift;
-
- return if $codeGenerator->GetSequenceType($type);
- return if $codeGenerator->GetArrayType($type);
- return if $codeGenerator->IsNonPointerType($type);
- return if $type =~ /Constructor/;
-
- if ($codeGenerator->IsStringType($type)) {
- $implIncludes{"wtf/text/AtomicString.h"} = 1;
- $implIncludes{"URL.h"} = 1;
- $implIncludes{"WebDOMString.h"} = 1;
- return;
- }
-
- if ($type eq "any") {
- $implIncludes{"WebDOMObject.h"} = 1;
- return;
- }
-
- if ($type eq "EventListener") {
- $implIncludes{"WebNativeEventListener.h"} = 1;
- return;
- }
-
- if ($type eq "SerializedScriptValue") {
- $implIncludes{"SerializedScriptValue.h"} = 1;
- return;
- }
-
- # Also include CSSImportRule so that the toWebKit methods for subclasses are found
- if ($type eq "CSSRule") {
- $implIncludes{"WebDOMCSSImportRule.h"} = 1;
- }
-
- $implIncludes{"Node.h"} = 1 if $type eq "NodeList";
- $implIncludes{"StyleProperties.h"} = 1 if $type eq "CSSStyleDeclaration";
-
- # Default, include the same named file (the implementation) and the same name prefixed with "WebDOM".
- $implIncludes{"$type.h"} = 1 unless $type eq "any";
- $implIncludes{"WebDOM$type.h"} = 1;
-}
-
-sub GetNamespaceForClass
-{
- my $type = shift;
- return "WTF" if (($type eq "ArrayBuffer") or ($type eq "ArrayBufferView"));
- return "WTF" if (($type eq "Uint8Array") or ($type eq "Uint8ClampedArray") or ($type eq "Uint16Array") or ($type eq "Uint32Array"));
- return "WTF" if (($type eq "Int8Array") or ($type eq "Int16Array") or ($type eq "Int32Array"));
- return "WTF" if (($type eq "Float32Array") or ($type eq "Float64Array"));
- return "WebCore";
-}
-
-sub GenerateHeader
-{
- my $object = shift;
- my $interface = shift;
-
- my $interfaceName = $interface->name;
- my $className = GetClassName($interfaceName);
- my $implClassName = GetImplClassName($interfaceName);
-
- my $implClassNameWithNamespace = GetNamespaceForClass($implClassName) . "::" . $implClassName;
-
- my $parentName = "";
- $parentName = GetParent($interface);
-
- my $numConstants = @{$interface->constants};
- my $numAttributes = @{$interface->attributes};
- my $numFunctions = @{$interface->functions};
-
- # - Add default header template
- @headerContentHeader = split("\r", $headerLicenseTemplate);
- push(@headerContentHeader, "\n#ifndef $className" . "_h");
- push(@headerContentHeader, "\n#define $className" . "_h\n\n");
-
- my $conditionalString = $codeGenerator->GenerateConditionalString($interface);
- push(@headerContentHeader, "#if ${conditionalString}\n\n") if $conditionalString;
-
- # - INCLUDES -
-
- my %headerIncludes = ();
- $headerIncludes{"WebDOMString.h"} = 1;
- $headerIncludes{"$parentName.h"} = 1;
- foreach my $include (sort keys(%headerIncludes)) {
- push(@headerContentHeader, "#include <$include>\n");
- }
-
- push(@headerContent, "class $className");
- push(@headerContent, " : public $parentName") if $parentName;
- push(@headerContent, " {\n");
- push(@headerContent, "public:\n");
-
- # Constructor
- push(@headerContent, " $className();\n");
- push(@headerContent, " explicit $className($implClassNameWithNamespace*);\n");
-
- # Copy constructor and assignment operator on classes which have the d-ptr
- if ($parentName eq "WebDOMObject") {
- push(@headerContent, " $className(const $className&);\n");
- push(@headerContent, " ${className}& operator=(const $className&);\n");
- }
-
- # Destructor
- if ($parentName eq "WebDOMObject") {
- push(@headerContent, " virtual ~$className();\n");
- } else {
- push(@headerContent, " virtual ~$className() { }\n");
- }
-
- push(@headerContent, "\n");
- $headerForwardDeclarations{$implClassNameWithNamespace} = 1;
-
- # - Add constants.
- if ($numConstants > 0) {
- my @headerConstants = ();
- my @constants = @{$interface->constants};
- my $combinedConstants = "";
-
- # FIXME: we need a way to include multiple enums.
- foreach my $constant (@constants) {
- my $constantName = $constant->name;
- my $constantValue = $constant->value;
- my $conditional = $constant->extendedAttributes->{"Conditional"};
- my $notLast = $constant ne $constants[-1];
-
- if ($conditional) {
- my $conditionalString = $codeGenerator->GenerateConditionalStringFromAttributeValue($conditional);
- $combinedConstants .= "#if ${conditionalString}\n";
- }
- $combinedConstants .= " WEBDOM_$constantName = $constantValue";
- $combinedConstants .= "," if $notLast;
- if ($conditional) {
- $combinedConstants .= "\n#endif\n";
- } elsif ($notLast) {
- $combinedConstants .= "\n";
- }
- }
-
- push(@headerContent, " ");
- push(@headerContent, "enum {\n");
- push(@headerContent, $combinedConstants);
- push(@headerContent, "\n ");
- push(@headerContent, "};\n\n");
- }
-
- my @headerAttributes = ();
-
- # - Add attribute getters/setters.
- if ($numAttributes > 0) {
- foreach my $attribute (@{$interface->attributes}) {
- next if SkipAttribute($attribute);
-
- my $attributeConditionalString = $codeGenerator->GenerateConditionalString($attribute->signature);
- my $attributeName = $attribute->signature->name;
- my $attributeType = GetCPPType($attribute->signature->type, 0);
- my $property = "";
-
- $property .= "#if ${attributeConditionalString}\n" if $attributeConditionalString;
- $property .= " " . $attributeType . ($attributeType =~ /\*$/ ? "" : " ") . $attributeName . "() const";
-
- my $availabilityMacro = "";
- my $declarationSuffix = ";\n";
-
- AddForwardDeclarationsForType($attribute->signature->type, 1);
-
- $attributeType = GetCPPType($attribute->signature->type, 1);
- my $setterName = "set" . ucfirst($attributeName);
-
- $property .= $declarationSuffix;
- push(@headerAttributes, $property);
- if (!$attribute->isReadOnly and !$attribute->signature->extendedAttributes->{"Replaceable"}) {
- $property = " void $setterName($attributeType)";
- $property .= $declarationSuffix;
- push(@headerAttributes, $property);
- }
-
- push(@headerAttributes, "#endif\n") if $attributeConditionalString;
- }
- push(@headerContent, @headerAttributes) if @headerAttributes > 0;
- }
-
- my @headerFunctions = ();
- my @deprecatedHeaderFunctions = ();
- my @interfaceFunctions = ();
-
- # - Add functions.
- if ($numFunctions > 0) {
- foreach my $function (@{$interface->functions}) {
- next if SkipFunction($function);
- next if ($function->signature->name eq "set" and $interface->extendedAttributes->{"TypedArray"});
- my $functionName = $function->signature->extendedAttributes->{"ImplementedAs"} || $function->signature->name;
-
- my $returnType = GetCPPType($function->signature->type, 0);
- my $numberOfParameters = @{$function->parameters};
- my %typesToForwardDeclare = ($function->signature->type => 1);
-
- my $parameterIndex = 0;
- my $functionSig = "$returnType $functionName(";
- my $methodName = $functionName;
- foreach my $param (@{$function->parameters}) {
- my $paramName = $param->name;
- my $paramType = GetCPPType($param->type, 1);
- $typesToForwardDeclare{$param->type} = 1;
-
- $functionSig .= ", " if $parameterIndex >= 1;
- $functionSig .= "$paramType $paramName";
- $parameterIndex++;
- }
- $functionSig .= ")";
- if ($interface->extendedAttributes->{"CPPPureInterface"}) {
- push(@interfaceFunctions, " virtual " . $functionSig . " = 0;\n");
- }
- my $functionDeclaration = $functionSig;
- $functionDeclaration .= ";\n";
-
- foreach my $type (keys %typesToForwardDeclare) {
- # add any forward declarations to the public header if a deprecated version will be generated
- AddForwardDeclarationsForType($type, 1);
- }
-
- my $conditionalString = $codeGenerator->GenerateConditionalString($function->signature);
- push(@headerFunctions, "#if ${conditionalString}\n") if $conditionalString;
- push(@headerFunctions, " ");
- push(@headerFunctions, $functionDeclaration);
- push(@headerFunctions, "#endif\n") if $conditionalString;
- }
-
- if (@headerFunctions > 0) {
- push(@headerContent, "\n") if @headerAttributes > 0;
- push(@headerContent, @headerFunctions);
- }
- }
-
- push(@headerContent, "\n");
- push(@headerContent, " $implClassNameWithNamespace* impl() const;\n");
-
- if ($parentName eq "WebDOMObject") {
- push(@headerContent, "\nprotected:\n");
- push(@headerContent, " struct ${className}Private;\n");
- push(@headerContent, " ${className}Private* m_impl;\n");
- }
-
- push(@headerContent, "};\n\n");
-
- # for CPPPureInterface classes also add the interface that the client code needs to
- # implement
- if ($interface->extendedAttributes->{"CPPPureInterface"}) {
- push(@headerContent, "class WebUser$interfaceName {\n");
- push(@headerContent, "public:\n");
- push(@headerContent, " virtual void ref() = 0;\n");
- push(@headerContent, " virtual void deref() = 0;\n\n");
- push(@headerContent, @interfaceFunctions);
- push(@headerContent, "\nprotected:\n");
- push(@headerContent, " virtual ~WebUser$interfaceName() {}\n");
- push(@headerContent, "};\n\n");
- }
-
- my $namespace = GetNamespaceForClass($implClassName);
- push(@headerContent, "$namespace" . "::$implClassName* toWebCore(const $className&);\n");
- push(@headerContent, "$className toWebKit($namespace" . "::$implClassName*);\n");
- if ($interface->extendedAttributes->{"CPPPureInterface"}) {
- push(@headerContent, "$className toWebKit(WebUser$interfaceName*);\n");
- }
- push(@headerContent, "\n#endif\n");
- push(@headerContent, "#endif // ${conditionalString}\n\n") if $conditionalString;
-}
-
-sub AddEarlyReturnStatement
-{
- my $returnType = shift;
-
- if (!defined($returnType) or $returnType eq "void") {
- $returnType = "";
- } elsif ($codeGenerator->IsPrimitiveType($returnType)) {
- $returnType = " 0";
- } elsif ($returnType eq "bool") {
- $returnType = " false";
- } else {
- $returnType = " $returnType()";
- }
-
- # TODO: We could set exceptions here, if we want that
- my $statement = " if (!impl())\n";
- $statement .= " return$returnType;\n\n";
- return $statement;
-}
-
-sub AddReturnStatement
-{
- my $typeInfo = shift;
- my $returnValue = shift;
-
- # Used to invoke URLs "const String&" operator
- if ($codeGenerator->IsStringType($typeInfo->signature->type)) {
- return " return static_cast<const WTF::String&>($returnValue);\n";
- }
-
- return " return $returnValue;\n";
-}
-
-sub GenerateImplementation
-{
- my $object = shift;
- my $interface = shift;
-
- my $interfaceName = $interface->name;
- my $className = GetClassName($interfaceName);
- my $implClassName = GetImplClassName($interfaceName);
- my $parentImplClassName = GetParentImplClassName($interface);
- my $implClassNameWithNamespace = GetNamespaceForClass($implClassName) . "::" . $implClassName;
- my $baseClass = "WebDOM$parentImplClassName";
- my $conditional = $interface->extendedAttributes->{"Conditional"};
-
- my $numAttributes = @{$interface->attributes};
- my $numFunctions = @{$interface->functions};
-
- # - Add default header template.
- @implContentHeader = split("\r", $implementationLicenseTemplate);
-
- # - INCLUDES -
- push(@implContentHeader, "\n#include \"config.h\"\n");
- my $conditionalString = $codeGenerator->GenerateConditionalString($interface);
- push(@implContentHeader, "\n#if ${conditionalString}\n\n") if $conditionalString;
- push(@implContentHeader, "#include \"$className.h\"\n\n");
-
- $implIncludes{"WebExceptionHandler.h"} = 1;
- $implIncludes{"$implClassName.h"} = 1;
- $implIncludes{"wtf/GetPtr.h"} = 1;
- $implIncludes{"wtf/RefPtr.h"} = 1;
-
- @implContent = ();
-
- # Private datastructure, encapsulating WebCore types
- if ($baseClass eq "WebDOMObject") {
- push(@implContent, "struct ${className}::${className}Private {\n");
- push(@implContent, " ${className}Private($implClassNameWithNamespace* object = 0)\n");
- push(@implContent, " : impl(object)\n");
- push(@implContent, " {\n");
- push(@implContent, " }\n\n");
- push(@implContent, " RefPtr<$implClassNameWithNamespace> impl;\n");
- push(@implContent, "};\n\n");
- }
-
- # Constructor
- push(@implContent, "${className}::$className()\n");
- push(@implContent, " : ${baseClass}()\n");
- push(@implContent, " , m_impl(0)\n") if ($baseClass eq "WebDOMObject");
- push(@implContent, "{\n");
- push(@implContent, "}\n\n");
-
- push(@implContent, "${className}::$className($implClassNameWithNamespace* impl)\n");
- if ($baseClass eq "WebDOMObject") {
- push(@implContent, " : ${baseClass}()\n");
- push(@implContent, " , m_impl(new ${className}Private(impl))\n");
- push(@implContent, "{\n");
- push(@implContent, "}\n\n");
-
- push(@implContent, "${className}::${className}(const ${className}& copy)\n");
- push(@implContent, " : ${baseClass}()\n");
- push(@implContent, "{\n");
- push(@implContent, " m_impl = copy.impl() ? new ${className}Private(copy.impl()) : 0;\n");
- push(@implContent, "}\n\n");
-
- push(@implContent, "${className}& ${className}::operator\=(const ${className}& copy)\n");
- push(@implContent, "{\n");
- push(@implContent, " delete m_impl;\n");
- push(@implContent, " m_impl = copy.impl() ? new ${className}Private(copy.impl()) : 0;\n");
- push(@implContent, " return *this;\n");
- push(@implContent, "}\n\n");
-
- push(@implContent, "$implClassNameWithNamespace* ${className}::impl() const\n");
- push(@implContent, "{\n");
- push(@implContent, " return m_impl ? WTF::getPtr(m_impl->impl) : 0;\n");
- push(@implContent, "}\n\n");
-
- # Destructor
- push(@implContent, "${className}::~$className()\n");
- push(@implContent, "{\n");
- push(@implContent, " delete m_impl;\n");
- push(@implContent, " m_impl = 0;\n");
- push(@implContent, "}\n\n");
- } else {
- push(@implContent, " : ${baseClass}(impl)\n");
- push(@implContent, "{\n");
- push(@implContent, "}\n\n");
-
- push(@implContent, "$implClassNameWithNamespace* ${className}::impl() const\n");
- push(@implContent, "{\n");
- push(@implContent, " return static_cast<$implClassNameWithNamespace*>(${baseClass}::impl());\n");
- push(@implContent, "}\n\n");
- }
-
- # START implementation
- %attributeNames = ();
-
- # - Attributes
- if ($numAttributes > 0) {
- foreach my $attribute (@{$interface->attributes}) {
- next if SkipAttribute($attribute);
- AddIncludesForType($attribute->signature->type);
-
- my $idlType = $attribute->signature->type;
-
- my $attributeName = $attribute->signature->name;
- my $attributeType = GetCPPType($attribute->signature->type, 0);
- my $attributeIsNullable = $attribute->signature->isNullable;
-
- $attributeNames{$attributeName} = 1;
-
- # - GETTER
- my $getterSig = "$attributeType $className\:\:$attributeName() const\n";
- my $hasGetterException = $attribute->signature->extendedAttributes->{"GetterRaisesException"};
- my ($functionName, @arguments) = $codeGenerator->GetterExpression(\%implIncludes, $interfaceName, $attribute);
- push(@arguments, "isNull") if $attributeIsNullable;
- push(@arguments, "ec") if $hasGetterException;
- if ($attribute->signature->extendedAttributes->{"ImplementedBy"}) {
- my $implementedBy = $attribute->signature->extendedAttributes->{"ImplementedBy"};
- $implIncludes{"${implementedBy}.h"} = 1;
- unshift(@arguments, "impl()");
- $functionName = "${implementedBy}::${functionName}";
- } else {
- $functionName = "impl()->${functionName}";
- }
-
- # Special cases
- my $getterContentHead = "";
- my $getterContentTail = "";
- my @customGetterContent = ();
- if ($attribute->signature->extendedAttributes->{"ConvertToString"}) {
- $getterContentHead = "WTF::String::number(";
- $getterContentTail = ")";
- } elsif ($attribute->signature->type eq "SerializedScriptValue") {
- $getterContentTail = "->toString()";
- } elsif (ConversionNeeded($attribute->signature->type)) {
- $getterContentHead = "toWebKit(WTF::getPtr(";
- $getterContentTail = "))";
- }
-
- my $getterContent = "${getterContentHead}${functionName}(" . join(", ", @arguments) . ")${getterContentTail}";
- my $attributeConditionalString = $codeGenerator->GenerateConditionalString($attribute->signature);
- push(@implContent, "#if ${attributeConditionalString}\n") if $attributeConditionalString;
-
- push(@implContent, $getterSig);
- push(@implContent, "{\n");
- push(@implContent, AddEarlyReturnStatement($attributeType));
- push(@implContent, @customGetterContent);
-
- # FIXME: Should we return a default value when isNull == true?
- if ($attributeIsNullable) {
- push(@implContent, " bool isNull = false;\n");
- }
-
- if ($hasGetterException) {
- # Differentiated between when the return type is a pointer and
- # not for white space issue (ie. Foo *result vs. int result).
- if ($attributeType =~ /\*$/) {
- $getterContent = $attributeType . "result = " . $getterContent;
- } else {
- $getterContent = $attributeType . " result = " . $getterContent;
- }
-
- push(@implContent, " $exceptionInit\n");
- push(@implContent, " $getterContent;\n");
- push(@implContent, " $exceptionRaiseOnError\n");
- push(@implContent, AddReturnStatement($attribute, "result"));
- } else {
- push(@implContent, AddReturnStatement($attribute, $getterContent));
- }
- push(@implContent, "}\n\n");
-
- # - SETTER
- if (!$attribute->isReadOnly and !$attribute->signature->extendedAttributes->{"Replaceable"}) {
- # Exception handling
- my $hasSetterException = $attribute->signature->extendedAttributes->{"SetterRaisesException"};
-
- my $coreSetterName = "set" . $codeGenerator->WK_ucfirst($attributeName);
- my $setterName = "set" . ucfirst($attributeName);
- my $argName = "new" . ucfirst($attributeName);
- my $arg = GetCPPTypeGetter($argName, $idlType);
-
- my $attributeType = GetCPPType($attribute->signature->type, 1);
- push(@implContent, "void $className\:\:$setterName($attributeType $argName)\n");
- push(@implContent, "{\n");
- push(@implContent, AddEarlyReturnStatement());
-
- push(@implContent, " $exceptionInit\n") if $hasSetterException;
-
- my ($functionName, @arguments) = $codeGenerator->SetterExpression(\%implIncludes, $interfaceName, $attribute);
- push(@arguments, $arg);
- push(@arguments, "ec") if $hasSetterException;
- if ($attribute->signature->extendedAttributes->{"ImplementedBy"}) {
- my $implementedBy = $attribute->signature->extendedAttributes->{"ImplementedBy"};
- $implIncludes{"${implementedBy}.h"} = 1;
- unshift(@arguments, "impl()");
- $functionName = "${implementedBy}::${functionName}";
- } else {
- $functionName = "impl()->${functionName}";
- }
- push(@implContent, " ${functionName}(" . join(", ", @arguments) . ");\n");
- push(@implContent, " $exceptionRaiseOnError\n") if $hasSetterException;
- push(@implContent, "}\n\n");
- }
-
- push(@implContent, "#endif\n") if $attributeConditionalString;
- }
- }
-
- # - Functions
- if ($numFunctions > 0) {
- foreach my $function (@{$interface->functions}) {
- # Treat CPPPureInterface as Custom as well, since the WebCore versions will take a script context as well
- next if SkipFunction($function) || $interface->extendedAttributes->{"CPPPureInterface"};
- next if ($function->signature->name eq "set" and $interface->extendedAttributes->{"TypedArray"});
- AddIncludesForType($function->signature->type);
-
- my $functionName = $function->signature->name;
- my $returnType = GetCPPType($function->signature->type, 0);
- my $hasParameters = @{$function->parameters};
- my $raisesExceptions = $function->signature->extendedAttributes->{"RaisesException"};
-
- my @parameterNames = ();
- my @needsAssert = ();
- my %needsCustom = ();
-
- my $parameterIndex = 0;
-
- my $functionSig = "$returnType $className\:\:$functionName(";
- foreach my $param (@{$function->parameters}) {
- my $paramName = $param->name;
- my $paramType = GetCPPType($param->type, 1);
-
- # make a new parameter name if the original conflicts with a property name
- $paramName = "in" . ucfirst($paramName) if $attributeNames{$paramName};
-
- AddIncludesForType($param->type);
-
- my $idlType = $param->type;
- my $implGetter = GetCPPTypeGetter($paramName, $idlType);
-
- push(@parameterNames, $implGetter);
- $needsCustom{"NodeToReturn"} = $paramName if $param->extendedAttributes->{"CustomReturn"};
-
- unless ($codeGenerator->IsPrimitiveType($idlType) or $codeGenerator->IsStringType($idlType)) {
- push(@needsAssert, " ASSERT($paramName);\n");
- }
-
- $functionSig .= ", " if $parameterIndex >= 1;
- $functionSig .= "$paramType $paramName";
- $parameterIndex++;
- }
-
- $functionSig .= ")";
-
- my @functionContent = ();
- push(@parameterNames, "ec") if $raisesExceptions;
-
- my $content;
- if ($function->signature->extendedAttributes->{"ImplementedBy"}) {
- my $implementedBy = $function->signature->extendedAttributes->{"ImplementedBy"};
- $implIncludes{"${implementedBy}.h"} = 1;
- unshift(@parameterNames, "impl()");
- $content = "WebCore::${implementedBy}::" . $codeGenerator->WK_lcfirst($functionName) . "(" . join(", ", @parameterNames) . ")";
- } else {
- $content = "impl()->" . $codeGenerator->WK_lcfirst($functionName) . "(" . join(", ", @parameterNames) . ")";
- }
-
- if ($returnType eq "void") {
- # Special case 'void' return type.
- if ($raisesExceptions) {
- push(@functionContent, " $exceptionInit\n");
- push(@functionContent, " $content;\n");
- push(@functionContent, " $exceptionRaiseOnError\n");
- } else {
- push(@functionContent, " $content;\n");
- }
- } elsif (defined $needsCustom{"NodeToReturn"}) {
- # TODO: This is important to enable, once we care about custom code!
-
- # Special case the insertBefore, replaceChild, removeChild
- # and appendChild functions from DOMNode
- my $toReturn = $needsCustom{"NodeToReturn"};
- if ($raisesExceptions) {
- push(@functionContent, " $exceptionInit\n");
- push(@functionContent, " if ($content)\n");
- push(@functionContent, " return $toReturn;\n");
- push(@functionContent, " $exceptionRaiseOnError\n");
- push(@functionContent, " return $className();\n");
- } else {
- push(@functionContent, " if ($content)\n");
- push(@functionContent, " return $toReturn;\n");
- push(@functionContent, " return NULL;\n");
- }
- } else {
- if (ConversionNeeded($function->signature->type)) {
- $content = "toWebKit(WTF::getPtr($content))";
- }
-
- if ($raisesExceptions) {
- # Differentiated between when the return type is a pointer and
- # not for white space issue (ie. Foo *result vs. int result).
- if ($returnType =~ /\*$/) {
- $content = $returnType . "result = " . $content;
- } else {
- $content = $returnType . " result = " . $content;
- }
-
- push(@functionContent, " $exceptionInit\n");
- push(@functionContent, " $content;\n");
- push(@functionContent, " $exceptionRaiseOnError\n");
- push(@functionContent, " return result;\n");
- } else {
- push(@functionContent, " return $content;\n");
- }
- }
-
- my $conditionalString = $codeGenerator->GenerateConditionalString($function->signature);
- push(@implContent, "\n#if ${conditionalString}\n") if $conditionalString;
-
- push(@implContent, "$functionSig\n");
- push(@implContent, "{\n");
- push(@implContent, AddEarlyReturnStatement($returnType));
- push(@implContent, @functionContent);
- push(@implContent, "}\n\n");
-
- push(@implContent, "#endif\n\n") if $conditionalString;
-
- # Clear the hash
- %needsCustom = ();
- }
- }
-
- # END implementation
-
- # Generate internal interfaces
- my $namespace = GetNamespaceForClass($implClassName);
- push(@implContent, "$namespace" . "::$implClassName* toWebCore(const $className& wrapper)\n");
- push(@implContent, "{\n");
- push(@implContent, " return wrapper.impl();\n");
- push(@implContent, "}\n\n");
-
- push(@implContent, "$className toWebKit($namespace" . "::$implClassName* value)\n");
- push(@implContent, "{\n");
- push(@implContent, " return $className(value);\n");
- push(@implContent, "}\n");
-
- # - End the ifdef conditional if necessary
- push(@implContent, "\n#endif // ${conditionalString}\n") if $conditionalString;
-}
-
-sub WriteData
-{
- my $object = shift;
- my $dataNode = shift;
- my $outputDir = shift;
-
- # Open files for writing...
- my $name = $dataNode->name;
- my $prefix = FileNamePrefix;
- my $headerFileName = "$outputDir/$prefix$name.h";
- my $implFileName = "$outputDir/$prefix$name.cpp";
-
- # Update a .h file if the contents are changed.
- my $contents = join "", @headerContentHeader;
- $contents .= "\n";
- foreach my $class (sort keys(%headerForwardDeclarations)) {
- if ($class =~ /::/) {
- my $namespacePart = $class;
- $namespacePart =~ s/::.*//;
-
- my $classPart = $class;
- $classPart =~ s/${namespacePart}:://;
-
- $contents .= "namespace $namespacePart {\nclass $classPart;\n};\n\n";
- } else {
- $contents .= "class $class;\n"
- }
- }
-
- my $hasForwardDeclarations = keys(%headerForwardDeclarations);
- $contents .= "\n" if $hasForwardDeclarations;
- $contents .= join "", @headerContent;
- $codeGenerator->UpdateFile($headerFileName, $contents);
-
- @headerContentHeader = ();
- @headerContent = ();
- %headerForwardDeclarations = ();
-
- # Update a .cpp file if the contents are changed.
- $contents = join "", @implContentHeader;
-
- my @includes;
- foreach my $include (keys(%implIncludes)) {
- if ($include =~ /^wtf\//) {
- push(@includes, "<$include>");
- } else {
- push(@includes, "\"$include\"");
- }
- }
-
- foreach my $include (sort @includes) {
- # "className.h" is already included right after config.h, silence check-webkit-style
- next if $include eq "\"$prefix$name.h\"";
- $contents .= "#include $include\n";
- }
- $contents .= "\n";
-
- $contents .= join "", @implContent;
- $codeGenerator->UpdateFile($implFileName, $contents);
-
- @implContentHeader = ();
- @implContent = ();
- %implIncludes = ();
-}
-
-1;
</del></span></pre></div>
<a id="trunkSourceWebCorecssStyleSheetidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleSheet.idl (163388 => 163389)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleSheet.idl        2014-02-04 18:41:07 UTC (rev 163388)
+++ trunk/Source/WebCore/css/StyleSheet.idl        2014-02-04 18:51:07 UTC (rev 163389)
</span><span class="lines">@@ -33,11 +33,5 @@
</span><span class="cx"> [TreatReturnedNullStringAs=Null] readonly attribute DOMString href;
</span><span class="cx"> [TreatReturnedNullStringAs=Null] readonly attribute DOMString title;
</span><span class="cx"> readonly attribute MediaList media;
</span><del>-
-#if defined(LANGUAGE_CPP) && LANGUAGE_CPP
- // Extra WebCore methods exposed to allowe compile-time casting in C++
- boolean isCSSStyleSheet();
-#endif
-
</del><span class="cx"> };
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomCustomEventidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/CustomEvent.idl (163388 => 163389)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/CustomEvent.idl        2014-02-04 18:41:07 UTC (rev 163388)
+++ trunk/Source/WebCore/dom/CustomEvent.idl        2014-02-04 18:51:07 UTC (rev 163389)
</span><span class="lines">@@ -23,7 +23,6 @@
</span><span class="cx"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx"> */
</span><span class="cx">
</span><del>-#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
</del><span class="cx"> // Introduced in DOM Level 3:
</span><span class="cx"> [
</span><span class="cx"> ConstructorTemplate=Event,
</span><span class="lines">@@ -35,5 +34,4 @@
</span><span class="cx"> [Default=Undefined] optional boolean cancelableArg,
</span><span class="cx"> [Default=Undefined] optional any detailArg);
</span><span class="cx"> };
</span><del>-#endif
</del><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Document.idl (163388 => 163389)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Document.idl        2014-02-04 18:41:07 UTC (rev 163388)
+++ trunk/Source/WebCore/dom/Document.idl        2014-02-04 18:51:07 UTC (rev 163389)
</span><span class="lines">@@ -201,11 +201,9 @@
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
</del><span class="cx"> #if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C
</span><span class="cx"> CanvasRenderingContext getCSSCanvasContext(DOMString contextId, DOMString name, long width, long height);
</span><span class="cx"> #endif
</span><del>-#endif
</del><span class="cx">
</span><span class="cx"> // HTML 5
</span><span class="cx"> NodeList getElementsByClassName([Default=Undefined] optional DOMString tagname);
</span><span class="lines">@@ -344,11 +342,6 @@
</span><span class="cx"> #endif // defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-#if defined(LANGUAGE_CPP) && LANGUAGE_CPP
- // Extra WebCore methods exposed to allow compile-time casting in C++
- boolean isHTMLDocument();
-#endif
-
</del><span class="cx"> // Page visibility API.
</span><span class="cx"> [Conditional=PAGE_VISIBILITY_API] readonly attribute DOMString visibilityState;
</span><span class="cx"> [Conditional=PAGE_VISIBILITY_API] readonly attribute boolean hidden;
</span></span></pre></div>
<a id="trunkSourceWebCoredomEventidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Event.idl (163388 => 163389)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Event.idl        2014-02-04 18:41:07 UTC (rev 163388)
+++ trunk/Source/WebCore/dom/Event.idl        2014-02-04 18:51:07 UTC (rev 163389)
</span><span class="lines">@@ -79,11 +79,5 @@
</span><span class="cx"> [Custom] readonly attribute Clipboard clipboardData;
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-#if defined(LANGUAGE_CPP) && LANGUAGE_CPP
- // Extra WebCore methods exposed to allow compile-time casting in C++
- boolean isMouseEvent();
- boolean isUIEvent();
-#endif
-
</del><span class="cx"> };
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomNodeidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Node.idl (163388 => 163389)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Node.idl        2014-02-04 18:41:07 UTC (rev 163388)
+++ trunk/Source/WebCore/dom/Node.idl        2014-02-04 18:51:07 UTC (rev 163389)
</span><span class="lines">@@ -122,7 +122,6 @@
</span><span class="cx"> void inspect();
</span><span class="cx"> #endif /* defined(LANGUAGE_OBJECTIVE_C) */
</span><span class="cx">
</span><del>-#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
</del><span class="cx"> #if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C
</span><span class="cx"> void addEventListener(DOMString type,
</span><span class="cx"> EventListener listener,
</span><span class="lines">@@ -132,17 +131,6 @@
</span><span class="cx"> optional boolean useCapture);
</span><span class="cx"> [RaisesException] boolean dispatchEvent(Event event);
</span><span class="cx"> #endif
</span><del>-#endif
</del><span class="cx">
</span><del>-#if defined(LANGUAGE_CPP) && LANGUAGE_CPP
- [Custom] void addEventListener(DOMString type,
- EventListener listener,
- boolean useCapture);
- [Custom] void removeEventListener(DOMString type,
- EventListener listener,
- boolean useCapture);
- [RaisesException] boolean dispatchEvent(Event event);
-#endif
-
</del><span class="cx"> };
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomPopStateEventidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/PopStateEvent.idl (163388 => 163389)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/PopStateEvent.idl        2014-02-04 18:41:07 UTC (rev 163388)
+++ trunk/Source/WebCore/dom/PopStateEvent.idl        2014-02-04 18:51:07 UTC (rev 163389)
</span><span class="lines">@@ -24,11 +24,9 @@
</span><span class="cx"> *
</span><span class="cx"> */
</span><span class="cx">
</span><del>-#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
</del><span class="cx"> [
</span><span class="cx"> ConstructorTemplate=Event
</span><span class="cx"> ] interface PopStateEvent : Event {
</span><span class="cx"> [InitializedByEventConstructor, CachedAttribute, CustomGetter] readonly attribute any state;
</span><span class="cx"> };
</span><del>-#endif
</del><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLCanvasElementidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLCanvasElement.idl (163388 => 163389)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLCanvasElement.idl        2014-02-04 18:41:07 UTC (rev 163388)
+++ trunk/Source/WebCore/html/HTMLCanvasElement.idl        2014-02-04 18:51:07 UTC (rev 163389)
</span><span class="lines">@@ -33,13 +33,11 @@
</span><span class="cx">
</span><span class="cx"> [Custom, RaisesException] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=NullString,Default=Undefined] optional DOMString type);
</span><span class="cx">
</span><del>-#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
</del><span class="cx"> #if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C
</span><span class="cx"> // The custom binding is needed to handle context creation attributes.
</span><span class="cx"> [Custom] any getContext([Default=Undefined] optional DOMString contextId);
</span><span class="cx"> [Custom] any probablySupportsContext([Default=Undefined] optional DOMString contextId);
</span><span class="cx"> #endif
</span><del>-#endif
</del><span class="cx">
</span><span class="cx"> };
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLInputElementidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLInputElement.idl (163388 => 163389)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLInputElement.idl        2014-02-04 18:41:07 UTC (rev 163388)
+++ trunk/Source/WebCore/html/HTMLInputElement.idl        2014-02-04 18:51:07 UTC (rev 163389)
</span><span class="lines">@@ -62,9 +62,7 @@
</span><span class="cx"> #else
</span><span class="cx"> [TreatNullAs=NullString] attribute DOMString value;
</span><span class="cx"> #endif
</span><del>-#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
</del><span class="cx"> [SetterRaisesException] attribute Date valueAsDate;
</span><del>-#endif
</del><span class="cx"> [SetterRaisesException] attribute double valueAsNumber;
</span><span class="cx">
</span><span class="cx"> [RaisesException] void stepUp(optional long n);
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasCanvasRenderingContext2Didl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.idl (163388 => 163389)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.idl        2014-02-04 18:41:07 UTC (rev 163388)
+++ trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.idl        2014-02-04 18:51:07 UTC (rev 163389)
</span><span class="lines">@@ -96,12 +96,10 @@
</span><span class="cx"> void setAlpha([Default=Undefined] optional float alpha);
</span><span class="cx"> void setCompositeOperation([Default=Undefined] optional DOMString compositeOperation);
</span><span class="cx">
</span><del>-#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
</del><span class="cx"> void setLineWidth([Default=Undefined] optional float width);
</span><span class="cx"> void setLineCap([Default=Undefined] optional DOMString cap);
</span><span class="cx"> void setLineJoin([Default=Undefined] optional DOMString join);
</span><span class="cx"> void setMiterLimit([Default=Undefined] optional float limit);
</span><del>-#endif
</del><span class="cx">
</span><span class="cx"> void clearShadow();
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMWindowidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMWindow.idl (163388 => 163389)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMWindow.idl        2014-02-04 18:41:07 UTC (rev 163388)
+++ trunk/Source/WebCore/page/DOMWindow.idl        2014-02-04 18:51:07 UTC (rev 163389)
</span><span class="lines">@@ -51,9 +51,7 @@
</span><span class="cx"> [Replaceable] readonly attribute Navigator navigator;
</span><span class="cx"> [Replaceable] readonly attribute Navigator clientInformation;
</span><span class="cx"> readonly attribute Crypto crypto;
</span><del>-#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
</del><span class="cx"> [DoNotCheckSecurity, CustomSetter] attribute Location location;
</span><del>-#endif
</del><span class="cx"> [Replaceable, CustomGetter] readonly attribute Event event;
</span><span class="cx">
</span><span class="cx"> DOMSelection getSelection();
</span></span></pre></div>
<a id="trunkSourceWebCorepageLocationidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/Location.idl (163388 => 163389)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/Location.idl        2014-02-04 18:41:07 UTC (rev 163388)
+++ trunk/Source/WebCore/page/Location.idl        2014-02-04 18:51:07 UTC (rev 163389)
</span><span class="lines">@@ -37,26 +37,22 @@
</span><span class="cx"> JSCustomDefineOwnPropertyOnPrototype,
</span><span class="cx"> OperationsNotDeletable
</span><span class="cx"> ] interface Location {
</span><del>-#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
- [DoNotCheckSecurityOnSetter, CustomSetter] attribute DOMString href;
-#endif
</del><ins>+ [DoNotCheckSecurityOnSetter, CustomSetter] attribute DOMString href;
</ins><span class="cx">
</span><span class="cx"> [Custom] void assign([Default=Undefined] optional DOMString url);
</span><span class="cx"> [Custom] void replace([Default=Undefined] optional DOMString url);
</span><span class="cx"> [Custom] void reload();
</span><span class="cx">
</span><span class="cx"> // URI decomposition attributes
</span><del>-#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
- [CustomSetter] attribute DOMString protocol;
- [CustomSetter] attribute DOMString host;
- [CustomSetter] attribute DOMString hostname;
- [CustomSetter] attribute DOMString port;
- [CustomSetter] attribute DOMString pathname;
- [CustomSetter] attribute DOMString search;
- [CustomSetter] attribute DOMString hash;
</del><ins>+ [CustomSetter] attribute DOMString protocol;
+ [CustomSetter] attribute DOMString host;
+ [CustomSetter] attribute DOMString hostname;
+ [CustomSetter] attribute DOMString port;
+ [CustomSetter] attribute DOMString pathname;
+ [CustomSetter] attribute DOMString search;
+ [CustomSetter] attribute DOMString hash;
</ins><span class="cx">
</span><del>- readonly attribute DOMString origin;
-#endif
</del><ins>+ readonly attribute DOMString origin;
</ins><span class="cx">
</span><span class="cx"> readonly attribute DOMStringList ancestorOrigins;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersDedicatedWorkerGlobalScopeidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/DedicatedWorkerGlobalScope.idl (163388 => 163389)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/DedicatedWorkerGlobalScope.idl        2014-02-04 18:41:07 UTC (rev 163388)
+++ trunk/Source/WebCore/workers/DedicatedWorkerGlobalScope.idl        2014-02-04 18:51:07 UTC (rev 163389)
</span><span class="lines">@@ -34,14 +34,12 @@
</span><span class="cx"> JSNoStaticTables,
</span><span class="cx"> ] interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
</span><span class="cx">
</span><del>-#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
</del><span class="cx"> #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
</span><span class="cx"> [Custom, RaisesException] void postMessage(any message, optional Array messagePorts);
</span><span class="cx"> #else
</span><span class="cx"> // There's no good way to expose an array via the ObjC bindings, so for now just allow passing in a single port.
</span><span class="cx"> [RaisesException] void postMessage(DOMString message, optional MessagePort messagePort);
</span><span class="cx"> #endif
</span><del>-#endif
</del><span class="cx">
</span><span class="cx"> attribute EventListener onmessage;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkToolsScriptsrunbindingstests"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/run-bindings-tests (163388 => 163389)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/run-bindings-tests        2014-02-04 18:41:07 UTC (rev 163388)
+++ trunk/Tools/Scripts/run-bindings-tests        2014-02-04 18:51:07 UTC (rev 163389)
</span><span class="lines">@@ -44,8 +44,7 @@
</span><span class="cx"> generators = [
</span><span class="cx"> 'JS',
</span><span class="cx"> 'ObjC',
</span><del>- 'GObject',
- 'CPP'
</del><ins>+ 'GObject'
</ins><span class="cx"> ]
</span><span class="cx">
</span><span class="cx"> from webkitpy.bindings.main import BindingsTests
</span></span></pre>
</div>
</div>
</body>
</html>