Changeset 140305 in webkit
- Timestamp:
- Jan 20, 2013 11:45:23 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r140300 r140305 1 2013-01-20 Kentaro Hara <haraken@chromium.org> 2 3 Implement MediaStreamEvent constructor 4 https://bugs.webkit.org/show_bug.cgi?id=107411 5 6 Reviewed by Adam Barth. 7 8 Spec: http://www.w3.org/TR/webrtc/#mediastreamevent 9 10 Test: fast/events/constructors/media-stream-event-constructor.html 11 12 * fast/events/constructors/media-stream-event-constructor-expected.txt: Added. 13 * fast/events/constructors/media-stream-event-constructor.html: Added. 14 * platform/chromium-android/TestExpectations: 15 * platform/efl/TestExpectations: 16 * platform/gtk/TestExpectations: 17 * platform/mac/TestExpectations: 18 * platform/qt/TestExpectations: 19 * platform/win/TestExpectations: 20 * platform/wincairo/TestExpectations: 21 1 22 2013-01-20 Mike Lawther <mikelawther@chromium.org> 2 23 -
trunk/LayoutTests/platform/chromium-android/TestExpectations
r137208 r140305 45 45 crbug.com/145338 fast/forms/date 46 46 crbug.com/145338 fast/mediastream 47 crbug.com/145338 fast/events/constructors/media-stream-event-constructor.html 47 48 crbug.com/145338 fast/notifications 48 49 crbug.com/145338 fast/speech -
trunk/LayoutTests/platform/efl/TestExpectations
r140286 r140305 1232 1232 # Requires MEDIA_STREAM support. 1233 1233 webkit.org/b/87662 fast/mediastream [ Skip ] 1234 webkit.org/b/87662 fast/events/constructors/media-stream-event-constructor.html [ Skip ] 1234 1235 1235 1236 # The EFL port has no support for x-webkit-speech -
trunk/LayoutTests/platform/gtk/TestExpectations
r140286 r140305 361 361 # Mediastream implementation is not complete yet. 362 362 webkit.org/b/79203 fast/mediastream [ Skip ] 363 webkit.org/b/79203 fast/events/constructors/media-stream-event-constructor.html [ Skip ] 363 364 364 365 # CSS Variables are not yet enabled. -
trunk/LayoutTests/platform/mac/TestExpectations
r140286 r140305 197 197 # Media Stream API is not yet enabled. 198 198 fast/mediastream 199 fast/events/constructors/media-stream-event-constructor.html 199 200 200 201 # Needs to be fixed at image decoder layer for Safari. -
trunk/LayoutTests/platform/qt/TestExpectations
r140286 r140305 100 100 # ENABLE(MEDIA_STREAM) is disabled. 101 101 fast/mediastream 102 fast/events/constructors/media-stream-event-constructor.html 102 103 103 104 # ENABLE(DIRECTORY_UPLOAD) is disabled. -
trunk/LayoutTests/platform/win/TestExpectations
r140286 r140305 1206 1206 # Media Stream API is not yet enabled. 1207 1207 fast/mediastream 1208 fast/events/constructors/media-stream-event-constructor.html 1208 1209 1209 1210 # Needs to be fixed at image decoder layer for Safari. -
trunk/LayoutTests/platform/wincairo/TestExpectations
r140286 r140305 1733 1733 # Media Stream API is not yet enabled. 1734 1734 fast/mediastream 1735 fast/events/constructors/media-stream-event-constructor.html 1735 1736 1736 1737 # Needs to be fixed at image decoder layer for Safari. -
trunk/Source/WebCore/ChangeLog
r140304 r140305 1 2013-01-20 Kentaro Hara <haraken@chromium.org> 2 3 Implement MediaStreamEvent constructor 4 https://bugs.webkit.org/show_bug.cgi?id=107411 5 6 Reviewed by Adam Barth. 7 8 Spec: http://www.w3.org/TR/webrtc/#mediastreamevent 9 10 Test: fast/events/constructors/media-stream-event-constructor.html 11 12 * Modules/mediastream/MediaStreamEvent.cpp: 13 (WebCore::MediaStreamEventInit::MediaStreamEventInit): 14 (WebCore): 15 (WebCore::MediaStreamEvent::create): 16 (WebCore::MediaStreamEvent::MediaStreamEvent): 17 * Modules/mediastream/MediaStreamEvent.h: 18 (MediaStreamEventInit): 19 (WebCore): 20 (MediaStreamEvent): 21 * Modules/mediastream/MediaStreamEvent.idl: 22 * bindings/js/JSDictionary.cpp: 23 (WebCore): 24 (WebCore::JSDictionary::convertValue): 25 * bindings/js/JSDictionary.h: 26 (WebCore): 27 * bindings/v8/Dictionary.cpp: 28 (WebCore): 29 (WebCore::Dictionary::get): 30 * bindings/v8/Dictionary.h: 31 (Dictionary): 32 1 33 2013-01-20 Vladislav Kaznacheev <kaznacheev@chromium.org> 2 34 -
trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.cpp
r100425 r140305 33 33 namespace WebCore { 34 34 35 MediaStreamEventInit::MediaStreamEventInit() 36 : stream(0) 37 { 38 } 39 35 40 PassRefPtr<MediaStreamEvent> MediaStreamEvent::create() 36 41 { … … 43 48 } 44 49 50 PassRefPtr<MediaStreamEvent> MediaStreamEvent::create(const AtomicString& type, const MediaStreamEventInit& initializer) 51 { 52 return adoptRef(new MediaStreamEvent(type, initializer)); 53 } 45 54 46 55 MediaStreamEvent::MediaStreamEvent() … … 51 60 : Event(type, canBubble, cancelable) 52 61 , m_stream(stream) 62 { 63 } 64 65 MediaStreamEvent::MediaStreamEvent(const AtomicString& type, const MediaStreamEventInit& initializer) 66 : Event(type, initializer) 67 , m_stream(initializer.stream) 53 68 { 54 69 } -
trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.h
r127752 r140305 34 34 namespace WebCore { 35 35 36 struct MediaStreamEventInit : public EventInit { 37 MediaStreamEventInit(); 38 39 RefPtr<MediaStream> stream; 40 }; 41 36 42 class MediaStreamEvent : public Event { 37 43 public: … … 40 46 static PassRefPtr<MediaStreamEvent> create(); 41 47 static PassRefPtr<MediaStreamEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<MediaStream>); 48 static PassRefPtr<MediaStreamEvent> create(const AtomicString& type, const MediaStreamEventInit& initializer); 42 49 43 50 MediaStream* stream() const; … … 48 55 MediaStreamEvent(); 49 56 MediaStreamEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<MediaStream>); 57 MediaStreamEvent(const AtomicString& type, const MediaStreamEventInit&); 50 58 51 59 RefPtr<MediaStream> m_stream; -
trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.idl
r131172 r140305 23 23 */ 24 24 25 // According to the WHATWG specification:26 // http://www.whatwg.org/specs/web-apps/current-work/multipage/video-conferencing-and-peer-to-peer-communication.html#mediastreamevent27 25 [ 28 26 Conditional=MEDIA_STREAM, 27 ConstructorTemplate=Event 29 28 ] interface MediaStreamEvent : Event { 30 readonly attribute MediaStream stream;29 [InitializedByEventConstructor] readonly attribute MediaStream stream; 31 30 }; 32 31 -
trunk/Source/WebCore/bindings/js/JSDictionary.cpp
r138811 r140305 46 46 #endif 47 47 48 #if ENABLE(MEDIA_STREAM) 49 #include "JSMediaStream.h" 50 #endif 51 48 52 using namespace JSC; 49 53 … … 216 220 #endif 217 221 222 #if ENABLE(MEDIA_STREAM) 223 void JSDictionary::convertValue(JSC::ExecState*, JSC::JSValue value, RefPtr<MediaStream>& result) 224 { 225 result = toMediaStream(value); 226 } 227 #endif 228 218 229 bool JSDictionary::getWithUndefinedOrNullCheck(const String& propertyName, String& result) const 219 230 { -
trunk/Source/WebCore/bindings/js/JSDictionary.h
r139541 r140305 41 41 class EventTarget; 42 42 class MediaKeyError; 43 class MediaStream; 43 44 class Node; 44 45 class ScriptValue; … … 116 117 static void convertValue(JSC::ExecState*, JSC::JSValue, RefPtr<MediaKeyError>& result); 117 118 #endif 119 #if ENABLE(MEDIA_STREAM) 120 static void convertValue(JSC::ExecState*, JSC::JSValue, RefPtr<MediaStream>& result); 121 #endif 118 122 119 123 JSC::ExecState* m_exec; -
trunk/Source/WebCore/bindings/v8/Dictionary.cpp
r136822 r140305 59 59 #endif 60 60 61 #if ENABLE(MEDIA_STREAM) 62 #include "MediaStream.h" 63 #include "V8MediaStream.h" 64 #endif 65 61 66 namespace WebCore { 62 67 … … 433 438 } 434 439 440 #endif 441 442 #if ENABLE(MEDIA_STREAM) 443 bool Dictionary::get(const String& key, RefPtr<MediaStream>& value) const 444 { 445 v8::Local<v8::Value> v8Value; 446 if (!getKey(key, v8Value)) 447 return false; 448 449 MediaStream* stream = 0; 450 if (v8Value->IsObject()) { 451 v8::Handle<v8::Object> wrapper = v8::Handle<v8::Object>::Cast(v8Value); 452 v8::Handle<v8::Object> error = wrapper->FindInstanceInPrototypeChain(V8MediaStream::GetTemplate()); 453 if (!error.IsEmpty()) 454 stream = V8MediaStream::toNative(error); 455 } 456 value = stream; 457 return true; 458 } 435 459 #endif 436 460 -
trunk/Source/WebCore/bindings/v8/Dictionary.h
r136392 r140305 86 86 bool get(const String&, RefPtr<SpeechRecognitionResultList>&) const; 87 87 #endif 88 #if ENABLE(MEDIA_STREAM) 89 bool get(const String&, RefPtr<MediaStream>&) const; 90 #endif 88 91 bool get(const String&, HashSet<AtomicString>&) const; 89 92 bool get(const String&, Dictionary&) const;
Note: See TracChangeset
for help on using the changeset viewer.