Changeset 47323 in webkit
- Timestamp:
- Aug 15, 2009 2:04:32 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 31 added
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r47307 r47323 1 2009-08-15 Adam Bergkvist <adam.bergkvist@ericsson.com> 2 3 Reviewed by Sam Weinig. 4 5 Added ENABLE_EVENTSOURCE flag. 6 https://bugs.webkit.org/show_bug.cgi?id=14997 7 8 * Configurations/FeatureDefines.xcconfig: 9 1 10 2009-08-14 Gavin Barraclough <barraclough@apple.com> 2 11 -
trunk/JavaScriptCore/Configurations/FeatureDefines.xcconfig
r47056 r47323 37 37 ENABLE_DATAGRID = ENABLE_DATAGRID; 38 38 ENABLE_DOM_STORAGE = ENABLE_DOM_STORAGE; 39 ENABLE_EVENTSOURCE = ENABLE_EVENTSOURCE; 39 40 ENABLE_FILTERS = ; 40 41 ENABLE_GEOLOCATION = ; … … 59 60 ENABLE_XSLT = ENABLE_XSLT; 60 61 61 FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DOM_STORAGE) $(ENABLE_ FILTERS) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_RUBY) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XPATH) $(ENABLE_XSLT);62 FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_RUBY) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XPATH) $(ENABLE_XSLT); -
trunk/LayoutTests/ChangeLog
r47314 r47323 1 2009-08-14 Adam Bergkvist <adam.bergkvist@ericsson.com> 2 3 Reviewed by Sam Weinig. 4 5 Tests for EventSource. 6 https://bugs.webkit.org/show_bug.cgi?id=14997 7 8 * fast/eventsource: Added. 9 * fast/eventsource/eventsource-attribute-listeners-expected.txt: Added. 10 * fast/eventsource/eventsource-attribute-listeners.html: Added. 11 * fast/eventsource/eventsource-constructor-expected.txt: Added. 12 * fast/eventsource/eventsource-constructor.html: Added. 13 * http/tests/eventsource: Added. 14 * http/tests/eventsource/eventsource-bad-mime-type-expected.txt: Added. 15 * http/tests/eventsource/eventsource-bad-mime-type.html: Added. 16 * http/tests/eventsource/eventsource-parse-event-stream-expected.txt: Added. 17 * http/tests/eventsource/eventsource-parse-event-stream.html: Added. 18 * http/tests/eventsource/eventsource-reconnect-expected.txt: Added. 19 * http/tests/eventsource/eventsource-reconnect.html: Added. 20 * http/tests/eventsource/eventsource-status-code-states-expected.txt: Added. 21 * http/tests/eventsource/eventsource-status-code-states.html: Added. 22 * http/tests/eventsource/resources: Added. 23 * http/tests/eventsource/resources/bad-mime-type.asis: Added. 24 * http/tests/eventsource/resources/event-stream.php: Added. 25 * http/tests/eventsource/resources/reconnect.php: Added. 26 * http/tests/eventsource/resources/simple-event-stream.asis: Added. 27 * http/tests/eventsource/resources/status-codes.php: Added. 28 * http/tests/eventsource/workers: Added. 29 * http/tests/eventsource/workers/eventsource-simple-expected.txt: Added. 30 * http/tests/eventsource/workers/eventsource-simple.html: Added. 31 * http/tests/eventsource/workers/resources: Added. 32 * http/tests/eventsource/workers/resources/simple-worker.js: Added. 33 (es.onmessage): 34 (es.onerror): 35 1 36 2009-08-14 Jon Honeycutt <jhoneycutt@apple.com> 2 37 -
trunk/LayoutTests/fast/dom/Window/window-properties-expected.txt
r47233 r47323 858 858 window.EventException.prototype [object EventExceptionPrototype] 859 859 window.EventException.prototype.UNSPECIFIED_EVENT_TYPE_ERR [number] 860 window.EventSource [object EventSourceContructor] 861 window.EventSource.prototype [object EventSourcePrototype] 862 window.EventSource.prototype.CLOSED [number] 863 window.EventSource.prototype.CONNECTING [number] 864 window.EventSource.prototype.OPEN [number] 865 window.EventSource.prototype.addEventListener [function] 866 window.EventSource.prototype.close [function] 867 window.EventSource.prototype.dispatchEvent [function] 868 window.EventSource.prototype.removeEventListener [function] 860 869 window.File [object FileConstructor] 861 870 window.File.prototype [object FilePrototype] -
trunk/LayoutTests/fast/dom/prototype-inheritance-2-expected.txt
r46874 r47323 78 78 PASS DocumentPrototype from inner.document.__proto__.__proto__ 79 79 PASS ElementPrototype from inner.document.activeElement.lastElementChild.__proto__.__proto__ 80 PASS EventSourceContructor from inner.EventSource 80 81 FAIL Function from inner.document.location.pathname.constructor 81 82 PASS HTMLAnchorElement from inner.document.activeElement.firstElementChild -
trunk/LayoutTests/fast/dom/prototype-inheritance-expected.txt
r46874 r47323 78 78 PASS inner.EventException.isInner is true 79 79 PASS inner.EventException.constructor.isInner is true 80 PASS inner.EventSource.isInner is true 81 PASS inner.EventSource.constructor.isInner is true 80 82 PASS inner.File.isInner is true 81 83 PASS inner.File.constructor.isInner is true -
trunk/WebCore/ChangeLog
r47319 r47323 1 2009-08-15 Adam Bergkvist <adam.bergkvist@ericsson.com> 2 3 Reviewed by Sam Weinig. 4 5 Added implementation of the EventSource object that enables 6 server-sent events from HTML5. 7 http://dev.w3.org/html5/eventsource/ 8 https://bugs.webkit.org/show_bug.cgi?id=14997 9 10 Tests: fast/eventsource/eventsource-attribute-listeners.html 11 fast/eventsource/eventsource-constructor.html 12 http/tests/eventsource/eventsource-bad-mime-type.html 13 http/tests/eventsource/eventsource-parse-event-stream.html 14 http/tests/eventsource/eventsource-reconnect.html 15 http/tests/eventsource/eventsource-status-code-states.html 16 http/tests/eventsource/workers/eventsource-simple.html 17 18 * Configurations/FeatureDefines.xcconfig: 19 * DerivedSources.cpp: 20 * DerivedSources.make: 21 * GNUmakefile.am: 22 * WebCore.pro: 23 * WebCore.vcproj/WebCore.vcproj: 24 * WebCore.xcodeproj/project.pbxproj: 25 * bindings/js/JSDOMWindowCustom.cpp: 26 (WebCore::JSDOMWindow::eventSource): 27 * bindings/js/JSEventSourceConstructor.cpp: Added. 28 (WebCore::): 29 (WebCore::JSEventSourceConstructor::JSEventSourceConstructor): 30 (WebCore::constructEventSource): 31 (WebCore::JSEventSourceConstructor::getConstructData): 32 * bindings/js/JSEventSourceConstructor.h: Added. 33 (WebCore::JSEventSourceConstructor::classInfo): 34 * bindings/js/JSEventSourceCustom.cpp: Added. 35 (WebCore::JSEventSource::markChildren): 36 (WebCore::JSEventSource::addEventListener): 37 (WebCore::JSEventSource::removeEventListener): 38 * bindings/js/JSEventTarget.cpp: 39 (WebCore::toJS): 40 (WebCore::toEventTarget): 41 * bindings/js/JSWorkerContextCustom.cpp: 42 (WebCore::JSWorkerContext::eventSource): 43 * dom/EventNames.h: 44 * dom/EventTarget.cpp: 45 (WebCore::EventTarget::toEventSource): 46 * dom/EventTarget.h: 47 * page/DOMWindow.idl: 48 * page/EventSource.cpp: Added. 49 (WebCore::EventSource::EventSource): 50 (WebCore::EventSource::~EventSource): 51 (WebCore::EventSource::connect): 52 (WebCore::EventSource::endRequest): 53 (WebCore::EventSource::scheduleReconnect): 54 (WebCore::EventSource::reconnectTimerFired): 55 (WebCore::EventSource::url): 56 (WebCore::EventSource::readyState): 57 (WebCore::EventSource::close): 58 (WebCore::EventSource::scriptExecutionContext): 59 (WebCore::EventSource::addEventListener): 60 (WebCore::EventSource::removeEventListener): 61 (WebCore::EventSource::dispatchEvent): 62 (WebCore::EventSource::didReceiveResponse): 63 (WebCore::EventSource::didReceiveData): 64 (WebCore::EventSource::didFinishLoading): 65 (WebCore::EventSource::didFail): 66 (WebCore::EventSource::didFailRedirectCheck): 67 (WebCore::EventSource::parseEventStream): 68 (WebCore::EventSource::parseEventStreamLine): 69 (WebCore::EventSource::dispatchGenericEvent): 70 (WebCore::EventSource::dispatchMessageEvent): 71 (WebCore::EventSource::stop): 72 * page/EventSource.h: Added. 73 (WebCore::EventSource::create): 74 (WebCore::EventSource::): 75 (WebCore::EventSource::setOnopen): 76 (WebCore::EventSource::onopen): 77 (WebCore::EventSource::setOnmessage): 78 (WebCore::EventSource::onmessage): 79 (WebCore::EventSource::setOnerror): 80 (WebCore::EventSource::onerror): 81 (WebCore::EventSource::toEventSource): 82 (WebCore::EventSource::eventListeners): 83 (WebCore::EventSource::refEventTarget): 84 (WebCore::EventSource::derefEventTarget): 85 * page/EventSource.idl: Added. 86 * workers/WorkerContext.idl: 87 1 88 2009-08-15 Pavel Feldman <pfeldman@chromium.org> 2 89 -
trunk/WebCore/Configurations/FeatureDefines.xcconfig
r47056 r47323 39 39 ENABLE_DATAGRID = ENABLE_DATAGRID; 40 40 ENABLE_DOM_STORAGE = ENABLE_DOM_STORAGE; 41 ENABLE_EVENTSOURCE = ENABLE_EVENTSOURCE; 41 42 ENABLE_FILTERS = ; 42 43 ENABLE_GEOLOCATION = ; … … 61 62 ENABLE_XSLT = ENABLE_XSLT; 62 63 63 FEATURE_DEFINES = $(ENABLE_3D_CANVAS) $(ENABLE_3D_RENDERING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DOM_STORAGE) $(ENABLE_ FILTERS) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_RUBY) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XPATH) $(ENABLE_XSLT);64 FEATURE_DEFINES = $(ENABLE_3D_CANVAS) $(ENABLE_3D_RENDERING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_RUBY) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XPATH) $(ENABLE_XSLT); -
trunk/WebCore/DerivedSources.cpp
r47056 r47323 74 74 #include "JSEvent.cpp" 75 75 #include "JSEventException.cpp" 76 #include "JSEventSource.cpp" 76 77 #include "JSFile.cpp" 77 78 #include "JSFileList.cpp" -
trunk/WebCore/DerivedSources.make
r47056 r47323 101 101 EventException \ 102 102 EventListener \ 103 EventSource \ 103 104 EventTarget \ 104 105 File \ -
trunk/WebCore/GNUmakefile.am
r47313 r47323 243 243 WebCore/page/DOMSelection.idl \ 244 244 WebCore/page/DOMWindow.idl \ 245 WebCore/page/EventSource.idl \ 245 246 WebCore/page/Geolocation.idl \ 246 247 WebCore/page/Geoposition.idl \ … … 347 348 WebCore/bindings/js/JSEventListener.cpp \ 348 349 WebCore/bindings/js/JSEventListener.h \ 350 WebCore/bindings/js/JSEventSourceConstructor.cpp \ 351 WebCore/bindings/js/JSEventSourceConstructor.h \ 352 WebCore/bindings/js/JSEventSourceCustom.cpp \ 349 353 WebCore/bindings/js/JSEventTarget.cpp \ 350 354 WebCore/bindings/js/JSEventTarget.h \ … … 1272 1276 WebCore/page/EventHandler.cpp \ 1273 1277 WebCore/page/EventHandler.h \ 1278 WebCore/page/EventSource.cpp \ 1279 WebCore/page/EventSource.h \ 1274 1280 WebCore/page/FocusController.cpp \ 1275 1281 WebCore/page/FocusController.h \ … … 2126 2132 2127 2133 # ---- 2134 # HTML5 server-sent events 2135 # ---- 2136 if !ENABLE_EVENTSOURCE 2137 global_cppflags += -DENABLE_EVENTSOURCE=0 2138 endif 2139 2140 if ENABLE_EVENTSOURCE 2141 FEATURE_DEFINES_JAVASCRIPT += ENABLE_EVENTSOURCE=1 2142 2143 webcore_cppflags += \ 2144 -DENABLE_EVENTSOURCE=1 2145 endif # ENABLE_EVENTSOURCE 2146 2147 # ---- 2128 2148 # HTML5 client-side session and persistent storage 2129 2149 # ---- -
trunk/WebCore/WebCore.pro
r47201 r47323 109 109 !contains(DEFINES, ENABLE_JAVASCRIPT_DEBUGGER=.): DEFINES += ENABLE_JAVASCRIPT_DEBUGGER=1 110 110 !contains(DEFINES, ENABLE_DATABASE=.): DEFINES += ENABLE_DATABASE=1 111 !contains(DEFINES, ENABLE_EVENTSOURCE=.): DEFINES += ENABLE_EVENTSOURCE=1 111 112 !contains(DEFINES, ENABLE_OFFLINE_WEB_APPLICATIONS=.): DEFINES += ENABLE_OFFLINE_WEB_APPLICATIONS=1 112 113 !contains(DEFINES, ENABLE_DOM_STORAGE=.): DEFINES += ENABLE_DOM_STORAGE=1 … … 442 443 page/DOMSelection.idl \ 443 444 page/DOMWindow.idl \ 445 page/EventSource.idl \ 444 446 page/Geolocation.idl \ 445 447 page/Geoposition.idl \ … … 658 660 bindings/js/JSElementCustom.cpp \ 659 661 bindings/js/JSEventCustom.cpp \ 662 bindings/js/JSEventSourceConstructor.cpp \ 663 bindings/js/JSEventSourceCustom.cpp \ 660 664 bindings/js/JSEventTarget.cpp \ 661 665 bindings/js/JSGeolocationCustom.cpp \ … … 1090 1094 page/DragController.cpp \ 1091 1095 page/EventHandler.cpp \ 1096 page/EventSource.cpp \ 1092 1097 page/FocusController.cpp \ 1093 1098 page/Frame.cpp \ … … 1337 1342 bindings/js/JSDOMWindowShell.h \ 1338 1343 bindings/js/JSEventListener.h \ 1344 bindings/js/JSEventSourceConstructor.h \ 1339 1345 bindings/js/JSEventTarget.h \ 1340 1346 bindings/js/JSHistoryCustom.h \ … … 1762 1768 page/DragController.h \ 1763 1769 page/EventHandler.h \ 1770 page/EventSource.h \ 1764 1771 page/FocusController.h \ 1765 1772 page/Frame.h \ … … 2440 2447 } 2441 2448 2449 contains(DEFINES, ENABLE_EVENTSOURCE=1) { 2450 FEATURE_DEFINES_JAVASCRIPT += ENABLE_EVENTSOURCE=1 2451 } 2452 2442 2453 contains(DEFINES, ENABLE_SQLITE=1) { 2443 2454 !system-sqlite:exists( $${SQLITE3SRCDIR}/sqlite3.c ) { -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r47313 r47323 2780 2780 </File> 2781 2781 <File 2782 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSEventSource.cpp" 2783 > 2784 <FileConfiguration 2785 Name="Debug|Win32" 2786 ExcludedFromBuild="true" 2787 > 2788 <Tool 2789 Name="VCCLCompilerTool" 2790 /> 2791 </FileConfiguration> 2792 <FileConfiguration 2793 Name="Release|Win32" 2794 ExcludedFromBuild="true" 2795 > 2796 <Tool 2797 Name="VCCLCompilerTool" 2798 /> 2799 </FileConfiguration> 2800 <FileConfiguration 2801 Name="Debug_Internal|Win32" 2802 ExcludedFromBuild="true" 2803 > 2804 <Tool 2805 Name="VCCLCompilerTool" 2806 /> 2807 </FileConfiguration> 2808 <FileConfiguration 2809 Name="Debug_Cairo|Win32" 2810 ExcludedFromBuild="true" 2811 > 2812 <Tool 2813 Name="VCCLCompilerTool" 2814 /> 2815 </FileConfiguration> 2816 <FileConfiguration 2817 Name="Release_Cairo|Win32" 2818 ExcludedFromBuild="true" 2819 > 2820 <Tool 2821 Name="VCCLCompilerTool" 2822 /> 2823 </FileConfiguration> 2824 </File> 2825 <File 2826 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSEventSource.h" 2827 > 2828 </File> 2829 <File 2782 2830 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSFile.cpp" 2783 2831 > … … 16811 16859 <File 16812 16860 RelativePath="..\page\win\EventHandlerWin.cpp" 16861 > 16862 </File> 16863 <File 16864 RelativePath="..\page\EventSource.cpp" 16865 > 16866 </File> 16867 <File 16868 RelativePath="..\page\EventSource.h" 16813 16869 > 16814 16870 </File> … … 28776 28832 </File> 28777 28833 <File 28834 RelativePath="..\bindings\js\JSEventSourceConstructor.cpp" 28835 > 28836 </File> 28837 <File 28838 RelativePath="..\bindings\js\JSEventSourceConstructor.h" 28839 > 28840 </File> 28841 <File 28842 RelativePath="..\bindings\js\JSEventSourceCustom.cpp" 28843 > 28844 </File> 28845 <File 28778 28846 RelativePath="..\bindings\js\JSEventTarget.cpp" 28779 28847 > -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r47313 r47323 4406 4406 DD7CDF250A23CF9800069928 /* CSSUnknownRule.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CCE0A1989CA007FB8C5 /* CSSUnknownRule.h */; }; 4407 4407 DDE63ED50B7D45A800226998 /* DOMTextEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 933A14750B7D1BAF00A53FFD /* DOMTextEvent.h */; }; 4408 E0FEF372B17C53EAC1C1FBEE /* EventSource.h in Headers */ = {isa = PBXBuildFile; fileRef = E0FEF371B17C53EAC1C1FBEE /* EventSource.h */; }; 4409 E0FEF372B27C53EAC1C1FBEE /* EventSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E0FEF371B27C53EAC1C1FBEE /* EventSource.cpp */; }; 4410 E0FEF372B37C53EAC1C1FBEE /* JSEventSource.h in Headers */ = {isa = PBXBuildFile; fileRef = E0FEF371B37C53EAC1C1FBEE /* JSEventSource.h */; }; 4411 E0FEF372B47C53EAC1C1FBEE /* JSEventSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E0FEF371B47C53EAC1C1FBEE /* JSEventSource.cpp */; }; 4412 E0FEF372B57C53EAC1C1FBEE /* JSEventSourceCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E0FEF371B57C53EAC1C1FBEE /* JSEventSourceCustom.cpp */; }; 4413 E0FEF372B67C53EAC1C1FBEE /* JSEventSourceConstructor.h in Headers */ = {isa = PBXBuildFile; fileRef = E0FEF371B67C53EAC1C1FBEE /* JSEventSourceConstructor.h */; }; 4414 E0FEF372B77C53EAC1C1FBEE /* JSEventSourceConstructor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E0FEF371B77C53EAC1C1FBEE /* JSEventSourceConstructor.cpp */; }; 4408 4415 E107400D0E77BDC00033AF24 /* JSMessageChannel.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E107400B0E77BDC00033AF24 /* JSMessageChannel.cpp */; }; 4409 4416 E107400E0E77BDC00033AF24 /* JSMessageChannel.h in Headers */ = {isa = PBXBuildFile; fileRef = E107400C0E77BDC00033AF24 /* JSMessageChannel.h */; }; … … 9335 9342 DD05FE0B0B8BA3C6009ACDFE /* WebCoreObjCExtras.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = WebCoreObjCExtras.h; sourceTree = "<group>"; }; 9336 9343 DD763BB10992C2C900740B8E /* libxml2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxml2.dylib; path = /usr/lib/libxml2.dylib; sourceTree = "<absolute>"; }; 9344 E0FEF371B07C53EAC1C1FBEE /* EventSource.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = EventSource.idl; sourceTree = "<group>"; }; 9345 E0FEF371B17C53EAC1C1FBEE /* EventSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EventSource.h; sourceTree = "<group>"; }; 9346 E0FEF371B27C53EAC1C1FBEE /* EventSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = EventSource.cpp; sourceTree = "<group>"; }; 9347 E0FEF371B37C53EAC1C1FBEE /* JSEventSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSEventSource.h; sourceTree = "<group>"; }; 9348 E0FEF371B47C53EAC1C1FBEE /* JSEventSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSEventSource.cpp; sourceTree = "<group>"; }; 9349 E0FEF371B57C53EAC1C1FBEE /* JSEventSourceCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSEventSourceCustom.cpp; sourceTree = "<group>"; }; 9350 E0FEF371B67C53EAC1C1FBEE /* JSEventSourceConstructor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSEventSourceConstructor.h; sourceTree = "<group>"; }; 9351 E0FEF371B77C53EAC1C1FBEE /* JSEventSourceConstructor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSEventSourceConstructor.cpp; sourceTree = "<group>"; }; 9337 9352 E107400B0E77BDC00033AF24 /* JSMessageChannel.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSMessageChannel.cpp; sourceTree = "<group>"; }; 9338 9353 E107400C0E77BDC00033AF24 /* JSMessageChannel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSMessageChannel.h; sourceTree = "<group>"; }; … … 10618 10633 93C09A800B064F00005ABD4D /* EventHandler.cpp */, 10619 10634 93C09A520B064DB3005ABD4D /* EventHandler.h */, 10635 E0FEF371B27C53EAC1C1FBEE /* EventSource.cpp */, 10636 E0FEF371B17C53EAC1C1FBEE /* EventSource.h */, 10637 E0FEF371B07C53EAC1C1FBEE /* EventSource.idl */, 10620 10638 14993BE30B2F2B1C0050497F /* FocusController.cpp */, 10621 10639 14993BE40B2F2B1C0050497F /* FocusController.h */, … … 13669 13687 93B70D4D09EB0C7C009D8468 /* JSEventListener.cpp */, 13670 13688 93B70D4E09EB0C7C009D8468 /* JSEventListener.h */, 13689 E0FEF371B67C53EAC1C1FBEE /* JSEventSourceConstructor.h */, 13690 E0FEF371B77C53EAC1C1FBEE /* JSEventSourceConstructor.cpp */, 13671 13691 BC60901E0E91B8EC000C68B5 /* JSEventTarget.cpp */, 13672 13692 BC60901D0E91B8EC000C68B5 /* JSEventTarget.h */, … … 13835 13855 BC2ED5540C6B9BD300920BFF /* JSElementCustom.cpp */, 13836 13856 BCEFAF4D0C317E6900FA81F6 /* JSEventCustom.cpp */, 13857 E0FEF371B57C53EAC1C1FBEE /* JSEventSourceCustom.cpp */, 13837 13858 FE80D7A60E9C1ED2000D6F75 /* JSGeolocationCustom.cpp */, 13838 13859 BCE7B1920D4E86960075A539 /* JSHistoryCustom.cpp */, … … 13969 13990 1403BA0B09EB18C700797C7F /* JSDOMWindow.cpp */, 13970 13991 1403BA0E09EB18F800797C7F /* JSDOMWindow.h */, 13992 E0FEF371B37C53EAC1C1FBEE /* JSEventSource.h */, 13993 E0FEF371B47C53EAC1C1FBEE /* JSEventSource.cpp */, 13971 13994 BC94D14C0C275C68006BC617 /* JSHistory.cpp */, 13972 13995 BC94D14D0C275C68006BC617 /* JSHistory.h */, … … 15933 15956 1CA19E160DC255CA0065A994 /* EventLoop.h in Headers */, 15934 15957 939885C408B7E3D100E707C4 /* EventNames.h in Headers */, 15958 E0FEF372B17C53EAC1C1FBEE /* EventSource.h in Headers */, 15935 15959 E12EDB7B0B308A78002704B6 /* EventTarget.h in Headers */, 15936 15960 BC60D8F30D2A11E000B9918F /* ExceptionBase.h in Headers */, … … 16218 16242 BC60D9C00D2A269A00B9918F /* JSEventException.h in Headers */, 16219 16243 93B70D6A09EB0C7C009D8468 /* JSEventListener.h in Headers */, 16244 E0FEF372B37C53EAC1C1FBEE /* JSEventSource.h in Headers */, 16245 E0FEF372B67C53EAC1C1FBEE /* JSEventSourceConstructor.h in Headers */, 16220 16246 BC60901F0E91B8EC000C68B5 /* JSEventTarget.h in Headers */, 16221 16247 BC00F0150E0A189500FD04E3 /* JSFile.h in Headers */, … … 17995 18021 1CA19E050DC255950065A994 /* EventLoopMac.mm in Sources */, 17996 18022 939885C308B7E3D100E707C4 /* EventNames.cpp in Sources */, 18023 E0FEF372B27C53EAC1C1FBEE /* EventSource.cpp in Sources */, 17997 18024 E12EDBEA0B308E0B002704B6 /* EventTarget.cpp in Sources */, 17998 18025 BC60D8F20D2A11E000B9918F /* ExceptionBase.cpp in Sources */, … … 18301 18328 BC60D9BF0D2A269A00B9918F /* JSEventException.cpp in Sources */, 18302 18329 93B70D6909EB0C7C009D8468 /* JSEventListener.cpp in Sources */, 18330 E0FEF372B47C53EAC1C1FBEE /* JSEventSource.cpp in Sources */, 18331 E0FEF372B77C53EAC1C1FBEE /* JSEventSourceConstructor.cpp in Sources */, 18332 E0FEF372B57C53EAC1C1FBEE /* JSEventSourceCustom.cpp in Sources */, 18303 18333 BC6090200E91B8EC000C68B5 /* JSEventTarget.cpp in Sources */, 18304 18334 BC00F0140E0A189500FD04E3 /* JSFile.cpp in Sources */, -
trunk/WebCore/WebCoreSources.bkl
r47165 r47323 87 87 bindings/js/JSElementCustom.cpp 88 88 bindings/js/JSEventCustom.cpp 89 bindings/js/JSEventSourceConstructor.cpp 90 bindings/js/JSEventSourceCustom.cpp 89 91 bindings/js/JSEventTarget.cpp 90 92 bindings/js/JSGeolocationCustom.cpp … … 286 288 DerivedSources/WebCore/JSErrorEvent.cpp 287 289 DerivedSources/WebCore/JSEvent.cpp 290 DerivedSources/WebCore/JSEventSource.cpp 288 291 DerivedSources/WebCore/JSEventException.cpp 289 292 DerivedSources/WebCore/JSFile.cpp … … 750 753 page/DragController.cpp 751 754 page/EventHandler.cpp 755 page/EventSource.cpp 752 756 page/FocusController.cpp 753 757 page/Frame.cpp -
trunk/WebCore/bindings/js/JSDOMWindowCustom.cpp
r47236 r47323 39 39 #include "JSEvent.h" 40 40 #include "JSEventListener.h" 41 #include "JSEventSourceConstructor.h" 41 42 #include "JSHTMLCollection.h" 42 43 #include "JSHistory.h" … … 428 429 } 429 430 431 #if ENABLE(EVENTSOURCE) 432 JSValue JSDOMWindow::eventSource(ExecState* exec) const 433 { 434 return getDOMConstructor<JSEventSourceConstructor>(exec, this); 435 } 436 #endif 437 430 438 JSValue JSDOMWindow::image(ExecState* exec) const 431 439 { -
trunk/WebCore/bindings/js/JSEventTarget.cpp
r47288 r47323 44 44 #include "XMLHttpRequestUpload.h" 45 45 46 #if ENABLE(EVENTSOURCE) 47 #include "EventSource.h" 48 #include "JSEventSource.h" 49 #endif 50 46 51 #if ENABLE(OFFLINE_WEB_APPLICATIONS) 47 52 #include "DOMApplicationCache.h" … … 75 80 return jsNull(); 76 81 82 #if ENABLE(EVENTSOURCE) 83 if (EventSource* eventSource = target->toEventSource()) 84 return toJS(exec, globalObject, eventSource); 85 #endif 86 77 87 #if ENABLE(SVG) 78 88 // SVGElementInstance supports both toSVGElementInstance and toNode since so much mouse handling code depends on toNode returning a valid node. … … 140 150 return static_cast<JSDOMWindowShell*>(asObject(value))->impl(); 141 151 152 #if ENABLE(EVENTSOURCE) 153 CONVERT_TO_EVENT_TARGET(EventSource) 154 #endif 155 142 156 #if ENABLE(OFFLINE_WEB_APPLICATIONS) 143 157 CONVERT_TO_EVENT_TARGET(DOMApplicationCache) -
trunk/WebCore/bindings/js/JSWorkerContextCustom.cpp
r47022 r47323 44 44 #include <interpreter/Interpreter.h> 45 45 46 #if ENABLE(EVENTSOURCE) 47 #include "JSEventSourceConstructor.h" 48 #endif 49 46 50 using namespace JSC; 47 51 … … 77 81 return false; 78 82 } 83 84 #if ENABLE(EVENTSOURCE) 85 JSValue JSWorkerContext::eventSource(ExecState* exec) const 86 { 87 return getDOMConstructor<JSEventSourceConstructor>(exec, this); 88 } 89 #endif 79 90 80 91 JSValue JSWorkerContext::xmlHttpRequest(ExecState* exec) const -
trunk/WebCore/dom/EventNames.h
r46892 r47323 74 74 macro(offline) \ 75 75 macro(online) \ 76 macro(open) \ 76 77 macro(overflowchanged) \ 77 78 macro(paste) \ -
trunk/WebCore/dom/EventTarget.cpp
r47056 r47323 43 43 EventTarget::~EventTarget() 44 44 { 45 } 46 47 EventSource* EventTarget::toEventSource() 48 { 49 return 0; 45 50 } 46 51 -
trunk/WebCore/dom/EventTarget.h
r47056 r47323 44 44 class Event; 45 45 class EventListener; 46 class EventSource; 46 47 class MessagePort; 47 48 class Node; … … 59 60 class EventTarget { 60 61 public: 62 virtual EventSource* toEventSource(); 61 63 virtual MessagePort* toMessagePort(); 62 64 virtual Node* toNode(); -
trunk/WebCore/page/DOMWindow.idl
r47233 r47323 446 446 attribute RangeExceptionConstructor RangeException; 447 447 448 #if ENABLE_EVENTSOURCE 449 attribute [JSCCustomGetter] EventSourceConstructor EventSource; // Usable with new the operator 450 #endif 451 448 452 // Mozilla has a separate XMLDocument object for XML documents. 449 453 // We just use Document for this. -
trunk/WebCore/workers/WorkerContext.idl
r47056 r47323 82 82 attribute [JSCCustomGetter] MessageChannelConstructor MessageChannel; 83 83 #endif 84 #if ENABLE_EVENTSOURCE 85 attribute [JSCCustomGetter] EventSourceConstructor EventSource; 86 #endif 84 87 attribute [JSCCustomGetter] XMLHttpRequestConstructor XMLHttpRequest; 85 88 }; -
trunk/WebKit/mac/ChangeLog
r47303 r47323 1 2009-08-15 Adam Bergkvist <adam.bergkvist@ericsson.com> 2 3 Reviewed by Sam Weinig. 4 5 Added ENABLE_EVENTSOURCE flag. 6 https://bugs.webkit.org/show_bug.cgi?id=14997 7 8 * Configurations/FeatureDefines.xcconfig: 9 1 10 2009-08-14 Mark Rowe <mrowe@apple.com> 2 11 -
trunk/WebKit/mac/Configurations/FeatureDefines.xcconfig
r47056 r47323 39 39 ENABLE_DATAGRID = ENABLE_DATAGRID; 40 40 ENABLE_DOM_STORAGE = ENABLE_DOM_STORAGE; 41 ENABLE_EVENTSOURCE = ENABLE_EVENTSOURCE; 41 42 ENABLE_FILTERS = ; 42 43 ENABLE_GEOLOCATION = ; … … 61 62 ENABLE_XSLT = ENABLE_XSLT; 62 63 63 FEATURE_DEFINES = $(ENABLE_3D_CANVAS) $(ENABLE_3D_RENDERING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DOM_STORAGE) $(ENABLE_ FILTERS) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_RUBY) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XPATH) $(ENABLE_XSLT);64 FEATURE_DEFINES = $(ENABLE_3D_CANVAS) $(ENABLE_3D_RENDERING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_RUBY) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XPATH) $(ENABLE_XSLT); -
trunk/WebKitTools/ChangeLog
r47321 r47323 1 2009-08-14 Adam Bergkvist <adam.bergkvist@ericsson.com> 2 3 Reviewed by Sam Weinig. 4 5 Added EventSource to the build script (default on). 6 https://bugs.webkit.org/show_bug.cgi?id=14997 7 8 * Scripts/build-webkit: 9 1 10 2009-08-15 Ryosuke Niwa <rniwa@webkit.org> 2 11 -
trunk/WebKitTools/Scripts/build-webkit
r47178 r47323 47 47 48 48 my ($threeDCanvasSupport, $threeDRenderingSupport, $channelMessagingSupport, $databaseSupport, $datagridSupport, $domStorageSupport, 49 $ filtersSupport, $geolocationSupport, $gnomeKeyringSupport, $iconDatabaseSupport,49 $eventsourceSupport, $filtersSupport, $geolocationSupport, $gnomeKeyringSupport, $iconDatabaseSupport, 50 50 $javaScriptDebuggerSupport, $offlineWebApplicationSupport, $rubySupport, $sharedWorkersSupport, 51 51 $svgSupport, $svgAnimationSupport, $svgAsImageSupport, $svgDOMObjCBindingsSupport, $svgFontsSupport, … … 74 74 { option => "dom-storage", desc => "Toggle DOM Storage Support", 75 75 define => "ENABLE_DOM_STORAGE", default => 1, value => \$domStorageSupport }, 76 77 { option => "eventsource", desc => "Toggle server-sent events support", 78 define => "ENABLE_EVENTSOURCE", default => 1, value => \$eventsourceSupport }, 76 79 77 80 { option => "filters", desc => "Toggle Filters support",
Note: See TracChangeset
for help on using the changeset viewer.