summaryrefslogtreecommitdiffstats
path: root/dom/media/imagecapture
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-04-22 02:32:20 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-26 10:18:28 +0200
commitb738ccc61b05e4848c0e8d0400a8aee770f591a2 (patch)
tree9d582273d9295a610f8e9d86f1ff20282c570fd0 /dom/media/imagecapture
parent1c3a9a40e5450c2b39f0cea1ffa9143b72931fe9 (diff)
downloadUXP-b738ccc61b05e4848c0e8d0400a8aee770f591a2.tar
UXP-b738ccc61b05e4848c0e8d0400a8aee770f591a2.tar.gz
UXP-b738ccc61b05e4848c0e8d0400a8aee770f591a2.tar.lz
UXP-b738ccc61b05e4848c0e8d0400a8aee770f591a2.tar.xz
UXP-b738ccc61b05e4848c0e8d0400a8aee770f591a2.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')
-rw-r--r--dom/media/imagecapture/CaptureTask.cpp18
-rw-r--r--dom/media/imagecapture/CaptureTask.h18
-rw-r--r--dom/media/imagecapture/moz.build2
3 files changed, 19 insertions, 19 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))
diff --git a/dom/media/imagecapture/CaptureTask.h b/dom/media/imagecapture/CaptureTask.h
index 2b4f0a04c..f9c810158 100644
--- a/dom/media/imagecapture/CaptureTask.h
+++ b/dom/media/imagecapture/CaptureTask.h
@@ -86,6 +86,24 @@ protected:
bool mPrincipalChanged;
};
+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;
+};
+
} // namespace mozilla
#endif // CAPTURETASK_H
diff --git a/dom/media/imagecapture/moz.build b/dom/media/imagecapture/moz.build
index f47649c5e..c1a58ff37 100644
--- a/dom/media/imagecapture/moz.build
+++ b/dom/media/imagecapture/moz.build
@@ -8,7 +8,7 @@ EXPORTS.mozilla.dom += [
'ImageCapture.h'
]
-UNIFIED_SOURCES += [
+SOURCES += [
'CaptureTask.cpp',
'ImageCapture.cpp',
]