summaryrefslogtreecommitdiffstats
path: root/dom/media/imagecapture/CaptureTask.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-04-22 02:32:20 +0000
committerMoonchild <moonchild@palemoon.org>2020-04-22 13:18:39 +0000
commit347f3bae7319cf7be6556cefae219b5fbe326ec8 (patch)
tree17b15022686b8de8fd932ae76c25583c60824157 /dom/media/imagecapture/CaptureTask.cpp
parent6f37b2107aaa44a02a3c9abb015d2a65cb9bebee (diff)
downloadUXP-347f3bae7319cf7be6556cefae219b5fbe326ec8.tar
UXP-347f3bae7319cf7be6556cefae219b5fbe326ec8.tar.gz
UXP-347f3bae7319cf7be6556cefae219b5fbe326ec8.tar.lz
UXP-347f3bae7319cf7be6556cefae219b5fbe326ec8.tar.xz
UXP-347f3bae7319cf7be6556cefae219b5fbe326ec8.zip
Issue #80 - De-unify dom/media part 1 (updated reland)
This de-unifies up to and including dom/media/platforms with the exception of dom/media/platforms/wmf, because that one throws weird errors in the Win SDK which don't have a clear cause (yet)
Diffstat (limited to 'dom/media/imagecapture/CaptureTask.cpp')
-rw-r--r--dom/media/imagecapture/CaptureTask.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/dom/media/imagecapture/CaptureTask.cpp b/dom/media/imagecapture/CaptureTask.cpp
index 589ba5a42..9f1eea9ef 100644
--- a/dom/media/imagecapture/CaptureTask.cpp
+++ b/dom/media/imagecapture/CaptureTask.cpp
@@ -15,24 +15,6 @@
namespace mozilla {
-class CaptureTask::MediaStreamEventListener : public MediaStreamTrackListener
-{
-public:
- explicit MediaStreamEventListener(CaptureTask* aCaptureTask)
- : mCaptureTask(aCaptureTask) {};
-
- // MediaStreamListener methods.
- void NotifyEnded() override
- {
- if(!mCaptureTask->mImageGrabbedOrTrackEnd) {
- mCaptureTask->PostTrackEndEvent();
- }
- }
-
-private:
- CaptureTask* mCaptureTask;
-};
-
CaptureTask::CaptureTask(dom::ImageCapture* aImageCapture)
: mImageCapture(aImageCapture)
, mEventListener(new MediaStreamEventListener(this))