From d37e4d697dcba8596ec6e3689a448e982a7551ff Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Fri, 26 Jun 2009 16:23:15 +1200 Subject: [PATCH] Bug 499880 - Restructure content/media directory. r+=doublec --HG-- rename : content/media/video/src/nsAudioStream.cpp => content/media/nsAudioStream.cpp rename : content/media/video/public/nsAudioStream.h => content/media/nsAudioStream.h rename : content/media/video/src/nsMediaCache.cpp => content/media/nsMediaCache.cpp rename : content/media/video/public/nsMediaCache.h => content/media/nsMediaCache.h rename : content/media/video/src/nsMediaDecoder.cpp => content/media/nsMediaDecoder.cpp rename : content/media/video/public/nsMediaDecoder.h => content/media/nsMediaDecoder.h rename : content/media/video/src/nsMediaStream.cpp => content/media/nsMediaStream.cpp rename : content/media/video/public/nsMediaStream.h => content/media/nsMediaStream.h rename : content/media/video/src/nsChannelReader.cpp => content/media/ogg/nsChannelReader.cpp rename : content/media/video/public/nsChannelReader.h => content/media/ogg/nsChannelReader.h rename : content/media/video/src/nsOggDecoder.cpp => content/media/ogg/nsOggDecoder.cpp rename : content/media/video/public/nsOggDecoder.h => content/media/ogg/nsOggDecoder.h rename : content/media/video/test/320x240.allow-origin.ogv => content/media/test/320x240.allow-origin.ogv rename : content/media/video/test/320x240.allow-origin.ogv^headers^ => content/media/test/320x240.allow-origin.ogv^headers^ rename : content/media/video/test/320x240.ogv => content/media/test/320x240.ogv rename : content/media/video/test/Makefile.in => content/media/test/Makefile.in rename : content/media/video/test/big.wav => content/media/test/big.wav rename : content/media/video/test/bug461281.ogg => content/media/test/bug461281.ogg rename : content/media/video/test/bug482461.ogv => content/media/test/bug482461.ogv rename : content/media/video/test/can_play_type_ogg.js => content/media/test/can_play_type_ogg.js rename : content/media/video/test/can_play_type_wave.js => content/media/test/can_play_type_wave.js rename : content/media/video/test/contentDuration1.sjs => content/media/test/contentDuration1.sjs rename : content/media/video/test/contentDuration2.sjs => content/media/test/contentDuration2.sjs rename : content/media/video/test/contentDuration3.sjs => content/media/test/contentDuration3.sjs rename : content/media/video/test/contentDuration4.sjs => content/media/test/contentDuration4.sjs rename : content/media/video/test/contentDuration5.sjs => content/media/test/contentDuration5.sjs rename : content/media/video/test/contentDuration6.sjs => content/media/test/contentDuration6.sjs rename : content/media/video/test/crashtests/468763-1.html => content/media/test/crashtests/468763-1.html rename : content/media/video/test/crashtests/474744-1.html => content/media/test/crashtests/474744-1.html rename : content/media/video/test/crashtests/crashtests.list => content/media/test/crashtests/crashtests.list rename : content/media/video/test/dynamic_redirect.sjs => content/media/test/dynamic_redirect.sjs rename : content/media/video/test/file_access_controls.html => content/media/test/file_access_controls.html rename : content/media/video/test/r11025_s16_c1.wav => content/media/test/r11025_s16_c1.wav rename : content/media/video/test/r11025_s16_c1_trailing.wav => content/media/test/r11025_s16_c1_trailing.wav rename : content/media/video/test/r11025_u8_c1.wav => content/media/test/r11025_u8_c1.wav rename : content/media/video/test/r11025_u8_c1_trunc.wav => content/media/test/r11025_u8_c1_trunc.wav rename : content/media/video/test/r16000_u8_c1_list.wav => content/media/test/r16000_u8_c1_list.wav rename : content/media/video/test/redirect.sjs => content/media/test/redirect.sjs rename : content/media/video/test/seek.ogv => content/media/test/seek.ogv rename : content/media/video/test/small-shot.ogg => content/media/test/small-shot.ogg rename : content/media/video/test/sound.ogg => content/media/test/sound.ogg rename : content/media/video/test/test_access_control.html => content/media/test/test_access_control.html rename : content/media/video/test/test_audio1.html => content/media/test/test_audio1.html rename : content/media/video/test/test_audio2.html => content/media/test/test_audio2.html rename : content/media/video/test/test_audioDocumentTitle.html => content/media/test/test_audioDocumentTitle.html rename : content/media/video/test/test_autobuffer.html => content/media/test/test_autobuffer.html rename : content/media/video/test/test_autobuffer2.html => content/media/test/test_autobuffer2.html rename : content/media/video/test/test_autoplay.html => content/media/test/test_autoplay.html rename : content/media/video/test/test_bug448534.html => content/media/test/test_bug448534.html rename : content/media/video/test/test_bug461281.html => content/media/test/test_bug461281.html rename : content/media/video/test/test_bug463162.xhtml => content/media/test/test_bug463162.xhtml rename : content/media/video/test/test_bug465498.html => content/media/test/test_bug465498.html rename : content/media/video/test/test_bug468190.html => content/media/test/test_bug468190.html rename : content/media/video/test/test_bug468190_wav.html => content/media/test/test_bug468190_wav.html rename : content/media/video/test/test_bug476973.html => content/media/test/test_bug476973.html rename : content/media/video/test/test_bug482461.html => content/media/test/test_bug482461.html rename : content/media/video/test/test_bug493187.html => content/media/test/test_bug493187.html rename : content/media/video/test/test_bug495145.html => content/media/test/test_bug495145.html rename : content/media/video/test/test_bug495145_wav.html => content/media/test/test_bug495145_wav.html rename : content/media/video/test/test_bug495300.html => content/media/test/test_bug495300.html rename : content/media/video/test/test_bug495319.html => content/media/test/test_bug495319.html rename : content/media/video/test/test_can_play_type.html => content/media/test/test_can_play_type.html rename : content/media/video/test/test_can_play_type_no_ogg.html => content/media/test/test_can_play_type_no_ogg.html rename : content/media/video/test/test_can_play_type_no_wave.html => content/media/test/test_can_play_type_no_wave.html rename : content/media/video/test/test_can_play_type_ogg.html => content/media/test/test_can_play_type_ogg.html rename : content/media/video/test/test_can_play_type_wave.html => content/media/test/test_can_play_type_wave.html rename : content/media/video/test/test_closing_connections.html => content/media/test/test_closing_connections.html rename : content/media/video/test/test_constants.html => content/media/test/test_constants.html rename : content/media/video/test/test_contentDuration1.html => content/media/test/test_contentDuration1.html rename : content/media/video/test/test_contentDuration2.html => content/media/test/test_contentDuration2.html rename : content/media/video/test/test_contentDuration3.html => content/media/test/test_contentDuration3.html rename : content/media/video/test/test_contentDuration4.html => content/media/test/test_contentDuration4.html rename : content/media/video/test/test_contentDuration5.html => content/media/test/test_contentDuration5.html rename : content/media/video/test/test_contentDuration6.html => content/media/test/test_contentDuration6.html rename : content/media/video/test/test_controls.html => content/media/test/test_controls.html rename : content/media/video/test/test_currentTime.html => content/media/test/test_currentTime.html rename : content/media/video/test/test_decoder_disable.html => content/media/test/test_decoder_disable.html rename : content/media/video/test/test_delay_load.html => content/media/test/test_delay_load.html rename : content/media/video/test/test_duration1.html => content/media/test/test_duration1.html rename : content/media/video/test/test_ended1.html => content/media/test/test_ended1.html rename : content/media/video/test/test_ended2.html => content/media/test/test_ended2.html rename : content/media/video/test/test_error_on_404.html => content/media/test/test_error_on_404.html rename : content/media/video/test/test_info_leak.html => content/media/test/test_info_leak.html rename : content/media/video/test/test_load.html => content/media/test/test_load.html rename : content/media/video/test/test_load_candidates.html => content/media/test/test_load_candidates.html rename : content/media/video/test/test_media_selection.html => content/media/test/test_media_selection.html rename : content/media/video/test/test_mixed_principals.html => content/media/test/test_mixed_principals.html rename : content/media/video/test/test_networkState.html => content/media/test/test_networkState.html rename : content/media/video/test/test_onloadedmetadata.html => content/media/test/test_onloadedmetadata.html rename : content/media/video/test/test_paused.html => content/media/test/test_paused.html rename : content/media/video/test/test_paused_after_ended.html => content/media/test/test_paused_after_ended.html rename : content/media/video/test/test_play.html => content/media/test/test_play.html rename : content/media/video/test/test_progress1.html => content/media/test/test_progress1.html rename : content/media/video/test/test_progress2.html => content/media/test/test_progress2.html rename : content/media/video/test/test_progress3.html => content/media/test/test_progress3.html rename : content/media/video/test/test_progress4.html => content/media/test/test_progress4.html rename : content/media/video/test/test_readyState.html => content/media/test/test_readyState.html rename : content/media/video/test/test_seek1.html => content/media/test/test_seek1.html rename : content/media/video/test/test_seek2.html => content/media/test/test_seek2.html rename : content/media/video/test/test_seek3.html => content/media/test/test_seek3.html rename : content/media/video/test/test_seek4.html => content/media/test/test_seek4.html rename : content/media/video/test/test_seek5.html => content/media/test/test_seek5.html rename : content/media/video/test/test_seek6.html => content/media/test/test_seek6.html rename : content/media/video/test/test_seek7.html => content/media/test/test_seek7.html rename : content/media/video/test/test_seek8.html => content/media/test/test_seek8.html rename : content/media/video/test/test_seek9.html => content/media/test/test_seek9.html rename : content/media/video/test/test_source.html => content/media/test/test_source.html rename : content/media/video/test/test_source_write.html => content/media/test/test_source_write.html rename : content/media/video/test/test_standalone.html => content/media/test/test_standalone.html rename : content/media/video/test/test_timeupdate1.html => content/media/test/test_timeupdate1.html rename : content/media/video/test/test_timeupdate2.html => content/media/test/test_timeupdate2.html rename : content/media/video/test/test_timeupdate3.html => content/media/test/test_timeupdate3.html rename : content/media/video/test/test_videoDocumentTitle.html => content/media/test/test_videoDocumentTitle.html rename : content/media/video/test/test_volume.html => content/media/test/test_volume.html rename : content/media/video/test/test_wav_8bit.html => content/media/test/test_wav_8bit.html rename : content/media/video/test/test_wav_ended1.html => content/media/test/test_wav_ended1.html rename : content/media/video/test/test_wav_ended2.html => content/media/test/test_wav_ended2.html rename : content/media/video/test/test_wav_list.html => content/media/test/test_wav_list.html rename : content/media/video/test/test_wav_onloadedmetadata.html => content/media/test/test_wav_onloadedmetadata.html rename : content/media/video/test/test_wav_seek1.html => content/media/test/test_wav_seek1.html rename : content/media/video/test/test_wav_seek3.html => content/media/test/test_wav_seek3.html rename : content/media/video/test/test_wav_seek4.html => content/media/test/test_wav_seek4.html rename : content/media/video/test/test_wav_seek5.html => content/media/test/test_wav_seek5.html rename : content/media/video/test/test_wav_seek6.html => content/media/test/test_wav_seek6.html rename : content/media/video/test/test_wav_seek7.html => content/media/test/test_wav_seek7.html rename : content/media/video/test/test_wav_seek8.html => content/media/test/test_wav_seek8.html rename : content/media/video/test/test_wav_seek_past_end.html => content/media/test/test_wav_seek_past_end.html rename : content/media/video/test/test_wav_seek_then_play.html => content/media/test/test_wav_seek_then_play.html rename : content/media/video/test/test_wav_standalone.html => content/media/test/test_wav_standalone.html rename : content/media/video/test/test_wav_timeupdate1.html => content/media/test/test_wav_timeupdate1.html rename : content/media/video/test/test_wav_timeupdate2.html => content/media/test/test_wav_timeupdate2.html rename : content/media/video/test/test_wav_trailing.html => content/media/test/test_wav_trailing.html rename : content/media/video/test/test_wav_trunc.html => content/media/test/test_wav_trunc.html rename : content/media/video/test/test_wav_trunc_seek.html => content/media/test/test_wav_trunc_seek.html rename : content/media/video/test/use_large_cache.js => content/media/test/use_large_cache.js rename : content/media/video/src/nsWaveDecoder.cpp => content/media/wave/nsWaveDecoder.cpp rename : content/media/video/public/nsWaveDecoder.h => content/media/wave/nsWaveDecoder.h --- accessible/tests/mochitest/Makefile.in | 2 +- content/media/Makefile.in | 78 +++++++++++++++++- .../media/{video/src => }/nsAudioStream.cpp | 0 .../media/{video/public => }/nsAudioStream.h | 0 .../media/{video/src => }/nsMediaCache.cpp | 0 .../media/{video/public => }/nsMediaCache.h | 0 .../media/{video/src => }/nsMediaDecoder.cpp | 0 .../media/{video/public => }/nsMediaDecoder.h | 0 .../media/{video/src => }/nsMediaStream.cpp | 0 .../media/{video/public => }/nsMediaStream.h | 0 content/media/{video/src => ogg}/Makefile.in | 33 ++------ .../{video/src => ogg}/nsChannelReader.cpp | 0 .../{video/public => ogg}/nsChannelReader.h | 0 .../media/{video/src => ogg}/nsOggDecoder.cpp | 0 .../{video/public => ogg}/nsOggDecoder.h | 0 .../{video => }/test/320x240.allow-origin.ogv | Bin .../test/320x240.allow-origin.ogv^headers^ | 0 content/media/{video => }/test/320x240.ogv | Bin content/media/{video => }/test/Makefile.in | 4 +- content/media/{video => }/test/big.wav | Bin content/media/{video => }/test/bug461281.ogg | Bin content/media/{video => }/test/bug482461.ogv | Bin .../{video => }/test/can_play_type_ogg.js | 0 .../{video => }/test/can_play_type_wave.js | 0 .../{video => }/test/contentDuration1.sjs | 2 +- .../{video => }/test/contentDuration2.sjs | 2 +- .../{video => }/test/contentDuration3.sjs | 2 +- .../{video => }/test/contentDuration4.sjs | 2 +- .../{video => }/test/contentDuration5.sjs | 2 +- .../{video => }/test/contentDuration6.sjs | 2 +- .../{video => }/test/crashtests/468763-1.html | 0 .../{video => }/test/crashtests/474744-1.html | 0 .../test/crashtests/crashtests.list | 0 .../{video => }/test/dynamic_redirect.sjs | 4 +- .../test/file_access_controls.html | 28 +++---- .../media/{video => }/test/r11025_s16_c1.wav | Bin .../test/r11025_s16_c1_trailing.wav | Bin .../media/{video => }/test/r11025_u8_c1.wav | Bin .../{video => }/test/r11025_u8_c1_trunc.wav | Bin .../{video => }/test/r16000_u8_c1_list.wav | Bin content/media/{video => }/test/redirect.sjs | 0 content/media/{video => }/test/seek.ogv | Bin content/media/{video => }/test/small-shot.ogg | Bin content/media/{video => }/test/sound.ogg | Bin .../{video => }/test/test_access_control.html | 2 +- .../media/{video => }/test/test_audio1.html | 0 .../media/{video => }/test/test_audio2.html | 0 .../test/test_audioDocumentTitle.html | 0 .../{video => }/test/test_autobuffer.html | 0 .../{video => }/test/test_autobuffer2.html | 0 .../media/{video => }/test/test_autoplay.html | 0 .../{video => }/test/test_bug448534.html | 0 .../{video => }/test/test_bug461281.html | 0 .../{video => }/test/test_bug463162.xhtml | 0 .../{video => }/test/test_bug465498.html | 0 .../{video => }/test/test_bug468190.html | 0 .../{video => }/test/test_bug468190_wav.html | 0 .../{video => }/test/test_bug476973.html | 0 .../{video => }/test/test_bug482461.html | 0 .../{video => }/test/test_bug493187.html | 0 .../{video => }/test/test_bug495145.html | 0 .../{video => }/test/test_bug495145_wav.html | 0 .../{video => }/test/test_bug495300.html | 0 .../{video => }/test/test_bug495319.html | 0 .../{video => }/test/test_can_play_type.html | 0 .../test/test_can_play_type_no_ogg.html | 0 .../test/test_can_play_type_no_wave.html | 0 .../test/test_can_play_type_ogg.html | 0 .../test/test_can_play_type_wave.html | 0 .../test/test_closing_connections.html | 0 .../{video => }/test/test_constants.html | 0 .../test/test_contentDuration1.html | 0 .../test/test_contentDuration2.html | 0 .../test/test_contentDuration3.html | 0 .../test/test_contentDuration4.html | 0 .../test/test_contentDuration5.html | 0 .../test/test_contentDuration6.html | 0 .../media/{video => }/test/test_controls.html | 0 .../{video => }/test/test_currentTime.html | 0 .../test/test_decoder_disable.html | 0 .../{video => }/test/test_delay_load.html | 2 +- .../{video => }/test/test_duration1.html | 0 .../media/{video => }/test/test_ended1.html | 0 .../media/{video => }/test/test_ended2.html | 0 .../{video => }/test/test_error_on_404.html | 0 .../{video => }/test/test_info_leak.html | 16 ++-- content/media/{video => }/test/test_load.html | 0 .../test/test_load_candidates.html | 0 .../test/test_media_selection.html | 0 .../test/test_mixed_principals.html | 4 +- .../{video => }/test/test_networkState.html | 0 .../test/test_onloadedmetadata.html | 0 .../media/{video => }/test/test_paused.html | 0 .../test/test_paused_after_ended.html | 0 content/media/{video => }/test/test_play.html | 0 .../{video => }/test/test_progress1.html | 0 .../{video => }/test/test_progress2.html | 0 .../{video => }/test/test_progress3.html | 0 .../{video => }/test/test_progress4.html | 0 .../{video => }/test/test_readyState.html | 0 .../media/{video => }/test/test_seek1.html | 0 .../media/{video => }/test/test_seek2.html | 0 .../media/{video => }/test/test_seek3.html | 0 .../media/{video => }/test/test_seek4.html | 0 .../media/{video => }/test/test_seek5.html | 0 .../media/{video => }/test/test_seek6.html | 0 .../media/{video => }/test/test_seek7.html | 0 .../media/{video => }/test/test_seek8.html | 0 .../media/{video => }/test/test_seek9.html | 0 .../media/{video => }/test/test_source.html | 0 .../{video => }/test/test_source_write.html | 0 .../{video => }/test/test_standalone.html | 0 .../{video => }/test/test_timeupdate1.html | 0 .../{video => }/test/test_timeupdate2.html | 0 .../{video => }/test/test_timeupdate3.html | 0 .../test/test_videoDocumentTitle.html | 0 .../media/{video => }/test/test_volume.html | 0 .../media/{video => }/test/test_wav_8bit.html | 0 .../{video => }/test/test_wav_ended1.html | 0 .../{video => }/test/test_wav_ended2.html | 0 .../media/{video => }/test/test_wav_list.html | 0 .../test/test_wav_onloadedmetadata.html | 0 .../{video => }/test/test_wav_seek1.html | 0 .../{video => }/test/test_wav_seek3.html | 0 .../{video => }/test/test_wav_seek4.html | 0 .../{video => }/test/test_wav_seek5.html | 0 .../{video => }/test/test_wav_seek6.html | 0 .../{video => }/test/test_wav_seek7.html | 0 .../{video => }/test/test_wav_seek8.html | 0 .../test/test_wav_seek_past_end.html | 0 .../test/test_wav_seek_then_play.html | 0 .../{video => }/test/test_wav_standalone.html | 0 .../test/test_wav_timeupdate1.html | 0 .../test/test_wav_timeupdate2.html | 0 .../{video => }/test/test_wav_trailing.html | 0 .../{video => }/test/test_wav_trunc.html | 0 .../{video => }/test/test_wav_trunc_seek.html | 0 .../media/{video => }/test/use_large_cache.js | 0 content/media/video/Makefile.in | 54 ------------ .../media/{video/public => wave}/Makefile.in | 65 ++++++++++----- .../{video/src => wave}/nsWaveDecoder.cpp | 0 .../{video/public => wave}/nsWaveDecoder.h | 0 layout/build/Makefile.in | 9 +- testing/crashtest/crashtests.list | 2 +- toolkit/toolkit-makefiles.sh | 12 ++- 145 files changed, 183 insertions(+), 144 deletions(-) rename content/media/{video/src => }/nsAudioStream.cpp (100%) rename content/media/{video/public => }/nsAudioStream.h (100%) rename content/media/{video/src => }/nsMediaCache.cpp (100%) rename content/media/{video/public => }/nsMediaCache.h (100%) rename content/media/{video/src => }/nsMediaDecoder.cpp (100%) rename content/media/{video/public => }/nsMediaDecoder.h (100%) rename content/media/{video/src => }/nsMediaStream.cpp (100%) rename content/media/{video/public => }/nsMediaStream.h (100%) rename content/media/{video/src => ogg}/Makefile.in (86%) rename content/media/{video/src => ogg}/nsChannelReader.cpp (100%) rename content/media/{video/public => ogg}/nsChannelReader.h (100%) rename content/media/{video/src => ogg}/nsOggDecoder.cpp (100%) rename content/media/{video/public => ogg}/nsOggDecoder.h (100%) rename content/media/{video => }/test/320x240.allow-origin.ogv (100%) rename content/media/{video => }/test/320x240.allow-origin.ogv^headers^ (100%) rename content/media/{video => }/test/320x240.ogv (100%) rename content/media/{video => }/test/Makefile.in (98%) rename content/media/{video => }/test/big.wav (100%) rename content/media/{video => }/test/bug461281.ogg (100%) rename content/media/{video => }/test/bug482461.ogv (100%) rename content/media/{video => }/test/can_play_type_ogg.js (100%) rename content/media/{video => }/test/can_play_type_wave.js (100%) rename content/media/{video => }/test/contentDuration1.sjs (94%) rename content/media/{video => }/test/contentDuration2.sjs (94%) rename content/media/{video => }/test/contentDuration3.sjs (94%) rename content/media/{video => }/test/contentDuration4.sjs (94%) rename content/media/{video => }/test/contentDuration5.sjs (94%) rename content/media/{video => }/test/contentDuration6.sjs (94%) rename content/media/{video => }/test/crashtests/468763-1.html (100%) rename content/media/{video => }/test/crashtests/474744-1.html (100%) rename content/media/{video => }/test/crashtests/crashtests.list (100%) rename content/media/{video => }/test/dynamic_redirect.sjs (94%) rename content/media/{video => }/test/file_access_controls.html (80%) rename content/media/{video => }/test/r11025_s16_c1.wav (100%) rename content/media/{video => }/test/r11025_s16_c1_trailing.wav (100%) rename content/media/{video => }/test/r11025_u8_c1.wav (100%) rename content/media/{video => }/test/r11025_u8_c1_trunc.wav (100%) rename content/media/{video => }/test/r16000_u8_c1_list.wav (100%) rename content/media/{video => }/test/redirect.sjs (100%) rename content/media/{video => }/test/seek.ogv (100%) rename content/media/{video => }/test/small-shot.ogg (100%) rename content/media/{video => }/test/sound.ogg (100%) rename content/media/{video => }/test/test_access_control.html (86%) rename content/media/{video => }/test/test_audio1.html (100%) rename content/media/{video => }/test/test_audio2.html (100%) rename content/media/{video => }/test/test_audioDocumentTitle.html (100%) rename content/media/{video => }/test/test_autobuffer.html (100%) rename content/media/{video => }/test/test_autobuffer2.html (100%) rename content/media/{video => }/test/test_autoplay.html (100%) rename content/media/{video => }/test/test_bug448534.html (100%) rename content/media/{video => }/test/test_bug461281.html (100%) rename content/media/{video => }/test/test_bug463162.xhtml (100%) rename content/media/{video => }/test/test_bug465498.html (100%) rename content/media/{video => }/test/test_bug468190.html (100%) rename content/media/{video => }/test/test_bug468190_wav.html (100%) rename content/media/{video => }/test/test_bug476973.html (100%) rename content/media/{video => }/test/test_bug482461.html (100%) rename content/media/{video => }/test/test_bug493187.html (100%) rename content/media/{video => }/test/test_bug495145.html (100%) rename content/media/{video => }/test/test_bug495145_wav.html (100%) rename content/media/{video => }/test/test_bug495300.html (100%) rename content/media/{video => }/test/test_bug495319.html (100%) rename content/media/{video => }/test/test_can_play_type.html (100%) rename content/media/{video => }/test/test_can_play_type_no_ogg.html (100%) rename content/media/{video => }/test/test_can_play_type_no_wave.html (100%) rename content/media/{video => }/test/test_can_play_type_ogg.html (100%) rename content/media/{video => }/test/test_can_play_type_wave.html (100%) rename content/media/{video => }/test/test_closing_connections.html (100%) rename content/media/{video => }/test/test_constants.html (100%) rename content/media/{video => }/test/test_contentDuration1.html (100%) rename content/media/{video => }/test/test_contentDuration2.html (100%) rename content/media/{video => }/test/test_contentDuration3.html (100%) rename content/media/{video => }/test/test_contentDuration4.html (100%) rename content/media/{video => }/test/test_contentDuration5.html (100%) rename content/media/{video => }/test/test_contentDuration6.html (100%) rename content/media/{video => }/test/test_controls.html (100%) rename content/media/{video => }/test/test_currentTime.html (100%) rename content/media/{video => }/test/test_decoder_disable.html (100%) rename content/media/{video => }/test/test_delay_load.html (97%) rename content/media/{video => }/test/test_duration1.html (100%) rename content/media/{video => }/test/test_ended1.html (100%) rename content/media/{video => }/test/test_ended2.html (100%) rename content/media/{video => }/test/test_error_on_404.html (100%) rename content/media/{video => }/test/test_info_leak.html (89%) rename content/media/{video => }/test/test_load.html (100%) rename content/media/{video => }/test/test_load_candidates.html (100%) rename content/media/{video => }/test/test_media_selection.html (100%) rename content/media/{video => }/test/test_mixed_principals.html (91%) rename content/media/{video => }/test/test_networkState.html (100%) rename content/media/{video => }/test/test_onloadedmetadata.html (100%) rename content/media/{video => }/test/test_paused.html (100%) rename content/media/{video => }/test/test_paused_after_ended.html (100%) rename content/media/{video => }/test/test_play.html (100%) rename content/media/{video => }/test/test_progress1.html (100%) rename content/media/{video => }/test/test_progress2.html (100%) rename content/media/{video => }/test/test_progress3.html (100%) rename content/media/{video => }/test/test_progress4.html (100%) rename content/media/{video => }/test/test_readyState.html (100%) rename content/media/{video => }/test/test_seek1.html (100%) rename content/media/{video => }/test/test_seek2.html (100%) rename content/media/{video => }/test/test_seek3.html (100%) rename content/media/{video => }/test/test_seek4.html (100%) rename content/media/{video => }/test/test_seek5.html (100%) rename content/media/{video => }/test/test_seek6.html (100%) rename content/media/{video => }/test/test_seek7.html (100%) rename content/media/{video => }/test/test_seek8.html (100%) rename content/media/{video => }/test/test_seek9.html (100%) rename content/media/{video => }/test/test_source.html (100%) rename content/media/{video => }/test/test_source_write.html (100%) rename content/media/{video => }/test/test_standalone.html (100%) rename content/media/{video => }/test/test_timeupdate1.html (100%) rename content/media/{video => }/test/test_timeupdate2.html (100%) rename content/media/{video => }/test/test_timeupdate3.html (100%) rename content/media/{video => }/test/test_videoDocumentTitle.html (100%) rename content/media/{video => }/test/test_volume.html (100%) rename content/media/{video => }/test/test_wav_8bit.html (100%) rename content/media/{video => }/test/test_wav_ended1.html (100%) rename content/media/{video => }/test/test_wav_ended2.html (100%) rename content/media/{video => }/test/test_wav_list.html (100%) rename content/media/{video => }/test/test_wav_onloadedmetadata.html (100%) rename content/media/{video => }/test/test_wav_seek1.html (100%) rename content/media/{video => }/test/test_wav_seek3.html (100%) rename content/media/{video => }/test/test_wav_seek4.html (100%) rename content/media/{video => }/test/test_wav_seek5.html (100%) rename content/media/{video => }/test/test_wav_seek6.html (100%) rename content/media/{video => }/test/test_wav_seek7.html (100%) rename content/media/{video => }/test/test_wav_seek8.html (100%) rename content/media/{video => }/test/test_wav_seek_past_end.html (100%) rename content/media/{video => }/test/test_wav_seek_then_play.html (100%) rename content/media/{video => }/test/test_wav_standalone.html (100%) rename content/media/{video => }/test/test_wav_timeupdate1.html (100%) rename content/media/{video => }/test/test_wav_timeupdate2.html (100%) rename content/media/{video => }/test/test_wav_trailing.html (100%) rename content/media/{video => }/test/test_wav_trunc.html (100%) rename content/media/{video => }/test/test_wav_trunc_seek.html (100%) rename content/media/{video => }/test/use_large_cache.js (100%) delete mode 100644 content/media/video/Makefile.in rename content/media/{video/public => wave}/Makefile.in (77%) rename content/media/{video/src => wave}/nsWaveDecoder.cpp (100%) rename content/media/{video/public => wave}/nsWaveDecoder.h (100%) diff --git a/accessible/tests/mochitest/Makefile.in b/accessible/tests/mochitest/Makefile.in index 1180f62d185..d9f40b50e1e 100644 --- a/accessible/tests/mochitest/Makefile.in +++ b/accessible/tests/mochitest/Makefile.in @@ -48,7 +48,7 @@ include $(topsrcdir)/config/rules.mk _TEST_FILES =\ letters.gif \ moz.png \ - $(topsrcdir)/content/media/video/test/bug461281.ogg \ + $(topsrcdir)/content/media/test/bug461281.ogg \ longdesc_src.html \ actions.js \ attributes.js \ diff --git a/content/media/Makefile.in b/content/media/Makefile.in index 20096551dd7..10eb026e062 100644 --- a/content/media/Makefile.in +++ b/content/media/Makefile.in @@ -41,11 +41,83 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -ifdef MOZ_MEDIA -DIRS = \ - video \ +MODULE = content +LIBRARY_NAME = gkconmedia_s +LIBXUL_LIBRARY = 1 + +REQUIRES = \ + xpcom \ + string \ + gfx \ + content \ + thebes \ + layout \ + widget \ + dom \ + js \ + locale \ + unicharutil \ + webshell \ + uriloader \ + htmlparser \ + necko \ + view \ + pref \ + docshell \ + xpconnect \ + xuldoc \ + caps \ + editor \ + imglib2 \ + mimetype \ + exthandler \ + uconv \ + intl \ + plugin \ + cairo \ + libpixman \ + $(NULL) + +EXPORTS = \ + nsMediaDecoder.h \ + nsMediaStream.h \ + nsMediaCache.h \ + $(NULL) + +CPPSRCS = \ + nsMediaDecoder.cpp \ + nsMediaCache.cpp \ + nsMediaStream.cpp \ + $(NULL) + +ifdef MOZ_SYDNEYAUDIO +EXPORTS += \ + nsAudioStream.h \ + $(NULL) +CPPSRCS += \ + nsAudioStream.cpp \ $(NULL) endif +DIRS = + +ifdef MOZ_OGG +DIRS += ogg +endif + +ifdef MOZ_WAVE +DIRS += wave +endif + +ifdef ENABLE_TESTS +DIRS += test +endif + +FORCE_STATIC_LIB = 1 + include $(topsrcdir)/config/rules.mk +INCLUDES += \ + -I$(srcdir)/../base/src \ + -I$(srcdir)/../html/content/src \ + $(NULL) diff --git a/content/media/video/src/nsAudioStream.cpp b/content/media/nsAudioStream.cpp similarity index 100% rename from content/media/video/src/nsAudioStream.cpp rename to content/media/nsAudioStream.cpp diff --git a/content/media/video/public/nsAudioStream.h b/content/media/nsAudioStream.h similarity index 100% rename from content/media/video/public/nsAudioStream.h rename to content/media/nsAudioStream.h diff --git a/content/media/video/src/nsMediaCache.cpp b/content/media/nsMediaCache.cpp similarity index 100% rename from content/media/video/src/nsMediaCache.cpp rename to content/media/nsMediaCache.cpp diff --git a/content/media/video/public/nsMediaCache.h b/content/media/nsMediaCache.h similarity index 100% rename from content/media/video/public/nsMediaCache.h rename to content/media/nsMediaCache.h diff --git a/content/media/video/src/nsMediaDecoder.cpp b/content/media/nsMediaDecoder.cpp similarity index 100% rename from content/media/video/src/nsMediaDecoder.cpp rename to content/media/nsMediaDecoder.cpp diff --git a/content/media/video/public/nsMediaDecoder.h b/content/media/nsMediaDecoder.h similarity index 100% rename from content/media/video/public/nsMediaDecoder.h rename to content/media/nsMediaDecoder.h diff --git a/content/media/video/src/nsMediaStream.cpp b/content/media/nsMediaStream.cpp similarity index 100% rename from content/media/video/src/nsMediaStream.cpp rename to content/media/nsMediaStream.cpp diff --git a/content/media/video/public/nsMediaStream.h b/content/media/nsMediaStream.h similarity index 100% rename from content/media/video/public/nsMediaStream.h rename to content/media/nsMediaStream.h diff --git a/content/media/video/src/Makefile.in b/content/media/ogg/Makefile.in similarity index 86% rename from content/media/video/src/Makefile.in rename to content/media/ogg/Makefile.in index f1b4037e3db..1266088a810 100644 --- a/content/media/video/src/Makefile.in +++ b/content/media/ogg/Makefile.in @@ -34,7 +34,7 @@ # # ***** END LICENSE BLOCK ***** -DEPTH = ../../../.. +DEPTH = ../../.. topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ @@ -42,7 +42,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = content -LIBRARY_NAME = gkconvideo_s +LIBRARY_NAME = gkconogg_s LIBXUL_LIBRARY = 1 REQUIRES = \ @@ -78,36 +78,21 @@ REQUIRES = \ libpixman \ $(NULL) +EXPORTS += \ + nsChannelReader.h \ + nsOggDecoder.h \ + $(NULL) + CPPSRCS = \ - nsMediaDecoder.cpp \ - nsMediaCache.cpp \ - nsMediaStream.cpp \ - $(NULL) - -ifdef MOZ_SYDNEYAUDIO -CPPSRCS += \ - nsAudioStream.cpp \ - $(NULL) -endif - -ifdef MOZ_OGG -CPPSRCS += \ nsChannelReader.cpp \ nsOggDecoder.cpp \ $(NULL) -endif - -ifdef MOZ_WAVE -CPPSRCS += \ - nsWaveDecoder.cpp \ - $(NULL) -endif FORCE_STATIC_LIB = 1 include $(topsrcdir)/config/rules.mk INCLUDES += \ - -I$(srcdir)/../../../base/src \ - -I$(srcdir)/../../../html/content/src \ + -I$(srcdir)/../../base/src \ + -I$(srcdir)/../../html/content/src \ $(NULL) diff --git a/content/media/video/src/nsChannelReader.cpp b/content/media/ogg/nsChannelReader.cpp similarity index 100% rename from content/media/video/src/nsChannelReader.cpp rename to content/media/ogg/nsChannelReader.cpp diff --git a/content/media/video/public/nsChannelReader.h b/content/media/ogg/nsChannelReader.h similarity index 100% rename from content/media/video/public/nsChannelReader.h rename to content/media/ogg/nsChannelReader.h diff --git a/content/media/video/src/nsOggDecoder.cpp b/content/media/ogg/nsOggDecoder.cpp similarity index 100% rename from content/media/video/src/nsOggDecoder.cpp rename to content/media/ogg/nsOggDecoder.cpp diff --git a/content/media/video/public/nsOggDecoder.h b/content/media/ogg/nsOggDecoder.h similarity index 100% rename from content/media/video/public/nsOggDecoder.h rename to content/media/ogg/nsOggDecoder.h diff --git a/content/media/video/test/320x240.allow-origin.ogv b/content/media/test/320x240.allow-origin.ogv similarity index 100% rename from content/media/video/test/320x240.allow-origin.ogv rename to content/media/test/320x240.allow-origin.ogv diff --git a/content/media/video/test/320x240.allow-origin.ogv^headers^ b/content/media/test/320x240.allow-origin.ogv^headers^ similarity index 100% rename from content/media/video/test/320x240.allow-origin.ogv^headers^ rename to content/media/test/320x240.allow-origin.ogv^headers^ diff --git a/content/media/video/test/320x240.ogv b/content/media/test/320x240.ogv similarity index 100% rename from content/media/video/test/320x240.ogv rename to content/media/test/320x240.ogv diff --git a/content/media/video/test/Makefile.in b/content/media/test/Makefile.in similarity index 98% rename from content/media/video/test/Makefile.in rename to content/media/test/Makefile.in index 913f1178227..fea51574fd9 100644 --- a/content/media/video/test/Makefile.in +++ b/content/media/test/Makefile.in @@ -34,11 +34,11 @@ # # ***** END LICENSE BLOCK ***** -DEPTH = ../../../.. +DEPTH = ../../.. topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ -relativesrcdir = content/media/video/test +relativesrcdir = content/media/test include $(DEPTH)/config/autoconf.mk include $(topsrcdir)/config/rules.mk diff --git a/content/media/video/test/big.wav b/content/media/test/big.wav similarity index 100% rename from content/media/video/test/big.wav rename to content/media/test/big.wav diff --git a/content/media/video/test/bug461281.ogg b/content/media/test/bug461281.ogg similarity index 100% rename from content/media/video/test/bug461281.ogg rename to content/media/test/bug461281.ogg diff --git a/content/media/video/test/bug482461.ogv b/content/media/test/bug482461.ogv similarity index 100% rename from content/media/video/test/bug482461.ogv rename to content/media/test/bug482461.ogv diff --git a/content/media/video/test/can_play_type_ogg.js b/content/media/test/can_play_type_ogg.js similarity index 100% rename from content/media/video/test/can_play_type_ogg.js rename to content/media/test/can_play_type_ogg.js diff --git a/content/media/video/test/can_play_type_wave.js b/content/media/test/can_play_type_wave.js similarity index 100% rename from content/media/video/test/can_play_type_wave.js rename to content/media/test/can_play_type_wave.js diff --git a/content/media/video/test/contentDuration1.sjs b/content/media/test/contentDuration1.sjs similarity index 94% rename from content/media/video/test/contentDuration1.sjs rename to content/media/test/contentDuration1.sjs index 66b7be866ed..e7b1e0edc99 100644 --- a/content/media/video/test/contentDuration1.sjs +++ b/content/media/test/contentDuration1.sjs @@ -7,7 +7,7 @@ function handleRequest(request, response) createInstance(Components.interfaces.nsIFileInputStream); var bis = Components.classes["@mozilla.org/binaryinputstream;1"]. createInstance(Components.interfaces.nsIBinaryInputStream); - var paths = "tests/content/media/video/test/320x240.ogv"; + var paths = "tests/content/media/test/320x240.ogv"; var split = paths.split("/"); for(var i = 0; i < split.length; ++i) { file.append(split[i]); diff --git a/content/media/video/test/contentDuration2.sjs b/content/media/test/contentDuration2.sjs similarity index 94% rename from content/media/video/test/contentDuration2.sjs rename to content/media/test/contentDuration2.sjs index 5225b342e14..1b3f141291c 100644 --- a/content/media/video/test/contentDuration2.sjs +++ b/content/media/test/contentDuration2.sjs @@ -7,7 +7,7 @@ function handleRequest(request, response) createInstance(Components.interfaces.nsIFileInputStream); var bis = Components.classes["@mozilla.org/binaryinputstream;1"]. createInstance(Components.interfaces.nsIBinaryInputStream); - var paths = "tests/content/media/video/test/320x240.ogv"; + var paths = "tests/content/media/test/320x240.ogv"; var split = paths.split("/"); for(var i = 0; i < split.length; ++i) { file.append(split[i]); diff --git a/content/media/video/test/contentDuration3.sjs b/content/media/test/contentDuration3.sjs similarity index 94% rename from content/media/video/test/contentDuration3.sjs rename to content/media/test/contentDuration3.sjs index d578873edd9..fb4056445cf 100644 --- a/content/media/video/test/contentDuration3.sjs +++ b/content/media/test/contentDuration3.sjs @@ -7,7 +7,7 @@ function handleRequest(request, response) createInstance(Components.interfaces.nsIFileInputStream); var bis = Components.classes["@mozilla.org/binaryinputstream;1"]. createInstance(Components.interfaces.nsIBinaryInputStream); - var paths = "tests/content/media/video/test/320x240.ogv"; + var paths = "tests/content/media/test/320x240.ogv"; var split = paths.split("/"); for(var i = 0; i < split.length; ++i) { file.append(split[i]); diff --git a/content/media/video/test/contentDuration4.sjs b/content/media/test/contentDuration4.sjs similarity index 94% rename from content/media/video/test/contentDuration4.sjs rename to content/media/test/contentDuration4.sjs index 1ed32b9a3af..bcb9bb6822c 100644 --- a/content/media/video/test/contentDuration4.sjs +++ b/content/media/test/contentDuration4.sjs @@ -7,7 +7,7 @@ function handleRequest(request, response) createInstance(Components.interfaces.nsIFileInputStream); var bis = Components.classes["@mozilla.org/binaryinputstream;1"]. createInstance(Components.interfaces.nsIBinaryInputStream); - var paths = "tests/content/media/video/test/320x240.ogv"; + var paths = "tests/content/media/test/320x240.ogv"; var split = paths.split("/"); for(var i = 0; i < split.length; ++i) { file.append(split[i]); diff --git a/content/media/video/test/contentDuration5.sjs b/content/media/test/contentDuration5.sjs similarity index 94% rename from content/media/video/test/contentDuration5.sjs rename to content/media/test/contentDuration5.sjs index 3d6cf3b8026..8f6a2084c5f 100644 --- a/content/media/video/test/contentDuration5.sjs +++ b/content/media/test/contentDuration5.sjs @@ -7,7 +7,7 @@ function handleRequest(request, response) createInstance(Components.interfaces.nsIFileInputStream); var bis = Components.classes["@mozilla.org/binaryinputstream;1"]. createInstance(Components.interfaces.nsIBinaryInputStream); - var paths = "tests/content/media/video/test/320x240.ogv"; + var paths = "tests/content/media/test/320x240.ogv"; var split = paths.split("/"); for(var i = 0; i < split.length; ++i) { file.append(split[i]); diff --git a/content/media/video/test/contentDuration6.sjs b/content/media/test/contentDuration6.sjs similarity index 94% rename from content/media/video/test/contentDuration6.sjs rename to content/media/test/contentDuration6.sjs index 9eacef6226e..f41f93ab439 100644 --- a/content/media/video/test/contentDuration6.sjs +++ b/content/media/test/contentDuration6.sjs @@ -7,7 +7,7 @@ function handleRequest(request, response) createInstance(Components.interfaces.nsIFileInputStream); var bis = Components.classes["@mozilla.org/binaryinputstream;1"]. createInstance(Components.interfaces.nsIBinaryInputStream); - var paths = "tests/content/media/video/test/320x240.ogv"; + var paths = "tests/content/media/test/320x240.ogv"; var split = paths.split("/"); for(var i = 0; i < split.length; ++i) { file.append(split[i]); diff --git a/content/media/video/test/crashtests/468763-1.html b/content/media/test/crashtests/468763-1.html similarity index 100% rename from content/media/video/test/crashtests/468763-1.html rename to content/media/test/crashtests/468763-1.html diff --git a/content/media/video/test/crashtests/474744-1.html b/content/media/test/crashtests/474744-1.html similarity index 100% rename from content/media/video/test/crashtests/474744-1.html rename to content/media/test/crashtests/474744-1.html diff --git a/content/media/video/test/crashtests/crashtests.list b/content/media/test/crashtests/crashtests.list similarity index 100% rename from content/media/video/test/crashtests/crashtests.list rename to content/media/test/crashtests/crashtests.list diff --git a/content/media/video/test/dynamic_redirect.sjs b/content/media/test/dynamic_redirect.sjs similarity index 94% rename from content/media/video/test/dynamic_redirect.sjs rename to content/media/test/dynamic_redirect.sjs index 69fb751d58e..cbd1d7a8ade 100644 --- a/content/media/video/test/dynamic_redirect.sjs +++ b/content/media/test/dynamic_redirect.sjs @@ -7,7 +7,7 @@ function handleRequest(request, response) if (getState(key[1]) == "redirect") { var origin = request.host == "localhost" ? "example.org" : "localhost:8888"; response.setStatusLine(request.httpVersion, 303, "See Other"); - response.setHeader("Location", "http://" + origin + "/tests/content/media/video/test/seek.ogv"); + response.setHeader("Location", "http://" + origin + "/tests/content/media/test/seek.ogv"); response.setHeader("Content-Type", "text/html"); return; } @@ -21,7 +21,7 @@ function handleRequest(request, response) createInstance(Components.interfaces.nsIFileInputStream); var bis = Components.classes["@mozilla.org/binaryinputstream;1"]. createInstance(Components.interfaces.nsIBinaryInputStream); - var paths = "tests/content/media/video/test/seek.ogv"; + var paths = "tests/content/media/test/seek.ogv"; var split = paths.split("/"); for(var i = 0; i < split.length; ++i) { file.append(split[i]); diff --git a/content/media/video/test/file_access_controls.html b/content/media/test/file_access_controls.html similarity index 80% rename from content/media/video/test/file_access_controls.html rename to content/media/test/file_access_controls.html index c377ace8fed..bfb7370d468 100644 --- a/content/media/video/test/file_access_controls.html +++ b/content/media/test/file_access_controls.html @@ -4,67 +4,67 @@ diff --git a/content/media/video/test/test_networkState.html b/content/media/test/test_networkState.html similarity index 100% rename from content/media/video/test/test_networkState.html rename to content/media/test/test_networkState.html diff --git a/content/media/video/test/test_onloadedmetadata.html b/content/media/test/test_onloadedmetadata.html similarity index 100% rename from content/media/video/test/test_onloadedmetadata.html rename to content/media/test/test_onloadedmetadata.html diff --git a/content/media/video/test/test_paused.html b/content/media/test/test_paused.html similarity index 100% rename from content/media/video/test/test_paused.html rename to content/media/test/test_paused.html diff --git a/content/media/video/test/test_paused_after_ended.html b/content/media/test/test_paused_after_ended.html similarity index 100% rename from content/media/video/test/test_paused_after_ended.html rename to content/media/test/test_paused_after_ended.html diff --git a/content/media/video/test/test_play.html b/content/media/test/test_play.html similarity index 100% rename from content/media/video/test/test_play.html rename to content/media/test/test_play.html diff --git a/content/media/video/test/test_progress1.html b/content/media/test/test_progress1.html similarity index 100% rename from content/media/video/test/test_progress1.html rename to content/media/test/test_progress1.html diff --git a/content/media/video/test/test_progress2.html b/content/media/test/test_progress2.html similarity index 100% rename from content/media/video/test/test_progress2.html rename to content/media/test/test_progress2.html diff --git a/content/media/video/test/test_progress3.html b/content/media/test/test_progress3.html similarity index 100% rename from content/media/video/test/test_progress3.html rename to content/media/test/test_progress3.html diff --git a/content/media/video/test/test_progress4.html b/content/media/test/test_progress4.html similarity index 100% rename from content/media/video/test/test_progress4.html rename to content/media/test/test_progress4.html diff --git a/content/media/video/test/test_readyState.html b/content/media/test/test_readyState.html similarity index 100% rename from content/media/video/test/test_readyState.html rename to content/media/test/test_readyState.html diff --git a/content/media/video/test/test_seek1.html b/content/media/test/test_seek1.html similarity index 100% rename from content/media/video/test/test_seek1.html rename to content/media/test/test_seek1.html diff --git a/content/media/video/test/test_seek2.html b/content/media/test/test_seek2.html similarity index 100% rename from content/media/video/test/test_seek2.html rename to content/media/test/test_seek2.html diff --git a/content/media/video/test/test_seek3.html b/content/media/test/test_seek3.html similarity index 100% rename from content/media/video/test/test_seek3.html rename to content/media/test/test_seek3.html diff --git a/content/media/video/test/test_seek4.html b/content/media/test/test_seek4.html similarity index 100% rename from content/media/video/test/test_seek4.html rename to content/media/test/test_seek4.html diff --git a/content/media/video/test/test_seek5.html b/content/media/test/test_seek5.html similarity index 100% rename from content/media/video/test/test_seek5.html rename to content/media/test/test_seek5.html diff --git a/content/media/video/test/test_seek6.html b/content/media/test/test_seek6.html similarity index 100% rename from content/media/video/test/test_seek6.html rename to content/media/test/test_seek6.html diff --git a/content/media/video/test/test_seek7.html b/content/media/test/test_seek7.html similarity index 100% rename from content/media/video/test/test_seek7.html rename to content/media/test/test_seek7.html diff --git a/content/media/video/test/test_seek8.html b/content/media/test/test_seek8.html similarity index 100% rename from content/media/video/test/test_seek8.html rename to content/media/test/test_seek8.html diff --git a/content/media/video/test/test_seek9.html b/content/media/test/test_seek9.html similarity index 100% rename from content/media/video/test/test_seek9.html rename to content/media/test/test_seek9.html diff --git a/content/media/video/test/test_source.html b/content/media/test/test_source.html similarity index 100% rename from content/media/video/test/test_source.html rename to content/media/test/test_source.html diff --git a/content/media/video/test/test_source_write.html b/content/media/test/test_source_write.html similarity index 100% rename from content/media/video/test/test_source_write.html rename to content/media/test/test_source_write.html diff --git a/content/media/video/test/test_standalone.html b/content/media/test/test_standalone.html similarity index 100% rename from content/media/video/test/test_standalone.html rename to content/media/test/test_standalone.html diff --git a/content/media/video/test/test_timeupdate1.html b/content/media/test/test_timeupdate1.html similarity index 100% rename from content/media/video/test/test_timeupdate1.html rename to content/media/test/test_timeupdate1.html diff --git a/content/media/video/test/test_timeupdate2.html b/content/media/test/test_timeupdate2.html similarity index 100% rename from content/media/video/test/test_timeupdate2.html rename to content/media/test/test_timeupdate2.html diff --git a/content/media/video/test/test_timeupdate3.html b/content/media/test/test_timeupdate3.html similarity index 100% rename from content/media/video/test/test_timeupdate3.html rename to content/media/test/test_timeupdate3.html diff --git a/content/media/video/test/test_videoDocumentTitle.html b/content/media/test/test_videoDocumentTitle.html similarity index 100% rename from content/media/video/test/test_videoDocumentTitle.html rename to content/media/test/test_videoDocumentTitle.html diff --git a/content/media/video/test/test_volume.html b/content/media/test/test_volume.html similarity index 100% rename from content/media/video/test/test_volume.html rename to content/media/test/test_volume.html diff --git a/content/media/video/test/test_wav_8bit.html b/content/media/test/test_wav_8bit.html similarity index 100% rename from content/media/video/test/test_wav_8bit.html rename to content/media/test/test_wav_8bit.html diff --git a/content/media/video/test/test_wav_ended1.html b/content/media/test/test_wav_ended1.html similarity index 100% rename from content/media/video/test/test_wav_ended1.html rename to content/media/test/test_wav_ended1.html diff --git a/content/media/video/test/test_wav_ended2.html b/content/media/test/test_wav_ended2.html similarity index 100% rename from content/media/video/test/test_wav_ended2.html rename to content/media/test/test_wav_ended2.html diff --git a/content/media/video/test/test_wav_list.html b/content/media/test/test_wav_list.html similarity index 100% rename from content/media/video/test/test_wav_list.html rename to content/media/test/test_wav_list.html diff --git a/content/media/video/test/test_wav_onloadedmetadata.html b/content/media/test/test_wav_onloadedmetadata.html similarity index 100% rename from content/media/video/test/test_wav_onloadedmetadata.html rename to content/media/test/test_wav_onloadedmetadata.html diff --git a/content/media/video/test/test_wav_seek1.html b/content/media/test/test_wav_seek1.html similarity index 100% rename from content/media/video/test/test_wav_seek1.html rename to content/media/test/test_wav_seek1.html diff --git a/content/media/video/test/test_wav_seek3.html b/content/media/test/test_wav_seek3.html similarity index 100% rename from content/media/video/test/test_wav_seek3.html rename to content/media/test/test_wav_seek3.html diff --git a/content/media/video/test/test_wav_seek4.html b/content/media/test/test_wav_seek4.html similarity index 100% rename from content/media/video/test/test_wav_seek4.html rename to content/media/test/test_wav_seek4.html diff --git a/content/media/video/test/test_wav_seek5.html b/content/media/test/test_wav_seek5.html similarity index 100% rename from content/media/video/test/test_wav_seek5.html rename to content/media/test/test_wav_seek5.html diff --git a/content/media/video/test/test_wav_seek6.html b/content/media/test/test_wav_seek6.html similarity index 100% rename from content/media/video/test/test_wav_seek6.html rename to content/media/test/test_wav_seek6.html diff --git a/content/media/video/test/test_wav_seek7.html b/content/media/test/test_wav_seek7.html similarity index 100% rename from content/media/video/test/test_wav_seek7.html rename to content/media/test/test_wav_seek7.html diff --git a/content/media/video/test/test_wav_seek8.html b/content/media/test/test_wav_seek8.html similarity index 100% rename from content/media/video/test/test_wav_seek8.html rename to content/media/test/test_wav_seek8.html diff --git a/content/media/video/test/test_wav_seek_past_end.html b/content/media/test/test_wav_seek_past_end.html similarity index 100% rename from content/media/video/test/test_wav_seek_past_end.html rename to content/media/test/test_wav_seek_past_end.html diff --git a/content/media/video/test/test_wav_seek_then_play.html b/content/media/test/test_wav_seek_then_play.html similarity index 100% rename from content/media/video/test/test_wav_seek_then_play.html rename to content/media/test/test_wav_seek_then_play.html diff --git a/content/media/video/test/test_wav_standalone.html b/content/media/test/test_wav_standalone.html similarity index 100% rename from content/media/video/test/test_wav_standalone.html rename to content/media/test/test_wav_standalone.html diff --git a/content/media/video/test/test_wav_timeupdate1.html b/content/media/test/test_wav_timeupdate1.html similarity index 100% rename from content/media/video/test/test_wav_timeupdate1.html rename to content/media/test/test_wav_timeupdate1.html diff --git a/content/media/video/test/test_wav_timeupdate2.html b/content/media/test/test_wav_timeupdate2.html similarity index 100% rename from content/media/video/test/test_wav_timeupdate2.html rename to content/media/test/test_wav_timeupdate2.html diff --git a/content/media/video/test/test_wav_trailing.html b/content/media/test/test_wav_trailing.html similarity index 100% rename from content/media/video/test/test_wav_trailing.html rename to content/media/test/test_wav_trailing.html diff --git a/content/media/video/test/test_wav_trunc.html b/content/media/test/test_wav_trunc.html similarity index 100% rename from content/media/video/test/test_wav_trunc.html rename to content/media/test/test_wav_trunc.html diff --git a/content/media/video/test/test_wav_trunc_seek.html b/content/media/test/test_wav_trunc_seek.html similarity index 100% rename from content/media/video/test/test_wav_trunc_seek.html rename to content/media/test/test_wav_trunc_seek.html diff --git a/content/media/video/test/use_large_cache.js b/content/media/test/use_large_cache.js similarity index 100% rename from content/media/video/test/use_large_cache.js rename to content/media/test/use_large_cache.js diff --git a/content/media/video/Makefile.in b/content/media/video/Makefile.in deleted file mode 100644 index af07844ea05..00000000000 --- a/content/media/video/Makefile.in +++ /dev/null @@ -1,54 +0,0 @@ -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is Mozilla code. -# -# The Initial Developer of the Original Code is the Mozilla Corporation. -# Portions created by the Initial Developer are Copyright (C) 2007 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# Chris Double -# -# Alternatively, the contents of this file may be used under the terms of -# either the GNU General Public License Version 2 or later (the "GPL"), or -# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -DEPTH = ../../.. -topsrcdir = @top_srcdir@ -srcdir = @srcdir@ -VPATH = @srcdir@ - -include $(DEPTH)/config/autoconf.mk - -PARALLEL_DIRS = \ - public \ - src \ - $(NULL) - -ifdef ENABLE_TESTS -DIRS += test -endif - -include $(topsrcdir)/config/rules.mk - diff --git a/content/media/video/public/Makefile.in b/content/media/wave/Makefile.in similarity index 77% rename from content/media/video/public/Makefile.in rename to content/media/wave/Makefile.in index e8116eadf16..3e52abdff99 100644 --- a/content/media/video/public/Makefile.in +++ b/content/media/wave/Makefile.in @@ -34,7 +34,7 @@ # # ***** END LICENSE BLOCK ***** -DEPTH = ../../../.. +DEPTH = ../../.. topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ @@ -42,30 +42,55 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = content +LIBRARY_NAME = gkconwave_s +LIBXUL_LIBRARY = 1 -EXPORTS = \ - nsMediaDecoder.h \ - nsMediaStream.h \ - nsMediaCache.h \ +REQUIRES = \ + xpcom \ + string \ + gfx \ + content \ + thebes \ + layout \ + widget \ + dom \ + js \ + locale \ + unicharutil \ + webshell \ + uriloader \ + htmlparser \ + necko \ + view \ + pref \ + docshell \ + xpconnect \ + xuldoc \ + caps \ + editor \ + imglib2 \ + mimetype \ + exthandler \ + uconv \ + intl \ + plugin \ + cairo \ + libpixman \ $(NULL) -ifdef MOZ_SYDNEYAUDIO -EXPORTS += \ - nsAudioStream.h \ - $(NULL) -endif - -ifdef MOZ_OGG -EXPORTS += \ - nsChannelReader.h \ - nsOggDecoder.h \ - $(NULL) -endif - -ifdef MOZ_WAVE EXPORTS += \ nsWaveDecoder.h \ $(NULL) -endif + +CPPSRCS = \ + nsWaveDecoder.cpp \ + $(NULL) + +FORCE_STATIC_LIB = 1 include $(topsrcdir)/config/rules.mk + +INCLUDES += \ + -I$(srcdir)/../../base/src \ + -I$(srcdir)/../../html/content/src \ + $(NULL) diff --git a/content/media/video/src/nsWaveDecoder.cpp b/content/media/wave/nsWaveDecoder.cpp similarity index 100% rename from content/media/video/src/nsWaveDecoder.cpp rename to content/media/wave/nsWaveDecoder.cpp diff --git a/content/media/video/public/nsWaveDecoder.h b/content/media/wave/nsWaveDecoder.h similarity index 100% rename from content/media/video/public/nsWaveDecoder.h rename to content/media/wave/nsWaveDecoder.h diff --git a/layout/build/Makefile.in b/layout/build/Makefile.in index 6aad99a5b99..fe09deb1200 100644 --- a/layout/build/Makefile.in +++ b/layout/build/Makefile.in @@ -143,7 +143,7 @@ SHARED_LIBRARY_LIBS = \ ifdef MOZ_MEDIA SHARED_LIBRARY_LIBS += \ - $(DEPTH)/content/media/video/src/$(LIB_PREFIX)gkconvideo_s.$(LIB_SUFFIX) \ + $(DEPTH)/content/media/$(LIB_PREFIX)gkconmedia_s.$(LIB_SUFFIX) \ $(NULL) endif @@ -155,6 +155,13 @@ SHARED_LIBRARY_LIBS += \ $(DEPTH)/media/liboggz/src/liboggz/$(LIB_PREFIX)oggz.$(LIB_SUFFIX) \ $(DEPTH)/media/libtheora/lib/$(LIB_PREFIX)theora.$(LIB_SUFFIX) \ $(DEPTH)/media/libvorbis/lib/$(LIB_PREFIX)vorbis.$(LIB_SUFFIX) \ + $(DEPTH)/content/media/ogg/$(LIB_PREFIX)gkconogg_s.$(LIB_SUFFIX) \ + $(NULL) +endif + +ifdef MOZ_WAVE +SHARED_LIBRARY_LIBS += \ + $(DEPTH)/content/media/wave/$(LIB_PREFIX)gkconwave_s.$(LIB_SUFFIX) \ $(NULL) endif diff --git a/testing/crashtest/crashtests.list b/testing/crashtest/crashtests.list index 8648aa262ad..bbfe4225cf0 100644 --- a/testing/crashtest/crashtests.list +++ b/testing/crashtest/crashtests.list @@ -17,7 +17,7 @@ include ../../content/xul/content/crashtests/crashtests.list include ../../content/xul/document/crashtests/crashtests.list include ../../content/xul/templates/src/crashtests/crashtests.list include ../../content/mathml/content/crashtests/crashtests.list -include ../../content/media/video/test/crashtests/crashtests.list +include ../../content/media/test/crashtests/crashtests.list include ../../docshell/base/crashtests/crashtests.list diff --git a/toolkit/toolkit-makefiles.sh b/toolkit/toolkit-makefiles.sh index cec8729cc5a..243d38b81ea 100644 --- a/toolkit/toolkit-makefiles.sh +++ b/toolkit/toolkit-makefiles.sh @@ -1053,10 +1053,7 @@ fi # MOZ_COMPONENTLIB if [ "$MOZ_MEDIA" ]; then add_makefiles " content/media/Makefile - content/media/video/Makefile - content/media/video/public/Makefile - content/media/video/src/Makefile - content/media/video/test/Makefile + content/media/test/Makefile " fi @@ -1068,6 +1065,13 @@ if [ "$MOZ_OGG" ]; then $MAKEFILES_libogg $MAKEFILES_libfishsound $MAKEFILES_liboggplay + content/media/ogg/Makefile + " +fi + +if [ "$MOZ_WAVE" ]; then + add_makefiles " + content/media/wave/Makefile " fi