diff options
author | Steve Block <steveblock@google.com> | 2010-04-30 15:50:02 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-05-11 14:42:14 +0100 |
commit | 76acb199cbd556feceab5dd95a6dddddac11b421 (patch) | |
tree | 4e942aa4fe302759553056321c8088856e6a3f9c /WebCore/bindings | |
parent | fc38d325f67d0fc26fd82125299088a790627d31 (diff) | |
download | external_webkit-76acb199cbd556feceab5dd95a6dddddac11b421.zip external_webkit-76acb199cbd556feceab5dd95a6dddddac11b421.tar.gz external_webkit-76acb199cbd556feceab5dd95a6dddddac11b421.tar.bz2 |
Merge webkit.org at r58033 : Resolve conflicts due to navigator.connection
Some V8 bindings files have been removed now that more of the bindings are
auto-generated. Android has some modifications due to the addition of
navigator.connection, which causes conflicts. However, we can safely delete
these files.
Change-Id: I7188894a3d1dbe380eae7e2cc18409836ce8cafc
Diffstat (limited to 'WebCore/bindings')
-rw-r--r-- | WebCore/bindings/v8/DOMObjectsInclude.h | 303 | ||||
-rw-r--r-- | WebCore/bindings/v8/DerivedSourcesAllInOne.cpp | 443 | ||||
-rw-r--r-- | WebCore/bindings/v8/V8Index.cpp | 488 | ||||
-rw-r--r-- | WebCore/bindings/v8/V8Index.h | 691 |
4 files changed, 0 insertions, 1925 deletions
diff --git a/WebCore/bindings/v8/DOMObjectsInclude.h b/WebCore/bindings/v8/DOMObjectsInclude.h deleted file mode 100644 index 6cffa27..0000000 --- a/WebCore/bindings/v8/DOMObjectsInclude.h +++ /dev/null @@ -1,303 +0,0 @@ -/* - * Copyright (C) 2009 Google Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef DOMObjectsInclude_h -#define DOMObjectsInclude_h - -#include "Attr.h" -#include "BarInfo.h" -#include "BeforeLoadEvent.h" -#include "Blob.h" -#include "WebGLActiveInfo.h" -#include "WebGLArray.h" -#include "WebGLArrayBuffer.h" -#include "WebGLBuffer.h" -#include "WebGLByteArray.h" -#include "WebGLFloatArray.h" -#include "WebGLFramebuffer.h" -#include "CanvasGradient.h" -#include "WebGLIntArray.h" -#include "CanvasObject.h" -#include "CanvasPattern.h" -#include "CanvasPixelArray.h" -#include "WebGLProgram.h" -#include "WebGLRenderbuffer.h" -#include "CanvasRenderingContext.h" -#include "CanvasRenderingContext2D.h" -#include "WebGLRenderingContext.h" -#include "WebGLShader.h" -#include "WebGLShortArray.h" -#include "WebGLUnsignedByteArray.h" -#include "WebGLUnsignedIntArray.h" -#include "WebGLUnsignedShortArray.h" -#include "CanvasStyle.h" -#include "WebGLTexture.h" -#include "CharacterData.h" -#include "ClientRect.h" -#include "ClientRectList.h" -#include "Clipboard.h" -#include "CompositionEvent.h" -#include "Console.h" -#include "Counter.h" -#include "CSSCharsetRule.h" -#include "CSSFontFaceRule.h" -#include "CSSImportRule.h" -#include "CSSMediaRule.h" -#include "CSSPageRule.h" -#include "CSSRule.h" -#include "CSSRuleList.h" -#include "CSSStyleDeclaration.h" -#include "CSSStyleRule.h" -#include "CSSStyleSheet.h" -#include "CSSValueList.h" -#include "CSSVariablesDeclaration.h" -#include "CSSVariablesRule.h" -#include "DocumentType.h" -#include "DocumentFragment.h" -#include "DOMCoreException.h" -#include "DOMImplementation.h" -#include "DOMParser.h" -#include "DOMSelection.h" -#include "DOMWindow.h" -#include "Entity.h" -#include "ErrorEvent.h" -#include "EventListener.h" -#include "EventTarget.h" -#include "Event.h" -#include "EventException.h" -#include "ExceptionCode.h" -#include "File.h" -#include "FileList.h" -#include "Frame.h" -#include "FrameLoader.h" -#include "FrameTree.h" -#include "History.h" -#include "HTMLNames.h" -#include "HTMLDocument.h" -#include "HTMLElement.h" -#include "HTMLImageElement.h" -#include "HTMLInputElement.h" -#include "HTMLSelectElement.h" -#include "HTMLOptionsCollection.h" -#include "ImageData.h" -#include "KeyboardEvent.h" -#include "Location.h" -#include "Media.h" -#include "MediaError.h" -#include "MediaList.h" -#include "MediaPlayer.h" -#include "MessageChannel.h" -#include "MessageEvent.h" -#include "MessagePort.h" -#include "MimeTypeArray.h" -#include "MouseEvent.h" -#include "MutationEvent.h" -#include "Navigator.h" // for MimeTypeArray -#include "NodeFilter.h" -#include "Notation.h" -#include "NodeList.h" -#include "NodeIterator.h" -#include "OverflowEvent.h" -#include "Page.h" -#include "PageTransitionEvent.h" -#include "Plugin.h" -#include "PluginArray.h" -#include "PopStateEvent.h" -#include "ProcessingInstruction.h" -#include "ProgressEvent.h" -#include "Range.h" -#include "RangeException.h" -#include "Rect.h" -#include "RGBColor.h" -#include "Screen.h" -#include "ScriptExecutionContext.h" -#include "SecurityOrigin.h" -#include "Settings.h" -#include "StyleSheet.h" -#include "StyleSheetList.h" -#include "TextEvent.h" -#include "TextMetrics.h" -#include "TimeRanges.h" -#include "TreeWalker.h" -#include "V8AbstractEventListener.h" -#include "V8CustomEventListener.h" -#include "V8DOMWindow.h" -#include "V8HTMLElement.h" -#include "V8LazyEventListener.h" -#include "V8NodeFilterCondition.h" -#include "ValidityState.h" -#include "WebKitAnimationEvent.h" -#include "WebKitCSSKeyframeRule.h" -#include "WebKitCSSKeyframesRule.h" -#include "WebKitCSSMatrix.h" -#include "WebKitCSSTransformValue.h" -#include "WebKitPoint.h" -#include "WebKitTransitionEvent.h" -#include "WheelEvent.h" -#include "XMLHttpRequest.h" -#include "XMLHttpRequestException.h" -#include "XMLHttpRequestProgressEvent.h" -#include "XMLHttpRequestUpload.h" -#include "XMLSerializer.h" - -#if ENABLE(OFFLINE_WEB_APPLICATIONS) -#include "DOMApplicationCache.h" -#endif - -#if ENABLE(DATABASE) -#include "Database.h" -#include "SQLTransaction.h" -#include "SQLResultSet.h" -#include "SQLResultSetRowList.h" -#endif // DATABASE - -#if ENABLE(DATAGRID) -#include "DataGridColumn.h" -#include "DataGridColumnList.h" -#endif // DATAGRID - -#if ENABLE(DOM_STORAGE) -#include "Storage.h" -#include "StorageEvent.h" -#endif // DOM_STORAGE - -#if ENABLE(EVENTSOURCE) -#include "EventSource.h" -#endif // EVENTSOURCE - -// GEOLOCATION -#include "Coordinates.h" -#include "Geolocation.h" -#include "Geoposition.h" -#include "PositionError.h" - -#if ENABLE(INDEXED_DATABASE) -#include "IDBDatabaseError.h" -#include "IDBDatabaseException.h" -#include "IDBRequest.h" -#include "IndexedDatabaseRequest.h" -#endif // DATABASE - -#if ENABLE(SVG) -#include "SVGAngle.h" -#include "SVGAnimatedPoints.h" -#include "SVGColor.h" -#include "SVGElement.h" -#include "SVGElementInstance.h" -#include "SVGElementInstanceList.h" -#include "SVGException.h" -#include "SVGLength.h" -#include "SVGLengthList.h" -#include "SVGNumberList.h" -#include "SVGPaint.h" -#include "SVGPathSeg.h" -#include "SVGPathSegArc.h" -#include "SVGPathSegClosePath.h" -#include "SVGPathSegCurvetoCubic.h" -#include "SVGPathSegCurvetoCubicSmooth.h" -#include "SVGPathSegCurvetoQuadratic.h" -#include "SVGPathSegCurvetoQuadraticSmooth.h" -#include "SVGPathSegLineto.h" -#include "SVGPathSegLinetoHorizontal.h" -#include "SVGPathSegLinetoVertical.h" -#include "SVGPathSegList.h" -#include "SVGPathSegMoveto.h" -#include "SVGPointList.h" -#include "SVGPreserveAspectRatio.h" -#include "SVGRenderingIntent.h" -#include "SVGStringList.h" -#include "SVGTransform.h" -#include "SVGTransformList.h" -#include "SVGUnitTypes.h" -#include "SVGURIReference.h" -#include "SVGZoomEvent.h" -#include "V8SVGPODTypeWrapper.h" -#endif // SVG - -#if PLATFORM(ANDROID) -#include "Connection.h" -#endif - -#if ENABLE(WEB_SOCKETS) -#include "WebSocket.h" -#endif - -#if ENABLE(WORKERS) -#include "AbstractWorker.h" -#include "DedicatedWorkerContext.h" -#include "Worker.h" -#include "WorkerContext.h" -#include "WorkerLocation.h" -#include "WorkerNavigator.h" -#endif // WORKERS - -#if ENABLE(SHARED_WORKERS) -#include "SharedWorker.h" -#include "SharedWorkerContext.h" -#endif // SHARED_WORKERS - -#if ENABLE(NOTIFICATIONS) -#include "Notification.h" -#include "NotificationCenter.h" -#endif // NOTIFICATIONS - -#if ENABLE(XPATH) -#include "XPathEvaluator.h" -#include "XPathException.h" -#include "XPathExpression.h" -#include "XPathNSResolver.h" -#include "XPathResult.h" -#endif // XPATH - -#if ENABLE(XSLT) -#include "XSLTProcessor.h" -#endif // XSLT - -#if ENABLE(INSPECTOR) -#include "InjectedScriptHost.h" -#include "InspectorBackend.h" -#include "InspectorFrontendHost.h" -#endif // INSPECTOR - -#if ENABLE(TOUCH_EVENTS) -#include "Touch.h" -#include "TouchEvent.h" -#include "TouchList.h" -#endif - -namespace WebCore { - - // A helper class for undetectable document.all - class HTMLAllCollection : public HTMLCollection { - }; - -} // namespace WebCore - -#endif // DOMObjectsInclude_h diff --git a/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp b/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp deleted file mode 100644 index 1768980..0000000 --- a/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp +++ /dev/null @@ -1,443 +0,0 @@ -/* - * Copyright (c) 2009, Google Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -// This source file coalesces the V8 derived sources into a single object file to -// reduce bloat and allow us to link release builds on 32-bit Windows. - -// Require explicit conversion to AtomicString. This helps catch cases where -// the generated bindings cause an expensive implicit conversion. -#define NO_IMPLICIT_ATOMICSTRING - -#include "bindings/V8Attr.cpp" -#include "bindings/V8BarInfo.cpp" -#include "bindings/V8BeforeLoadEvent.cpp" -#include "bindings/V8Blob.cpp" -#include "bindings/V8WebGLActiveInfo.cpp" -#include "bindings/V8WebGLArray.cpp" -#include "bindings/V8WebGLArrayBuffer.cpp" -#include "bindings/V8WebGLBuffer.cpp" -#include "bindings/V8WebGLByteArray.cpp" -#include "bindings/V8WebGLContextAttributes.cpp" -#include "bindings/V8WebGLFloatArray.cpp" -#include "bindings/V8WebGLFramebuffer.cpp" -#include "bindings/V8CanvasGradient.cpp" -#include "bindings/V8WebGLIntArray.cpp" -#include "bindings/V8CanvasPattern.cpp" -#include "bindings/V8CanvasPixelArray.cpp" -#include "bindings/V8WebGLProgram.cpp" -#include "bindings/V8WebGLRenderbuffer.cpp" -#include "bindings/V8CanvasRenderingContext.cpp" -#include "bindings/V8CanvasRenderingContext2D.cpp" -#include "bindings/V8WebGLRenderingContext.cpp" -#include "bindings/V8WebGLShader.cpp" -#include "bindings/V8WebGLShortArray.cpp" -#include "bindings/V8WebGLTexture.cpp" -#include "bindings/V8WebGLUniformLocation.cpp" -#include "bindings/V8WebGLUnsignedByteArray.cpp" -#include "bindings/V8WebGLUnsignedIntArray.cpp" -#include "bindings/V8WebGLUnsignedShortArray.cpp" -#include "bindings/V8CDATASection.cpp" -#include "bindings/V8CharacterData.cpp" -#include "bindings/V8ClientRect.cpp" -#include "bindings/V8ClientRectList.cpp" -#include "bindings/V8Clipboard.cpp" -#include "bindings/V8Comment.cpp" -#include "bindings/V8CompositionEvent.cpp" -// ANDROID -// Temporary modification - will not be upstreamed -#include "bindings/V8Connection.cpp" -#include "bindings/V8Console.cpp" -#include "bindings/V8Coordinates.cpp" -#include "bindings/V8Counter.cpp" -#include "bindings/V8CSSCharsetRule.cpp" -#include "bindings/V8CSSFontFaceRule.cpp" -#include "bindings/V8CSSImportRule.cpp" -#include "bindings/V8CSSMediaRule.cpp" -#include "bindings/V8CSSPageRule.cpp" -#include "bindings/V8CSSPrimitiveValue.cpp" -#include "bindings/V8CSSRule.cpp" -#include "bindings/V8CSSRuleList.cpp" -#include "bindings/V8CSSStyleDeclaration.cpp" -#include "bindings/V8CSSStyleRule.cpp" -#include "bindings/V8CSSStyleSheet.cpp" -#include "bindings/V8CSSValue.cpp" -#include "bindings/V8CSSValueList.cpp" -#include "bindings/V8CSSVariablesDeclaration.cpp" -#include "bindings/V8CSSVariablesRule.cpp" -#include "bindings/V8DataGridColumn.cpp" -#include "bindings/V8DataGridColumnList.cpp" -#include "bindings/V8Document.cpp" -#include "bindings/V8DocumentFragment.cpp" -#include "bindings/V8DocumentType.cpp" -#include "bindings/V8DOMCoreException.cpp" -#include "bindings/V8DOMImplementation.cpp" -#include "bindings/V8DOMParser.cpp" -#include "bindings/V8DOMSelection.cpp" -#include "bindings/V8DOMWindow.cpp" -#include "bindings/V8Element.cpp" -#include "bindings/V8Entity.cpp" -#include "bindings/V8EntityReference.cpp" -#include "bindings/V8ErrorEvent.cpp" -#include "bindings/V8Event.cpp" -#include "bindings/V8EventException.cpp" -#include "bindings/V8File.cpp" -#include "bindings/V8FileList.cpp" -#include "bindings/V8Geolocation.cpp" -#include "bindings/V8Geoposition.cpp" -#include "bindings/V8History.cpp" -#include "bindings/V8HTMLAllCollection.cpp" -#include "bindings/V8HTMLAnchorElement.cpp" -#include "bindings/V8HTMLAppletElement.cpp" -#include "bindings/V8HTMLAreaElement.cpp" -#include "bindings/V8HTMLAudioElement.cpp" -#include "bindings/V8HTMLBaseElement.cpp" -#include "bindings/V8HTMLBaseFontElement.cpp" -#include "bindings/V8HTMLBlockquoteElement.cpp" -#include "bindings/V8HTMLBodyElement.cpp" -#include "bindings/V8HTMLBRElement.cpp" -#include "bindings/V8HTMLButtonElement.cpp" -#include "bindings/V8HTMLCanvasElement.cpp" -#include "bindings/V8HTMLCollection.cpp" -#include "bindings/V8HTMLDataGridCellElement.cpp" -#include "bindings/V8HTMLDataGridColElement.cpp" -#include "bindings/V8HTMLDataGridElement.cpp" -#include "bindings/V8HTMLDataGridRowElement.cpp" -#include "bindings/V8HTMLDirectoryElement.cpp" -#include "bindings/V8HTMLDivElement.cpp" -#include "bindings/V8HTMLDListElement.cpp" -#include "bindings/V8HTMLDocument.cpp" -#include "bindings/V8HTMLElement.cpp" -#include "bindings/V8HTMLEmbedElement.cpp" -#include "bindings/V8HTMLFieldSetElement.cpp" -#include "bindings/V8HTMLFontElement.cpp" -#include "bindings/V8HTMLFormElement.cpp" -#include "bindings/V8HTMLFrameElement.cpp" -#include "bindings/V8HTMLFrameSetElement.cpp" -#include "bindings/V8HTMLHeadElement.cpp" -#include "bindings/V8HTMLHeadingElement.cpp" -#include "bindings/V8HTMLHRElement.cpp" -#include "bindings/V8HTMLHtmlElement.cpp" -#include "bindings/V8HTMLIFrameElement.cpp" -#include "bindings/V8HTMLImageElement.cpp" -#include "bindings/V8HTMLInputElement.cpp" -#include "bindings/V8HTMLIsIndexElement.cpp" -#include "bindings/V8HTMLLabelElement.cpp" -#include "bindings/V8HTMLLegendElement.cpp" -#include "bindings/V8HTMLLIElement.cpp" -#include "bindings/V8HTMLLinkElement.cpp" -#include "bindings/V8HTMLMapElement.cpp" -#include "bindings/V8HTMLMarqueeElement.cpp" -#include "bindings/V8HTMLMediaElement.cpp" -#include "bindings/V8HTMLMenuElement.cpp" -#include "bindings/V8HTMLMetaElement.cpp" -#include "bindings/V8HTMLModElement.cpp" -#include "bindings/V8HTMLObjectElement.cpp" -#include "bindings/V8HTMLOListElement.cpp" -#include "bindings/V8HTMLOptGroupElement.cpp" -#include "bindings/V8HTMLOptionElement.cpp" -#include "bindings/V8HTMLOptionsCollection.cpp" -#include "bindings/V8HTMLParagraphElement.cpp" -#include "bindings/V8HTMLParamElement.cpp" -#include "bindings/V8HTMLPreElement.cpp" -#include "bindings/V8HTMLQuoteElement.cpp" -#include "bindings/V8HTMLScriptElement.cpp" -#include "bindings/V8HTMLSelectElement.cpp" -#include "bindings/V8HTMLSourceElement.cpp" -#include "bindings/V8HTMLStyleElement.cpp" -#include "bindings/V8HTMLTableCaptionElement.cpp" -#include "bindings/V8HTMLTableCellElement.cpp" -#include "bindings/V8HTMLTableColElement.cpp" -#include "bindings/V8HTMLTableElement.cpp" -#include "bindings/V8HTMLTableRowElement.cpp" -#include "bindings/V8HTMLTableSectionElement.cpp" -#include "bindings/V8HTMLTextAreaElement.cpp" -#include "bindings/V8HTMLTitleElement.cpp" -#include "bindings/V8HTMLUListElement.cpp" -#include "bindings/V8HTMLVideoElement.cpp" -#include "bindings/V8ImageData.cpp" -#include "bindings/V8KeyboardEvent.cpp" -#include "bindings/V8Location.cpp" -#include "bindings/V8Media.cpp" -#include "bindings/V8MediaError.cpp" -#include "bindings/V8MediaList.cpp" -#include "bindings/V8MessageChannel.cpp" -#include "bindings/V8MessageEvent.cpp" -#include "bindings/V8MessagePort.cpp" -#include "bindings/V8MimeType.cpp" -#include "bindings/V8MimeTypeArray.cpp" -#include "bindings/V8MouseEvent.cpp" -#include "bindings/V8MutationEvent.cpp" -#include "bindings/V8NamedNodeMap.cpp" -#include "bindings/V8Navigator.cpp" -#include "bindings/V8Node.cpp" -#include "bindings/V8NodeFilter.cpp" -#include "bindings/V8NodeIterator.cpp" -#include "bindings/V8NodeList.cpp" -#include "bindings/V8Notation.cpp" -#include "bindings/V8Notification.cpp" -#include "bindings/V8NotificationCenter.cpp" -#include "bindings/V8OverflowEvent.cpp" -#include "bindings/V8PageTransitionEvent.cpp" -#include "bindings/V8Plugin.cpp" -#include "bindings/V8PluginArray.cpp" -#include "bindings/V8PopStateEvent.cpp" -#include "bindings/V8PositionError.cpp" -#include "bindings/V8ProcessingInstruction.cpp" -#include "bindings/V8ProgressEvent.cpp" -#include "bindings/V8Range.cpp" -#include "bindings/V8RangeException.cpp" -#include "bindings/V8Rect.cpp" -#include "bindings/V8RGBColor.cpp" -#include "bindings/V8Screen.cpp" -#include "bindings/V8StyleSheet.cpp" -#include "bindings/V8StyleSheetList.cpp" -#include "bindings/V8Text.cpp" -#include "bindings/V8TextEvent.cpp" -#include "bindings/V8TextMetrics.cpp" -#include "bindings/V8TimeRanges.cpp" -#include "bindings/V8Touch.cpp" -#include "bindings/V8TouchEvent.cpp" -#include "bindings/V8TouchList.cpp" -#include "bindings/V8TreeWalker.cpp" -#include "bindings/V8UIEvent.cpp" -#include "bindings/V8ValidityState.cpp" -#include "bindings/V8WebKitAnimationEvent.cpp" -#include "bindings/V8WebKitCSSKeyframeRule.cpp" -#include "bindings/V8WebKitCSSKeyframesRule.cpp" -#include "bindings/V8WebKitCSSMatrix.cpp" -#include "bindings/V8WebKitCSSTransformValue.cpp" -#include "bindings/V8WebKitPoint.cpp" -#include "bindings/V8WebKitTransitionEvent.cpp" -#include "bindings/V8WheelEvent.cpp" -#include "bindings/V8XMLHttpRequest.cpp" -#include "bindings/V8XMLHttpRequestException.cpp" -#include "bindings/V8XMLHttpRequestProgressEvent.cpp" -#include "bindings/V8XMLHttpRequestUpload.cpp" -#include "bindings/V8XMLSerializer.cpp" - -#if ENABLE(OFFLINE_WEB_APPLICATIONS) -#include "bindings/V8DOMApplicationCache.cpp" -#endif - -#if ENABLE(DOM_STORAGE) -#include "bindings/V8Storage.cpp" -#include "bindings/V8StorageEvent.cpp" -#endif - -#if ENABLE(WEB_SOCKETS) -#include "bindings/V8WebSocket.cpp" -#endif - -#if ENABLE(DATABASE) -#include "bindings/V8Database.cpp" -#include "bindings/V8SQLError.cpp" -#include "bindings/V8SQLResultSet.cpp" -#include "bindings/V8SQLResultSetRowList.cpp" -#include "bindings/V8SQLTransaction.cpp" -#endif - -#if ENABLE(INDEXED_DATABASE) -#include "bindings/V8IDBDatabaseError.cpp" -#include "bindings/V8IDBDatabaseException.cpp" -#include "bindings/V8IDBRequest.cpp" -#include "bindings/V8IndexedDatabaseRequest.cpp" -#endif - -#if ENABLE(WORKERS) -#include "bindings/V8AbstractWorker.cpp" -#include "bindings/V8DedicatedWorkerContext.cpp" -#include "bindings/V8Worker.cpp" -#include "bindings/V8WorkerContext.cpp" -#include "bindings/V8WorkerLocation.cpp" -#include "bindings/V8WorkerNavigator.cpp" -#endif - -#if ENABLE(SHARED_WORKERS) -#include "bindings/V8SharedWorker.cpp" -#include "bindings/V8SharedWorkerContext.cpp" -#endif - -#if ENABLE(SVG) -#include "bindings/V8SVGAElement.cpp" -#include "bindings/V8SVGAltGlyphElement.cpp" -#include "bindings/V8SVGAngle.cpp" -#include "bindings/V8SVGAnimateColorElement.cpp" -#include "bindings/V8SVGAnimatedAngle.cpp" -#include "bindings/V8SVGAnimatedBoolean.cpp" -#include "bindings/V8SVGAnimatedEnumeration.cpp" -#include "bindings/V8SVGAnimatedInteger.cpp" -#include "bindings/V8SVGAnimatedLength.cpp" -#include "bindings/V8SVGAnimatedLengthList.cpp" -#include "bindings/V8SVGAnimatedNumber.cpp" -#include "bindings/V8SVGAnimatedNumberList.cpp" -#include "bindings/V8SVGAnimatedPoints.cpp" -#include "bindings/V8SVGAnimatedPreserveAspectRatio.cpp" -#include "bindings/V8SVGAnimatedRect.cpp" -#include "bindings/V8SVGAnimatedString.cpp" -#include "bindings/V8SVGAnimatedTransformList.cpp" -#include "bindings/V8SVGAnimateElement.cpp" -#include "bindings/V8SVGAnimateTransformElement.cpp" -#include "bindings/V8SVGAnimationElement.cpp" -#include "bindings/V8SVGCircleElement.cpp" -#include "bindings/V8SVGClipPathElement.cpp" -#include "bindings/V8SVGColor.cpp" -#include "bindings/V8SVGComponentTransferFunctionElement.cpp" -#include "bindings/V8SVGCursorElement.cpp" -#include "bindings/V8SVGDefsElement.cpp" -#include "bindings/V8SVGDescElement.cpp" -#include "bindings/V8SVGDocument.cpp" -#include "bindings/V8SVGElement.cpp" -#include "bindings/V8SVGElementInstance.cpp" -#include "bindings/V8SVGElementInstanceList.cpp" -#include "bindings/V8SVGEllipseElement.cpp" -#include "bindings/V8SVGException.cpp" -#include "bindings/V8SVGFEBlendElement.cpp" -#include "bindings/V8SVGFEColorMatrixElement.cpp" -#include "bindings/V8SVGFEComponentTransferElement.cpp" -#include "bindings/V8SVGFECompositeElement.cpp" -#include "bindings/V8SVGFEDiffuseLightingElement.cpp" -#include "bindings/V8SVGFEDisplacementMapElement.cpp" -#include "bindings/V8SVGFEDistantLightElement.cpp" -#include "bindings/V8SVGFEFloodElement.cpp" -#include "bindings/V8SVGFEFuncAElement.cpp" -#include "bindings/V8SVGFEFuncBElement.cpp" -#include "bindings/V8SVGFEFuncGElement.cpp" -#include "bindings/V8SVGFEFuncRElement.cpp" -#include "bindings/V8SVGFEGaussianBlurElement.cpp" -#include "bindings/V8SVGFEImageElement.cpp" -#include "bindings/V8SVGFEMergeElement.cpp" -#include "bindings/V8SVGFEMergeNodeElement.cpp" -#include "bindings/V8SVGFEMorphologyElement.cpp" -#include "bindings/V8SVGFEOffsetElement.cpp" -#include "bindings/V8SVGFEPointLightElement.cpp" -#include "bindings/V8SVGFESpecularLightingElement.cpp" -#include "bindings/V8SVGFESpotLightElement.cpp" -#include "bindings/V8SVGFETileElement.cpp" -#include "bindings/V8SVGFETurbulenceElement.cpp" -#include "bindings/V8SVGFilterElement.cpp" -#include "bindings/V8SVGFontElement.cpp" -#include "bindings/V8SVGFontFaceElement.cpp" -#include "bindings/V8SVGFontFaceFormatElement.cpp" -#include "bindings/V8SVGFontFaceNameElement.cpp" -#include "bindings/V8SVGFontFaceSrcElement.cpp" -#include "bindings/V8SVGFontFaceUriElement.cpp" -#include "bindings/V8SVGForeignObjectElement.cpp" -#include "bindings/V8SVGGElement.cpp" -#include "bindings/V8SVGGlyphElement.cpp" -#include "bindings/V8SVGGradientElement.cpp" -#include "bindings/V8SVGImageElement.cpp" -#include "bindings/V8SVGLength.cpp" -#include "bindings/V8SVGLengthList.cpp" -#include "bindings/V8SVGLinearGradientElement.cpp" -#include "bindings/V8SVGLineElement.cpp" -#include "bindings/V8SVGMarkerElement.cpp" -#include "bindings/V8SVGMaskElement.cpp" -#include "bindings/V8SVGMatrix.cpp" -#include "bindings/V8SVGMetadataElement.cpp" -#include "bindings/V8SVGMissingGlyphElement.cpp" -#include "bindings/V8SVGNumber.cpp" -#include "bindings/V8SVGNumberList.cpp" -#include "bindings/V8SVGPaint.cpp" -#include "bindings/V8SVGPathElement.cpp" -#include "bindings/V8SVGPathSeg.cpp" -#include "bindings/V8SVGPathSegArcAbs.cpp" -#include "bindings/V8SVGPathSegArcRel.cpp" -#include "bindings/V8SVGPathSegClosePath.cpp" -#include "bindings/V8SVGPathSegCurvetoCubicAbs.cpp" -#include "bindings/V8SVGPathSegCurvetoCubicRel.cpp" -#include "bindings/V8SVGPathSegCurvetoCubicSmoothAbs.cpp" -#include "bindings/V8SVGPathSegCurvetoCubicSmoothRel.cpp" -#include "bindings/V8SVGPathSegCurvetoQuadraticAbs.cpp" -#include "bindings/V8SVGPathSegCurvetoQuadraticRel.cpp" -#include "bindings/V8SVGPathSegCurvetoQuadraticSmoothAbs.cpp" -#include "bindings/V8SVGPathSegCurvetoQuadraticSmoothRel.cpp" -#include "bindings/V8SVGPathSegLinetoAbs.cpp" -#include "bindings/V8SVGPathSegLinetoHorizontalAbs.cpp" -#include "bindings/V8SVGPathSegLinetoHorizontalRel.cpp" -#include "bindings/V8SVGPathSegLinetoRel.cpp" -#include "bindings/V8SVGPathSegLinetoVerticalAbs.cpp" -#include "bindings/V8SVGPathSegLinetoVerticalRel.cpp" -#include "bindings/V8SVGPathSegList.cpp" -#include "bindings/V8SVGPathSegMovetoAbs.cpp" -#include "bindings/V8SVGPathSegMovetoRel.cpp" -#include "bindings/V8SVGPatternElement.cpp" -#include "bindings/V8SVGPoint.cpp" -#include "bindings/V8SVGPointList.cpp" -#include "bindings/V8SVGPolygonElement.cpp" -#include "bindings/V8SVGPolylineElement.cpp" -#include "bindings/V8SVGPreserveAspectRatio.cpp" -#include "bindings/V8SVGRadialGradientElement.cpp" -#include "bindings/V8SVGRect.cpp" -#include "bindings/V8SVGRectElement.cpp" -#include "bindings/V8SVGRenderingIntent.cpp" -#include "bindings/V8SVGScriptElement.cpp" -#include "bindings/V8SVGSetElement.cpp" -#include "bindings/V8SVGStopElement.cpp" -#include "bindings/V8SVGStringList.cpp" -#include "bindings/V8SVGStyleElement.cpp" -#include "bindings/V8SVGSVGElement.cpp" -#include "bindings/V8SVGSwitchElement.cpp" -#include "bindings/V8SVGSymbolElement.cpp" -#include "bindings/V8SVGTextContentElement.cpp" -#include "bindings/V8SVGTextElement.cpp" -#include "bindings/V8SVGTextPathElement.cpp" -#include "bindings/V8SVGTextPositioningElement.cpp" -#include "bindings/V8SVGTitleElement.cpp" -#include "bindings/V8SVGTransform.cpp" -#include "bindings/V8SVGTransformList.cpp" -#include "bindings/V8SVGTRefElement.cpp" -#include "bindings/V8SVGTSpanElement.cpp" -#include "bindings/V8SVGUnitTypes.cpp" -#include "bindings/V8SVGUseElement.cpp" -#include "bindings/V8SVGViewElement.cpp" -#include "bindings/V8SVGZoomEvent.cpp" -#endif - -#if ENABLE(XPATH) -#include "bindings/V8XPathEvaluator.cpp" -#include "bindings/V8XPathException.cpp" -#include "bindings/V8XPathExpression.cpp" -#include "bindings/V8XPathNSResolver.cpp" -#include "bindings/V8XPathResult.cpp" -#endif - -#if ENABLE(XSLT) -#include "bindings/V8XSLTProcessor.cpp" -#endif - -#if ENABLE(INSPECTOR) -#include "bindings/V8InjectedScriptHost.cpp" -#include "bindings/V8InspectorBackend.cpp" -#include "bindings/V8InspectorFrontendHost.cpp" -#endif - -#if ENABLE(EVENTSOURCE) -#include "bindings/V8EventSource.cpp" -#endif diff --git a/WebCore/bindings/v8/V8Index.cpp b/WebCore/bindings/v8/V8Index.cpp deleted file mode 100644 index c451dfb..0000000 --- a/WebCore/bindings/v8/V8Index.cpp +++ /dev/null @@ -1,488 +0,0 @@ -/* - * Copyright (C) 2008, 2009 Google Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "config.h" -#include "V8Index.h" - -#include "V8Attr.h" -#include "V8BarInfo.h" -#include "V8BeforeLoadEvent.h" -#include "V8Blob.h" -#include "V8WebGLActiveInfo.h" -#include "V8CanvasRenderingContext.h" -#include "V8CanvasRenderingContext2D.h" -#include "V8CanvasGradient.h" -#include "V8CanvasPattern.h" -#include "V8CanvasPixelArray.h" -#include "V8CDATASection.h" -#include "V8CharacterData.h" -#include "V8ClientRect.h" -#include "V8ClientRectList.h" -#include "V8Clipboard.h" -#include "V8Comment.h" -#include "V8CompositionEvent.h" -#include "V8Console.h" -#include "V8Counter.h" -#include "V8CSSStyleDeclaration.h" -#include "V8CSSRule.h" -#include "V8CSSStyleRule.h" -#include "V8CSSCharsetRule.h" -#include "V8CSSImportRule.h" -#include "V8CSSMediaRule.h" -#include "V8CSSFontFaceRule.h" -#include "V8CSSPageRule.h" -#include "V8CSSRuleList.h" -#include "V8CSSPrimitiveValue.h" -#include "V8CSSValue.h" -#include "V8CSSValueList.h" -#include "V8CSSStyleSheet.h" -#include "V8CSSVariablesDeclaration.h" -#include "V8CSSVariablesRule.h" -#include "V8DataGridColumn.h" -#include "V8DataGridColumnList.h" -#include "V8Document.h" -#include "V8DocumentFragment.h" -#include "V8DocumentType.h" -#include "V8Element.h" -#include "V8Entity.h" -#include "V8EntityReference.h" -#include "V8File.h" -#include "V8FileList.h" -#include "V8History.h" -#include "V8HTMLAllCollection.h" -#include "V8HTMLCanvasElement.h" -#include "V8HTMLCollection.h" -#include "V8HTMLDocument.h" -#include "V8HTMLElement.h" -#include "V8HTMLOptionsCollection.h" -#include "V8HTMLAnchorElement.h" -#include "V8HTMLAppletElement.h" -#include "V8HTMLAreaElement.h" -#include "V8HTMLBaseElement.h" -#include "V8HTMLBaseFontElement.h" -#include "V8HTMLBlockquoteElement.h" -#include "V8HTMLBodyElement.h" -#include "V8HTMLBRElement.h" -#include "V8HTMLButtonElement.h" -#include "V8HTMLCanvasElement.h" -#include "V8HTMLModElement.h" -#include "V8HTMLDataGridCellElement.h" -#include "V8HTMLDataGridColElement.h" -#include "V8HTMLDataGridElement.h" -#include "V8HTMLDataGridRowElement.h" -#include "V8HTMLDirectoryElement.h" -#include "V8HTMLDivElement.h" -#include "V8HTMLDListElement.h" -#include "V8HTMLEmbedElement.h" -#include "V8HTMLFieldSetElement.h" -#include "V8HTMLFormElement.h" -#include "V8HTMLFontElement.h" -#include "V8HTMLFrameElement.h" -#include "V8HTMLFrameSetElement.h" -#include "V8HTMLHeadingElement.h" -#include "V8HTMLHeadElement.h" -#include "V8HTMLHRElement.h" -#include "V8HTMLHtmlElement.h" -#include "V8HTMLIFrameElement.h" -#include "V8HTMLImageElement.h" -#include "V8HTMLImageElementConstructor.h" -#include "V8HTMLInputElement.h" -#include "V8HTMLIsIndexElement.h" -#include "V8HTMLLabelElement.h" -#include "V8HTMLLegendElement.h" -#include "V8HTMLLIElement.h" -#include "V8HTMLLinkElement.h" -#include "V8HTMLMapElement.h" -#include "V8HTMLMarqueeElement.h" -#include "V8HTMLMenuElement.h" -#include "V8HTMLMetaElement.h" -#include "V8HTMLObjectElement.h" -#include "V8HTMLOListElement.h" -#include "V8HTMLOptGroupElement.h" -#include "V8HTMLOptionElement.h" -#include "V8HTMLOptionElementConstructor.h" -#include "V8HTMLParagraphElement.h" -#include "V8HTMLParamElement.h" -#include "V8HTMLPreElement.h" -#include "V8HTMLQuoteElement.h" -#include "V8HTMLScriptElement.h" -#include "V8HTMLSelectElement.h" -#include "V8HTMLStyleElement.h" -#include "V8HTMLTableCaptionElement.h" -#include "V8HTMLTableColElement.h" -#include "V8HTMLTableElement.h" -#include "V8HTMLTableSectionElement.h" -#include "V8HTMLTableCellElement.h" -#include "V8HTMLTableRowElement.h" -#include "V8HTMLTextAreaElement.h" -#include "V8HTMLTitleElement.h" -#include "V8HTMLUListElement.h" -#include "V8ImageData.h" -#include "V8Media.h" -#include "V8MediaList.h" -#include "V8MessageChannel.h" -#include "V8MessageEvent.h" -#include "V8MessagePort.h" -#include "V8NamedNodeMap.h" -#include "V8Node.h" -#include "V8NodeList.h" -#include "V8NodeFilter.h" -#include "V8Notation.h" -#include "V8PopStateEvent.h" -#include "V8ProcessingInstruction.h" -#include "V8ProgressEvent.h" -#include "V8StyleSheet.h" -#include "V8Text.h" -#include "V8TextEvent.h" -#include "V8Touch.h" -#include "V8TouchEvent.h" -#include "V8TouchList.h" -#include "V8DOMCoreException.h" -#include "V8DOMParser.h" -#include "V8DOMWindow.h" -#include "V8ErrorEvent.h" -#include "V8Event.h" -#include "V8EventException.h" -#include "V8KeyboardEvent.h" -#include "V8MouseEvent.h" -#include "V8ValidityState.h" -#include "V8WebKitAnimationEvent.h" -#include "V8WebKitCSSKeyframeRule.h" -#include "V8WebKitCSSKeyframesRule.h" -#include "V8WebKitCSSMatrix.h" -#include "V8WebKitCSSTransformValue.h" -#include "V8WebKitPoint.h" -#include "V8WebKitTransitionEvent.h" -#include "V8WheelEvent.h" -#include "V8UIEvent.h" -#include "V8MutationEvent.h" -#include "V8OverflowEvent.h" -#include "V8Location.h" -#include "V8Screen.h" -#include "V8DOMSelection.h" -#include "V8Navigator.h" -#include "V8MimeType.h" -#include "V8MimeTypeArray.h" -#include "V8PageTransitionEvent.h" -#include "V8Plugin.h" -#include "V8PluginArray.h" -#include "V8Range.h" -#include "V8RangeException.h" -#include "V8Rect.h" -#include "V8NodeIterator.h" -#include "V8TextMetrics.h" -#include "V8TreeWalker.h" -#include "V8StyleSheetList.h" -#include "V8DOMImplementation.h" -#include "V8XMLHttpRequest.h" -#include "V8XMLHttpRequestException.h" -#include "V8XMLHttpRequestProgressEvent.h" -#include "V8XMLHttpRequestUpload.h" -#include "V8XMLSerializer.h" -#include "V8RGBColor.h" - -#if ENABLE(OFFLINE_WEB_APPLICATIONS) -#include "V8DOMApplicationCache.h" -#endif - -#if ENABLE(DOM_STORAGE) -#include "V8Storage.h" -#include "V8StorageEvent.h" -#endif - -#if ENABLE(SVG_ANIMATION) -#include "V8SVGAnimateColorElement.h" -#include "V8SVGAnimateElement.h" -#include "V8SVGAnimateTransformElement.h" -#include "V8SVGAnimationElement.h" -#include "V8SVGSetElement.h" -#endif - -#if ENABLE(SVG) && ENABLE(FILTERS) -#include "V8SVGComponentTransferFunctionElement.h" -#include "V8SVGFEBlendElement.h" -#include "V8SVGFEColorMatrixElement.h" -#include "V8SVGFEComponentTransferElement.h" -#include "V8SVGFECompositeElement.h" -#include "V8SVGFEDiffuseLightingElement.h" -#include "V8SVGFEDisplacementMapElement.h" -#include "V8SVGFEDistantLightElement.h" -#include "V8SVGFEFloodElement.h" -#include "V8SVGFEFuncAElement.h" -#include "V8SVGFEFuncBElement.h" -#include "V8SVGFEFuncGElement.h" -#include "V8SVGFEFuncRElement.h" -#include "V8SVGFEGaussianBlurElement.h" -#include "V8SVGFEImageElement.h" -#include "V8SVGFEMergeElement.h" -#include "V8SVGFEMergeNodeElement.h" -#include "V8SVGFEMorphologyElement.h" -#include "V8SVGFEOffsetElement.h" -#include "V8SVGFEPointLightElement.h" -#include "V8SVGFESpecularLightingElement.h" -#include "V8SVGFESpotLightElement.h" -#include "V8SVGFETileElement.h" -#include "V8SVGFETurbulenceElement.h" -#include "V8SVGFilterElement.h" -#endif - -#if ENABLE(SVG_FONTS) -#include "V8SVGFontElement.h" -#include "V8SVGFontFaceElement.h" -#include "V8SVGFontFaceFormatElement.h" -#include "V8SVGFontFaceNameElement.h" -#include "V8SVGFontFaceSrcElement.h" -#include "V8SVGFontFaceUriElement.h" -#include "V8SVGMissingGlyphElement.h" -#endif - -#if ENABLE(SVG_FOREIGN_OBJECT) -#include "V8SVGForeignObjectElement.h" -#endif - -#if ENABLE(SVG_USE) -#include "V8SVGUseElement.h" -#endif - -#if ENABLE(SVG) -#include "V8SVGAElement.h" -#include "V8SVGAltGlyphElement.h" -#include "V8SVGCircleElement.h" -#include "V8SVGClipPathElement.h" -#include "V8SVGCursorElement.h" -#include "V8SVGDefsElement.h" -#include "V8SVGDescElement.h" -#include "V8SVGElement.h" -#include "V8SVGEllipseElement.h" -#include "V8SVGException.h" -#include "V8SVGGElement.h" -#include "V8SVGGlyphElement.h" -#include "V8SVGGradientElement.h" -#include "V8SVGImageElement.h" -#include "V8SVGLinearGradientElement.h" -#include "V8SVGLineElement.h" -#include "V8SVGMarkerElement.h" -#include "V8SVGMaskElement.h" -#include "V8SVGMetadataElement.h" -#include "V8SVGPathElement.h" -#include "V8SVGPatternElement.h" -#include "V8SVGPolygonElement.h" -#include "V8SVGPolylineElement.h" -#include "V8SVGRadialGradientElement.h" -#include "V8SVGRectElement.h" -#include "V8SVGScriptElement.h" -#include "V8SVGStopElement.h" -#include "V8SVGStyleElement.h" -#include "V8SVGSVGElement.h" -#include "V8SVGSwitchElement.h" -#include "V8SVGSymbolElement.h" -#include "V8SVGTextContentElement.h" -#include "V8SVGTextElement.h" -#include "V8SVGTextPathElement.h" -#include "V8SVGTextPositioningElement.h" -#include "V8SVGTitleElement.h" -#include "V8SVGTRefElement.h" -#include "V8SVGTSpanElement.h" -#include "V8SVGViewElement.h" -#include "V8SVGAngle.h" -#include "V8SVGAnimatedAngle.h" -#include "V8SVGAnimatedBoolean.h" -#include "V8SVGAnimatedEnumeration.h" -#include "V8SVGAnimatedInteger.h" -#include "V8SVGAnimatedLength.h" -#include "V8SVGAnimatedLengthList.h" -#include "V8SVGAnimatedNumber.h" -#include "V8SVGAnimatedNumberList.h" -#include "V8SVGAnimatedPoints.h" -#include "V8SVGAnimatedPreserveAspectRatio.h" -#include "V8SVGAnimatedRect.h" -#include "V8SVGAnimatedString.h" -#include "V8SVGAnimatedTransformList.h" -#include "V8SVGColor.h" -#include "V8SVGDocument.h" -#include "V8SVGElementInstance.h" -#include "V8SVGElementInstanceList.h" -#include "V8SVGLength.h" -#include "V8SVGLengthList.h" -#include "V8SVGMatrix.h" -#include "V8SVGNumber.h" -#include "V8SVGNumberList.h" -#include "V8SVGPaint.h" -#include "V8SVGPathSeg.h" -#include "V8SVGPathSegArcAbs.h" -#include "V8SVGPathSegArcRel.h" -#include "V8SVGPathSegClosePath.h" -#include "V8SVGPathSegCurvetoCubicAbs.h" -#include "V8SVGPathSegCurvetoCubicRel.h" -#include "V8SVGPathSegCurvetoCubicSmoothAbs.h" -#include "V8SVGPathSegCurvetoCubicSmoothRel.h" -#include "V8SVGPathSegCurvetoQuadraticAbs.h" -#include "V8SVGPathSegCurvetoQuadraticRel.h" -#include "V8SVGPathSegCurvetoQuadraticSmoothAbs.h" -#include "V8SVGPathSegCurvetoQuadraticSmoothRel.h" -#include "V8SVGPathSegLinetoAbs.h" -#include "V8SVGPathSegLinetoHorizontalAbs.h" -#include "V8SVGPathSegLinetoHorizontalRel.h" -#include "V8SVGPathSegLinetoRel.h" -#include "V8SVGPathSegLinetoVerticalAbs.h" -#include "V8SVGPathSegLinetoVerticalRel.h" -#include "V8SVGPathSegList.h" -#include "V8SVGPathSegMovetoAbs.h" -#include "V8SVGPathSegMovetoRel.h" -#include "V8SVGPoint.h" -#include "V8SVGPointList.h" -#include "V8SVGPreserveAspectRatio.h" -#include "V8SVGRect.h" -#include "V8SVGRenderingIntent.h" -#include "V8SVGStringList.h" -#include "V8SVGTransform.h" -#include "V8SVGTransformList.h" -#include "V8SVGUnitTypes.h" -#include "V8SVGZoomEvent.h" -#endif - -#if ENABLE(VIDEO) -#include "V8HTMLAudioElement.h" -#include "V8HTMLAudioElementConstructor.h" -#include "V8HTMLMediaElement.h" -#include "V8HTMLSourceElement.h" -#include "V8HTMLVideoElement.h" -#include "V8MediaError.h" -#include "V8TimeRanges.h" -#endif - -#if ENABLE(WEB_SOCKETS) -#include "V8WebSocket.h" -#endif - -#if ENABLE(WORKERS) -#include "V8AbstractWorker.h" -#include "V8DedicatedWorkerContext.h" -#include "V8Worker.h" -#include "V8WorkerContext.h" -#include "V8WorkerLocation.h" -#include "V8WorkerNavigator.h" -#endif - -#if ENABLE(NOTIFICATIONS) -#include "V8Notification.h" -#include "V8NotificationCenter.h" -#endif - -#if ENABLE(SHARED_WORKERS) -#include "V8SharedWorker.h" -#include "V8SharedWorkerContext.h" -#endif - -#if ENABLE(3D_CANVAS) -#include "V8WebGLRenderingContext.h" -#include "V8WebGLArrayBuffer.h" -#include "V8WebGLArray.h" -#include "V8WebGLByteArray.h" -#include "V8WebGLBuffer.h" -#include "V8WebGLContextAttributes.h" -#include "V8WebGLFloatArray.h" -#include "V8WebGLFramebuffer.h" -#include "V8WebGLIntArray.h" -#include "V8WebGLProgram.h" -#include "V8WebGLRenderbuffer.h" -#include "V8WebGLShader.h" -#include "V8WebGLShortArray.h" -#include "V8WebGLTexture.h" -#include "V8WebGLUniformLocation.h" -#include "V8WebGLUnsignedByteArray.h" -#include "V8WebGLUnsignedIntArray.h" -#include "V8WebGLUnsignedShortArray.h" -#endif - -#if ENABLE(DATABASE) -#include "V8Database.h" -#include "V8SQLError.h" -#include "V8SQLResultSet.h" -#include "V8SQLResultSetRowList.h" -#include "V8SQLTransaction.h" -#endif - -#if ENABLE(INDEXED_DATABASE) -#include "V8IDBDatabaseError.h" -#include "V8IDBDatabaseException.h" -#include "V8IDBRequest.h" -#include "V8IndexedDatabaseRequest.h" -#endif - -#if ENABLE(XPATH) -#include "V8XPathResult.h" -#include "V8XPathException.h" -#include "V8XPathExpression.h" -#include "V8XPathNSResolver.h" -#include "V8XPathEvaluator.h" -#endif - -#if ENABLE(XSLT) -#include "V8XSLTProcessor.h" -#endif - -#if ENABLE(INSPECTOR) -#include "V8InjectedScriptHost.h" -#include "V8InspectorBackend.h" -#include "V8InspectorFrontendHost.h" -#endif - -#if ENABLE(EVENTSOURCE) -#include "V8EventSource.h" -#endif - -// Geolocation -#include "V8Coordinates.h" -#include "V8Geolocation.h" -#include "V8Geoposition.h" -#include "V8PositionError.h" - -#if PLATFORM(ANDROID) -// Temporary modification - will not be upstreamed -#include "V8Connection.h" -#endif // PLATFORM(ANDROID) - -namespace WebCore { - -v8::Persistent<v8::FunctionTemplate> V8ClassIndex::getTemplate(V8WrapperType type) -{ - switch (type) { -#define MAKE_CASE(type, name)\ - case V8ClassIndex::type: return V8##name::GetTemplate(); - WRAPPER_TYPES(MAKE_CASE) -#undef MAKE_CASE - default: - ASSERT_NOT_REACHED(); - return v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New()); - } -} - -} // namespace WebCore diff --git a/WebCore/bindings/v8/V8Index.h b/WebCore/bindings/v8/V8Index.h deleted file mode 100644 index d863d95..0000000 --- a/WebCore/bindings/v8/V8Index.h +++ /dev/null @@ -1,691 +0,0 @@ -/* - * Copyright (C) 2009 Google Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef V8Index_h -#define V8Index_h - -#include <v8.h> - -namespace WebCore { - -static const int v8DOMWrapperTypeIndex = 0; -static const int v8DOMWrapperObjectIndex = 1; -static const int v8DefaultWrapperInternalFieldCount = 2; - -#if ENABLE(DATAGRID) -#define DATAGRID_HTMLELEMENT_TYPES(V) \ - V(HTMLDATAGRIDCELLELEMENT, HTMLDataGridCellElement) \ - V(HTMLDATAGRIDCOLELEMENT, HTMLDataGridColElement) \ - V(HTMLDATAGRIDELEMENT, HTMLDataGridElement) \ - V(HTMLDATAGRIDROWELEMENT, HTMLDataGridRowElement) -#define DATAGRID_NONNODE_TYPES(V) \ - V(DATAGRIDCOLUMN, DataGridColumn) \ - V(DATAGRIDCOLUMNLIST, DataGridColumnList) -#else -#define DATAGRID_HTMLELEMENT_TYPES(V) -#define DATAGRID_NONNODE_TYPES(V) -#endif - -#if ENABLE(VIDEO) -#define VIDEO_HTMLELEMENT_TYPES(V) \ - V(AUDIO, HTMLAudioElementConstructor) \ - V(HTMLAUDIOELEMENT, HTMLAudioElement) \ - V(HTMLMEDIAELEMENT, HTMLMediaElement) \ - V(HTMLSOURCEELEMENT, HTMLSourceElement) \ - V(HTMLVIDEOELEMENT, HTMLVideoElement) -#define VIDEO_NONNODE_TYPES(V) \ - V(MEDIAERROR, MediaError) \ - V(TIMERANGES, TimeRanges) -#else -#define VIDEO_HTMLELEMENT_TYPES(V) -#define VIDEO_NONNODE_TYPES(V) -#endif - -#if ENABLE(WORKERS) -#define WORKER_ACTIVE_OBJECT_WRAPPER_TYPES(V) \ - V(WORKER, Worker) - -#define WORKER_NONNODE_WRAPPER_TYPES(V) \ - V(ABSTRACTWORKER, AbstractWorker) \ - V(DEDICATEDWORKERCONTEXT, DedicatedWorkerContext) \ - V(WORKERCONTEXT, WorkerContext) \ - V(WORKERLOCATION, WorkerLocation) \ - V(WORKERNAVIGATOR, WorkerNavigator) -#else -#define WORKER_ACTIVE_OBJECT_WRAPPER_TYPES(V) -#define WORKER_NONNODE_WRAPPER_TYPES(V) -#endif - -#if ENABLE(EVENTSOURCE) -#define EVENTSOURCE_ACTIVE_OBJECT_WRAPPER_TYPES(V) \ - V(EVENTSOURCE, EventSource) -#else -#define EVENTSOURCE_ACTIVE_OBJECT_WRAPPER_TYPES(V) -#endif - -#if ENABLE(OFFLINE_WEB_APPLICATIONS) -#define APPLICATIONCACHE_NONNODE_WRAPPER_TYPES(V) \ - V(DOMAPPLICATIONCACHE, DOMApplicationCache) -#else -#define APPLICATIONCACHE_NONNODE_WRAPPER_TYPES(V) -#endif - -#if ENABLE(NOTIFICATIONS) -#define NOTIFICATIONS_NONNODE_WRAPPER_TYPES(V) \ - V(NOTIFICATION, Notification) \ - V(NOTIFICATIONCENTER, NotificationCenter) -#else -#define NOTIFICATIONS_NONNODE_WRAPPER_TYPES(V) -#endif - -#if ENABLE(SHARED_WORKERS) -#define SHARED_WORKER_ACTIVE_OBJECT_WRAPPER_TYPES(V) \ - V(SHAREDWORKER, SharedWorker) - -#define SHARED_WORKER_NONNODE_WRAPPER_TYPES(V) \ - V(SHAREDWORKERCONTEXT, SharedWorkerContext) -#else -#define SHARED_WORKER_ACTIVE_OBJECT_WRAPPER_TYPES(V) -#define SHARED_WORKER_NONNODE_WRAPPER_TYPES(V) -#endif - -#define DOM_NODE_TYPES(V) \ - V(ATTR, Attr) \ - V(CHARACTERDATA, CharacterData) \ - V(CDATASECTION, CDATASection) \ - V(COMMENT, Comment) \ - V(DOCUMENT, Document) \ - V(DOCUMENTFRAGMENT, DocumentFragment) \ - V(DOCUMENTTYPE, DocumentType) \ - V(ELEMENT, Element) \ - V(ENTITY, Entity) \ - V(ENTITYREFERENCE, EntityReference) \ - V(HTMLDOCUMENT, HTMLDocument) \ - V(IMAGE, HTMLImageElementConstructor) \ - V(NODE, Node) \ - V(OPTION, HTMLOptionElementConstructor) \ - V(NOTATION, Notation) \ - V(PROCESSINGINSTRUCTION, ProcessingInstruction) \ - V(TEXT, Text) \ - V(HTMLANCHORELEMENT, HTMLAnchorElement) \ - V(HTMLAPPLETELEMENT, HTMLAppletElement) \ - V(HTMLAREAELEMENT, HTMLAreaElement) \ - V(HTMLBASEELEMENT, HTMLBaseElement) \ - V(HTMLBASEFONTELEMENT, HTMLBaseFontElement) \ - V(HTMLBLOCKQUOTEELEMENT, HTMLBlockquoteElement) \ - V(HTMLBODYELEMENT, HTMLBodyElement) \ - V(HTMLBRELEMENT, HTMLBRElement) \ - V(HTMLBUTTONELEMENT, HTMLButtonElement) \ - V(HTMLCANVASELEMENT, HTMLCanvasElement) \ - V(HTMLDIRECTORYELEMENT, HTMLDirectoryElement) \ - V(HTMLDIVELEMENT, HTMLDivElement) \ - V(HTMLDLISTELEMENT, HTMLDListElement) \ - V(HTMLEMBEDELEMENT, HTMLEmbedElement) \ - V(HTMLFIELDSETELEMENT, HTMLFieldSetElement) \ - V(HTMLFONTELEMENT, HTMLFontElement) \ - V(HTMLFORMELEMENT, HTMLFormElement) \ - V(HTMLFRAMEELEMENT, HTMLFrameElement) \ - V(HTMLFRAMESETELEMENT, HTMLFrameSetElement) \ - V(HTMLHEADINGELEMENT, HTMLHeadingElement) \ - V(HTMLHEADELEMENT, HTMLHeadElement) \ - V(HTMLHRELEMENT, HTMLHRElement) \ - V(HTMLHTMLELEMENT, HTMLHtmlElement) \ - V(HTMLIFRAMEELEMENT, HTMLIFrameElement) \ - V(HTMLIMAGEELEMENT, HTMLImageElement) \ - V(HTMLINPUTELEMENT, HTMLInputElement) \ - V(HTMLISINDEXELEMENT, HTMLIsIndexElement) \ - V(HTMLLABELELEMENT, HTMLLabelElement) \ - V(HTMLLEGENDELEMENT, HTMLLegendElement) \ - V(HTMLLIELEMENT, HTMLLIElement) \ - V(HTMLLINKELEMENT, HTMLLinkElement) \ - V(HTMLMAPELEMENT, HTMLMapElement) \ - V(HTMLMARQUEEELEMENT, HTMLMarqueeElement) \ - V(HTMLMENUELEMENT, HTMLMenuElement) \ - V(HTMLMETAELEMENT, HTMLMetaElement) \ - V(HTMLMODELEMENT, HTMLModElement) \ - V(HTMLOBJECTELEMENT, HTMLObjectElement) \ - V(HTMLOLISTELEMENT, HTMLOListElement) \ - V(HTMLOPTGROUPELEMENT, HTMLOptGroupElement) \ - V(HTMLOPTIONELEMENT, HTMLOptionElement) \ - V(HTMLPARAGRAPHELEMENT, HTMLParagraphElement) \ - V(HTMLPARAMELEMENT, HTMLParamElement) \ - V(HTMLPREELEMENT, HTMLPreElement) \ - V(HTMLQUOTEELEMENT, HTMLQuoteElement) \ - V(HTMLSCRIPTELEMENT, HTMLScriptElement) \ - V(HTMLSELECTELEMENT, HTMLSelectElement) \ - V(HTMLSTYLEELEMENT, HTMLStyleElement) \ - V(HTMLTABLECAPTIONELEMENT, HTMLTableCaptionElement) \ - V(HTMLTABLECOLELEMENT, HTMLTableColElement) \ - V(HTMLTABLEELEMENT, HTMLTableElement) \ - V(HTMLTABLESECTIONELEMENT, HTMLTableSectionElement) \ - V(HTMLTABLECELLELEMENT, HTMLTableCellElement) \ - V(HTMLTABLEROWELEMENT, HTMLTableRowElement) \ - V(HTMLTEXTAREAELEMENT, HTMLTextAreaElement) \ - V(HTMLTITLEELEMENT, HTMLTitleElement) \ - V(HTMLULISTELEMENT, HTMLUListElement) \ - V(HTMLELEMENT, HTMLElement) \ - DATAGRID_HTMLELEMENT_TYPES(V) \ - VIDEO_HTMLELEMENT_TYPES(V) - -#if ENABLE(SVG_ANIMATION) -#define SVG_ANIMATION_ELEMENT_TYPES(V) \ - V(SVGANIMATECOLORELEMENT, SVGAnimateColorElement) \ - V(SVGANIMATEELEMENT, SVGAnimateElement) \ - V(SVGANIMATETRANSFORMELEMENT, SVGAnimateTransformElement) \ - V(SVGANIMATIONELEMENT, SVGAnimationElement) \ - V(SVGSETELEMENT, SVGSetElement) -#else -#define SVG_ANIMATION_ELEMENT_TYPES(V) -#endif - -#if ENABLE(SVG) && ENABLE(FILTERS) -#define SVG_FILTERS_ELEMENT_TYPES(V) \ - V(SVGCOMPONENTTRANSFERFUNCTIONELEMENT, SVGComponentTransferFunctionElement)\ - V(SVGFEBLENDELEMENT, SVGFEBlendElement) \ - V(SVGFECOLORMATRIXELEMENT, SVGFEColorMatrixElement) \ - V(SVGFECOMPONENTTRANSFERELEMENT, SVGFEComponentTransferElement) \ - V(SVGFECOMPOSITEELEMENT, SVGFECompositeElement) \ - V(SVGFEDIFFUSELIGHTINGELEMENT, SVGFEDiffuseLightingElement) \ - V(SVGFEDISPLACEMENTMAPELEMENT, SVGFEDisplacementMapElement) \ - V(SVGFEDISTANTLIGHTELEMENT, SVGFEDistantLightElement) \ - V(SVGFEFLOODELEMENT, SVGFEFloodElement) \ - V(SVGFEFUNCAELEMENT, SVGFEFuncAElement) \ - V(SVGFEFUNCBELEMENT, SVGFEFuncBElement) \ - V(SVGFEFUNCGELEMENT, SVGFEFuncGElement) \ - V(SVGFEFUNCRELEMENT, SVGFEFuncRElement) \ - V(SVGFEGAUSSIANBLURELEMENT, SVGFEGaussianBlurElement) \ - V(SVGFEIMAGEELEMENT, SVGFEImageElement) \ - V(SVGFEMERGEELEMENT, SVGFEMergeElement) \ - V(SVGFEMERGENODEELEMENT, SVGFEMergeNodeElement) \ - V(SVGFEMORPHOLOGYELEMENT, SVGFEMorphologyElement) \ - V(SVGFEOFFSETELEMENT, SVGFEOffsetElement) \ - V(SVGFEPOINTLIGHTELEMENT, SVGFEPointLightElement) \ - V(SVGFESPECULARLIGHTINGELEMENT, SVGFESpecularLightingElement) \ - V(SVGFESPOTLIGHTELEMENT, SVGFESpotLightElement) \ - V(SVGFETILEELEMENT, SVGFETileElement) \ - V(SVGFETURBULENCEELEMENT, SVGFETurbulenceElement) \ - V(SVGFILTERELEMENT, SVGFilterElement) -#else -#define SVG_FILTERS_ELEMENT_TYPES(V) -#endif - -#if ENABLE(SVG_FONTS) -#define SVG_FONTS_ELEMENT_TYPES(V) \ - V(SVGFONTELEMENT, SVGFontElement) \ - V(SVGFONTFACEELEMENT, SVGFontFaceElement) \ - V(SVGFONTFACEFORMATELEMENT, SVGFontFaceFormatElement) \ - V(SVGFONTFACENAMEELEMENT, SVGFontFaceNameElement) \ - V(SVGFONTFACESRCELEMENT, SVGFontFaceSrcElement) \ - V(SVGFONTFACEURIELEMENT, SVGFontFaceUriElement) \ - V(SVGMISSINGGLYPHELEMENT, SVGMissingGlyphElement) -#else -#define SVG_FONTS_ELEMENT_TYPES(V) -#endif - -#if ENABLE(SVG_FOREIGN_OBJECT) -#define SVG_FOREIGN_OBJECT_ELEMENT_TYPES(V) \ - V(SVGFOREIGNOBJECTELEMENT, SVGForeignObjectElement) -#else -#define SVG_FOREIGN_OBJECT_ELEMENT_TYPES(V) -#endif - -#if ENABLE(SVG_USE) -#define SVG_USE_ELEMENT_TYPES(V) \ - V(SVGUSEELEMENT, SVGUseElement) -#else -#define SVG_USE_ELEMENT_TYPES(V) -#endif - -#if ENABLE(SVG) -#define SVG_NODE_TYPES(V) \ - SVG_ANIMATION_ELEMENT_TYPES(V) \ - SVG_FILTERS_ELEMENT_TYPES(V) \ - SVG_FONTS_ELEMENT_TYPES(V) \ - SVG_FOREIGN_OBJECT_ELEMENT_TYPES(V) \ - SVG_USE_ELEMENT_TYPES(V) \ - V(SVGAELEMENT, SVGAElement) \ - V(SVGALTGLYPHELEMENT, SVGAltGlyphElement) \ - V(SVGCIRCLEELEMENT, SVGCircleElement) \ - V(SVGCLIPPATHELEMENT, SVGClipPathElement) \ - V(SVGCURSORELEMENT, SVGCursorElement) \ - V(SVGDEFSELEMENT, SVGDefsElement) \ - V(SVGDESCELEMENT, SVGDescElement) \ - V(SVGELLIPSEELEMENT, SVGEllipseElement) \ - V(SVGGELEMENT, SVGGElement) \ - V(SVGGLYPHELEMENT, SVGGlyphElement) \ - V(SVGGRADIENTELEMENT, SVGGradientElement) \ - V(SVGIMAGEELEMENT, SVGImageElement) \ - V(SVGLINEARGRADIENTELEMENT, SVGLinearGradientElement) \ - V(SVGLINEELEMENT, SVGLineElement) \ - V(SVGMARKERELEMENT, SVGMarkerElement) \ - V(SVGMASKELEMENT, SVGMaskElement) \ - V(SVGMETADATAELEMENT, SVGMetadataElement) \ - V(SVGPATHELEMENT, SVGPathElement) \ - V(SVGPATTERNELEMENT, SVGPatternElement) \ - V(SVGPOLYGONELEMENT, SVGPolygonElement) \ - V(SVGPOLYLINEELEMENT, SVGPolylineElement) \ - V(SVGRADIALGRADIENTELEMENT, SVGRadialGradientElement) \ - V(SVGRECTELEMENT, SVGRectElement) \ - V(SVGSCRIPTELEMENT, SVGScriptElement) \ - V(SVGSTOPELEMENT, SVGStopElement) \ - V(SVGSTYLEELEMENT, SVGStyleElement) \ - V(SVGSVGELEMENT, SVGSVGElement) \ - V(SVGSWITCHELEMENT, SVGSwitchElement) \ - V(SVGSYMBOLELEMENT, SVGSymbolElement) \ - V(SVGTEXTCONTENTELEMENT, SVGTextContentElement) \ - V(SVGTEXTELEMENT, SVGTextElement) \ - V(SVGTEXTPATHELEMENT, SVGTextPathElement) \ - V(SVGTEXTPOSITIONINGELEMENT, SVGTextPositioningElement) \ - V(SVGTITLEELEMENT, SVGTitleElement) \ - V(SVGTREFELEMENT, SVGTRefElement) \ - V(SVGTSPANELEMENT, SVGTSpanElement) \ - V(SVGVIEWELEMENT, SVGViewElement) \ - V(SVGELEMENT, SVGElement) \ - V(SVGDOCUMENT, SVGDocument) -#endif // SVG - - -#if ENABLE(WEB_SOCKETS) -#define WEBSOCKET_ACTIVE_OBJECT_WRAPPER_TYPES(V) \ - V(WEBSOCKET, WebSocket) -#else -#define WEBSOCKET_ACTIVE_OBJECT_WRAPPER_TYPES(V) -#endif - -// ACTIVE_DOM_OBJECT_TYPES are DOM_OBJECT_TYPES that need special treatement -// during GC. -#define ACTIVE_DOM_OBJECT_TYPES(V) \ - V(MESSAGEPORT, MessagePort) \ - V(XMLHTTPREQUEST, XMLHttpRequest) \ - WORKER_ACTIVE_OBJECT_WRAPPER_TYPES(V) \ - SHARED_WORKER_ACTIVE_OBJECT_WRAPPER_TYPES(V) \ - WEBSOCKET_ACTIVE_OBJECT_WRAPPER_TYPES(V) \ - EVENTSOURCE_ACTIVE_OBJECT_WRAPPER_TYPES(V) - -// NOTE: DOM_OBJECT_TYPES is split into two halves because -// Visual Studio's Intellinonsense crashes when macros get -// too large. 10-29-08 -// DOM_OBJECT_TYPES are non-node DOM types. -#define DOM_OBJECT_TYPES_1(V) \ - V(BARINFO, BarInfo) \ - V(BEFORELOADEVENT, BeforeLoadEvent) \ - V(BLOB, Blob) \ - V(CANVASGRADIENT, CanvasGradient) \ - V(CANVASPATTERN, CanvasPattern) \ - V(CANVASRENDERINGCONTEXT, CanvasRenderingContext) \ - V(CANVASRENDERINGCONTEXT2D, CanvasRenderingContext2D) \ - V(CLIENTRECT, ClientRect) \ - V(CLIENTRECTLIST, ClientRectList) \ - V(CLIPBOARD, Clipboard) \ - V(CONSOLE, Console) \ - V(COMPOSITIONEVENT, CompositionEvent) \ - V(COUNTER, Counter) \ - V(CSSCHARSETRULE, CSSCharsetRule) \ - V(CSSFONTFACERULE, CSSFontFaceRule) \ - V(CSSIMPORTRULE, CSSImportRule) \ - V(CSSMEDIARULE, CSSMediaRule) \ - V(CSSPAGERULE, CSSPageRule) \ - V(CSSPRIMITIVEVALUE, CSSPrimitiveValue) \ - V(CSSRULE, CSSRule) \ - V(CSSRULELIST, CSSRuleList) \ - V(CSSSTYLEDECLARATION, CSSStyleDeclaration) \ - V(CSSSTYLERULE, CSSStyleRule) \ - V(CSSSTYLESHEET, CSSStyleSheet) \ - V(CSSVALUE, CSSValue) \ - V(CSSVALUELIST, CSSValueList) \ - V(CSSVARIABLESDECLARATION, CSSVariablesDeclaration) \ - V(CSSVARIABLESRULE, CSSVariablesRule) \ - V(DOMCOREEXCEPTION, DOMCoreException) \ - V(DOMIMPLEMENTATION, DOMImplementation) \ - V(DOMPARSER, DOMParser) \ - V(DOMSELECTION, DOMSelection) \ - V(DOMWINDOW, DOMWindow) \ - V(EVENT, Event) \ - V(EVENTEXCEPTION, EventException) \ - V(FILE, File) \ - V(FILELIST, FileList) \ - V(HISTORY, History) \ - V(HTMLALLCOLLECTION, HTMLAllCollection) \ - V(HTMLCOLLECTION, HTMLCollection) \ - V(HTMLOPTIONSCOLLECTION, HTMLOptionsCollection) \ - V(IMAGEDATA, ImageData) \ - V(CANVASPIXELARRAY, CanvasPixelArray) \ - V(KEYBOARDEVENT, KeyboardEvent) \ - V(LOCATION, Location) \ - V(MEDIA, Media) \ - V(MEDIALIST, MediaList) - -#define DOM_OBJECT_TYPES_2(V) \ - V(MESSAGECHANNEL, MessageChannel) \ - V(MESSAGEEVENT, MessageEvent) \ - V(MIMETYPE, MimeType) \ - V(MIMETYPEARRAY, MimeTypeArray) \ - V(MOUSEEVENT, MouseEvent) \ - V(MUTATIONEVENT, MutationEvent) \ - V(NAMEDNODEMAP, NamedNodeMap) \ - V(NAVIGATOR, Navigator) \ - V(NODEFILTER, NodeFilter) \ - V(NODEITERATOR, NodeIterator) \ - V(NODELIST, NodeList) \ - V(OVERFLOWEVENT, OverflowEvent) \ - V(PAGETRANSITIONEVENT, PageTransitionEvent) \ - V(PLUGIN, Plugin) \ - V(PLUGINARRAY, PluginArray) \ - V(POPSTATEEVENT, PopStateEvent) \ - V(PROGRESSEVENT, ProgressEvent) \ - V(RANGE, Range) \ - V(RANGEEXCEPTION, RangeException) \ - V(RECT, Rect) \ - V(RGBCOLOR, RGBColor) \ - V(SCREEN, Screen) \ - V(STYLESHEET, StyleSheet) \ - V(STYLESHEETLIST, StyleSheetList) \ - V(TEXTEVENT, TextEvent) \ - V(TEXTMETRICS, TextMetrics) \ - V(TREEWALKER, TreeWalker) \ - V(UIEVENT, UIEvent) \ - V(VALIDITYSTATE, ValidityState) \ - V(WEBKITANIMATIONEVENT, WebKitAnimationEvent) \ - V(WEBKITCSSKEYFRAMERULE, WebKitCSSKeyframeRule) \ - V(WEBKITCSSKEYFRAMESRULE, WebKitCSSKeyframesRule) \ - V(WEBKITCSSMATRIX, WebKitCSSMatrix) \ - V(WEBKITPOINT, WebKitPoint) \ - V(WEBKITCSSTRANSFORMVALUE, WebKitCSSTransformValue) \ - V(WEBKITTRANSITIONEVENT, WebKitTransitionEvent) \ - V(WHEELEVENT, WheelEvent) \ - V(XMLHTTPREQUESTUPLOAD, XMLHttpRequestUpload) \ - V(XMLHTTPREQUESTEXCEPTION, XMLHttpRequestException) \ - V(XMLHTTPREQUESTPROGRESSEVENT, XMLHttpRequestProgressEvent) \ - V(XMLSERIALIZER, XMLSerializer) \ - ACTIVE_DOM_OBJECT_TYPES(V) \ - APPLICATIONCACHE_NONNODE_WRAPPER_TYPES(V) \ - DATAGRID_NONNODE_TYPES(V) \ - VIDEO_NONNODE_TYPES(V) \ - NOTIFICATIONS_NONNODE_WRAPPER_TYPES(V) \ - SHARED_WORKER_NONNODE_WRAPPER_TYPES(V) \ - WORKER_NONNODE_WRAPPER_TYPES(V) - -#if ENABLE(DATABASE) -#define DOM_OBJECT_DATABASE_TYPES(V) \ - V(DATABASE, Database) \ - V(SQLERROR, SQLError) \ - V(SQLRESULTSET, SQLResultSet) \ - V(SQLRESULTSETROWLIST, SQLResultSetRowList) \ - V(SQLTRANSACTION, SQLTransaction) -#else -#define DOM_OBJECT_DATABASE_TYPES(V) -#endif - -#if ENABLE(DOM_STORAGE) -#define DOM_OBJECT_STORAGE_TYPES(V) \ - V(STORAGE, Storage) \ - V(STORAGEEVENT, StorageEvent) -#else -#define DOM_OBJECT_STORAGE_TYPES(V) -#endif - -#if ENABLE(INDEXED_DATABASE) -#define DOM_OBJECT_INDEXED_DATABASE_TYPES(V) \ - V(IDBDATABASEERROR, IDBDatabaseError) \ - V(IDBDATABASEEXCEPTION, IDBDatabaseException) \ - V(IDBREQUEST, IDBRequest) \ - V(INDEXEDDATABASEREQUEST, IndexedDatabaseRequest) -#else -#define DOM_OBJECT_INDEXED_DATABASE_TYPES(V) -#endif - -#if ENABLE(WORKERS) -#define DOM_OBJECT_WORKERS_TYPES(V) \ - V(ERROREVENT, ErrorEvent) -#else -#define DOM_OBJECT_WORKERS_TYPES(V) -#endif - -#if ENABLE(3D_CANVAS) -#define DOM_OBJECT_3D_CANVAS_TYPES(V) \ - V(WEBGLACTIVEINFO, WebGLActiveInfo) \ - V(WEBGLARRAY, WebGLArray) \ - V(WEBGLARRAYBUFFER, WebGLArrayBuffer) \ - V(WEBGLBUFFER, WebGLBuffer) \ - V(WEBGLBYTEARRAY, WebGLByteArray) \ - V(WEBGLCONTEXTATTRIBUTES, WebGLContextAttributes) \ - V(WEBGLFLOATARRAY, WebGLFloatArray) \ - V(WEBGLFRAMEBUFFER, WebGLFramebuffer) \ - V(WEBGLINTARRAY, WebGLIntArray) \ - V(WEBGLPROGRAM, WebGLProgram) \ - V(WEBGLRENDERBUFFER, WebGLRenderbuffer) \ - V(WEBGLRENDERINGCONTEXT, WebGLRenderingContext) \ - V(WEBGLSHADER, WebGLShader) \ - V(WEBGLSHORTARRAY, WebGLShortArray) \ - V(WEBGLTEXTURE, WebGLTexture) \ - V(WEBGLUNIFORMLOCATION, WebGLUniformLocation) \ - V(WEBGLUNSIGNEDBYTEARRAY, WebGLUnsignedByteArray) \ - V(WEBGLUNSIGNEDINTARRAY, WebGLUnsignedIntArray) \ - V(WEBGLUNSIGNEDSHORTARRAY, WebGLUnsignedShortArray) -#else -#define DOM_OBJECT_3D_CANVAS_TYPES(V) -#endif - -#if ENABLE(XPATH) -#define DOM_OBJECT_XPATH_TYPES(V) \ - V(XPATHEVALUATOR, XPathEvaluator) \ - V(XPATHEXCEPTION, XPathException) \ - V(XPATHEXPRESSION, XPathExpression) \ - V(XPATHNSRESOLVER, XPathNSResolver) \ - V(XPATHRESULT, XPathResult) -#else -#define DOM_OBJECT_XPATH_TYPES(V) -#endif - -#if ENABLE(XSLT) -#define DOM_OBJECT_XSLT_TYPES(V) \ - V(XSLTPROCESSOR, XSLTProcessor) -#else -#define DOM_OBJECT_XSLT_TYPES(V) -#endif - -#if ENABLE(INSPECTOR) -#define DOM_OBJECT_INSPECTOR_TYPES(V) \ - V(INSPECTORBACKEND, InspectorBackend) \ - V(INSPECTORFRONTENDHOST, InspectorFrontendHost) \ - V(INJECTEDSCRIPTHOST, InjectedScriptHost) -#else -#define DOM_OBJECT_INSPECTOR_TYPES(V) -#endif - -#define DOM_OBJECT_GEOLOCATION_TYPES(V) \ - V(COORDINATES, Coordinates) \ - V(GEOLOCATION, Geolocation) \ - V(GEOPOSITION, Geoposition) \ - V(POSITIONERROR, PositionError) - -#if ENABLE(TOUCH_EVENTS) -#define DOM_OBJECT_TOUCH_EVENT_TYPES(V) \ - V(TOUCH, Touch) \ - V(TOUCHEVENT, TouchEvent) \ - V(TOUCHLIST, TouchList) -#else -#define DOM_OBJECT_TOUCH_EVENT_TYPES(V) -#endif - -#if PLATFORM(ANDROID) -// We don't plan to upstream CONNECTION as it's only temporary, so we -// don't need a default here. -#define DOM_OBJECT_CONNECTION_TYPES(V) \ - V(CONNECTION, Connection) -#endif - -#if PLATFORM(ANDROID) -// This block is modified, but is not Android-specific. -#define DOM_OBJECT_TYPES(V) \ - DOM_OBJECT_TYPES_1(V) \ - DOM_OBJECT_TYPES_2(V) \ - DOM_OBJECT_DATABASE_TYPES(V) \ - DOM_OBJECT_STORAGE_TYPES(V) \ - DOM_OBJECT_INDEXED_DATABASE_TYPES(V) \ - DOM_OBJECT_WORKERS_TYPES(V) \ - DOM_OBJECT_3D_CANVAS_TYPES(V) \ - DOM_OBJECT_XPATH_TYPES(V) \ - DOM_OBJECT_XSLT_TYPES(V) \ - DOM_OBJECT_INSPECTOR_TYPES(V) \ - DOM_OBJECT_GEOLOCATION_TYPES(V) \ - DOM_OBJECT_TOUCH_EVENT_TYPES(V) \ - DOM_OBJECT_CONNECTION_TYPES(V) -#endif - -#if ENABLE(SVG) -// SVG_OBJECT_TYPES are svg non-node, non-pod types. -#define SVG_OBJECT_TYPES(V) \ - V(SVGANIMATEDANGLE, SVGAnimatedAngle) \ - V(SVGANIMATEDBOOLEAN, SVGAnimatedBoolean) \ - V(SVGANIMATEDENUMERATION, SVGAnimatedEnumeration) \ - V(SVGANIMATEDINTEGER, SVGAnimatedInteger) \ - V(SVGANIMATEDLENGTH, SVGAnimatedLength) \ - V(SVGANIMATEDLENGTHLIST, SVGAnimatedLengthList) \ - V(SVGANIMATEDNUMBER, SVGAnimatedNumber) \ - V(SVGANIMATEDNUMBERLIST, SVGAnimatedNumberList) \ - V(SVGANIMATEDPRESERVEASPECTRATIO, SVGAnimatedPreserveAspectRatio) \ - V(SVGANIMATEDRECT, SVGAnimatedRect) \ - V(SVGANIMATEDSTRING, SVGAnimatedString) \ - V(SVGANIMATEDTRANSFORMLIST, SVGAnimatedTransformList) \ - V(SVGCOLOR, SVGColor) \ - V(SVGELEMENTINSTANCE, SVGElementInstance) \ - V(SVGELEMENTINSTANCELIST, SVGElementInstanceList) \ - V(SVGEXCEPTION, SVGException) \ - V(SVGLENGTHLIST, SVGLengthList) \ - V(SVGNUMBERLIST, SVGNumberList) \ - V(SVGPAINT, SVGPaint) \ - V(SVGPATHSEG, SVGPathSeg) \ - V(SVGPATHSEGARCABS, SVGPathSegArcAbs) \ - V(SVGPATHSEGARCREL, SVGPathSegArcRel) \ - V(SVGPATHSEGCLOSEPATH, SVGPathSegClosePath) \ - V(SVGPATHSEGCURVETOCUBICABS, SVGPathSegCurvetoCubicAbs) \ - V(SVGPATHSEGCURVETOCUBICREL, SVGPathSegCurvetoCubicRel) \ - V(SVGPATHSEGCURVETOCUBICSMOOTHABS, SVGPathSegCurvetoCubicSmoothAbs) \ - V(SVGPATHSEGCURVETOCUBICSMOOTHREL, SVGPathSegCurvetoCubicSmoothRel) \ - V(SVGPATHSEGCURVETOQUADRATICABS, SVGPathSegCurvetoQuadraticAbs) \ - V(SVGPATHSEGCURVETOQUADRATICREL, SVGPathSegCurvetoQuadraticRel) \ - V(SVGPATHSEGCURVETOQUADRATICSMOOTHABS, SVGPathSegCurvetoQuadraticSmoothAbs)\ - V(SVGPATHSEGCURVETOQUADRATICSMOOTHREL, SVGPathSegCurvetoQuadraticSmoothRel)\ - V(SVGPATHSEGLINETOABS, SVGPathSegLinetoAbs) \ - V(SVGPATHSEGLINETOHORIZONTALABS, SVGPathSegLinetoHorizontalAbs) \ - V(SVGPATHSEGLINETOHORIZONTALREL, SVGPathSegLinetoHorizontalRel) \ - V(SVGPATHSEGLINETOREL, SVGPathSegLinetoRel) \ - V(SVGPATHSEGLINETOVERTICALABS, SVGPathSegLinetoVerticalAbs) \ - V(SVGPATHSEGLINETOVERTICALREL, SVGPathSegLinetoVerticalRel) \ - V(SVGPATHSEGLIST, SVGPathSegList) \ - V(SVGPATHSEGMOVETOABS, SVGPathSegMovetoAbs) \ - V(SVGPATHSEGMOVETOREL, SVGPathSegMovetoRel) \ - V(SVGPOINTLIST, SVGPointList) \ - V(SVGRENDERINGINTENT, SVGRenderingIntent) \ - V(SVGSTRINGLIST, SVGStringList) \ - V(SVGTRANSFORMLIST, SVGTransformList) \ - V(SVGUNITTYPES, SVGUnitTypes) \ - V(SVGZOOMEVENT, SVGZoomEvent) - -// SVG POD types should list all types whose IDL has PODType declaration. -#define SVG_POD_TYPES(V) \ - V(SVGANGLE, SVGAngle) \ - V(SVGLENGTH, SVGLength) \ - V(SVGPRESERVEASPECTRATIO, SVGPreserveAspectRatio) \ - V(SVGTRANSFORM, SVGTransform) \ - V(SVGMATRIX, SVGMatrix) \ - V(SVGNUMBER, SVGNumber) \ - V(SVGPOINT, SVGPoint) \ - V(SVGRECT, SVGRect) - -// POD types can have different implementation names, see CodeGenerateV8.pm. -#define SVG_POD_NATIVE_TYPES(V) \ - V(SVGANGLE, SVGAngle) \ - V(SVGLENGTH, SVGLength) \ - V(SVGPRESERVEASPECTRATIO, SVGPreserveAspectRatio) \ - V(SVGTRANSFORM, SVGTransform) \ - V(SVGMATRIX, AffineTransform) \ - V(SVGNUMBER, float) \ - V(SVGPOINT, FloatPoint) \ - V(SVGRECT, FloatRect) - -// Shouldn't generate code for these two types. -#define SVG_NO_WRAPPER_TYPES(V) \ - V(SVGURIREFERENCE, SVGURIReference) \ - V(SVGANIMATEDPOINTS, SVGAnimatedPoints) - -// SVG_NONNODE_TYPES are SVG non-node object types, pod typs and -// numerical types. -#define SVG_NONNODE_TYPES(V) \ - SVG_OBJECT_TYPES(V) \ - SVG_POD_TYPES(V) -#endif // SVG - -// EVENTTARGET, EVENTLISTENER, and NPOBJECT do not have V8 wrappers. -#define DOM_NO_WRAPPER_TYPES(V) \ - V(EVENTTARGET, EventTarget) \ - V(EVENTLISTENER, EventListener) \ - V(NPOBJECT, NPObject) - -#if ENABLE(SVG) -#define WRAPPER_TYPES(V) DOM_NODE_TYPES(V) DOM_OBJECT_TYPES(V) SVG_NODE_TYPES(V) SVG_NONNODE_TYPES(V) -#define NO_WRAPPER_TYPES(V) DOM_NO_WRAPPER_TYPES(V) SVG_NO_WRAPPER_TYPES(V) -#else // SVG -#define WRAPPER_TYPES(V) DOM_NODE_TYPES(V) DOM_OBJECT_TYPES(V) -#define NO_WRAPPER_TYPES(V) DOM_NO_WRAPPER_TYPES(V) -#endif // SVG - -#define ALL_WRAPPER_TYPES(V) WRAPPER_TYPES(V) NO_WRAPPER_TYPES(V) - - class V8ClassIndex { - public: - // Type must start at non-negative numbers. See ToInt, FromInt. - enum V8WrapperType { - INVALID_CLASS_INDEX = 0, - -#define DEFINE_ENUM(name, type) name, - ALL_WRAPPER_TYPES(DEFINE_ENUM) -#undef DEFINE_ENUM - - CLASSINDEX_END, - WRAPPER_TYPE_COUNT = CLASSINDEX_END - }; - - // FIXME: Convert to toInt after all the bindings are in one place. - static int ToInt(V8WrapperType type) { return static_cast<int>(type); } - - // FIXME: Convert to fromInt after all the bindings are in one place. - static V8WrapperType FromInt(int v) { - ASSERT(INVALID_CLASS_INDEX <= v && v < CLASSINDEX_END); - return static_cast<V8WrapperType>(v); - } - - static v8::Persistent<v8::FunctionTemplate> getTemplate(V8WrapperType type); - }; - -} - -#endif // V8Index_h |