зеркало из https://github.com/mozilla/gecko-dev.git
merge mozilla-central to mozilla-inbound. CLOSED TREE
This commit is contained in:
Коммит
953d3fa662
|
@ -9,6 +9,9 @@
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
|
|
||||||
|
using dom::MediaSourceEnum;
|
||||||
|
using dom::MediaTrackSettings;
|
||||||
|
|
||||||
// These need a definition somewhere because template
|
// These need a definition somewhere because template
|
||||||
// code is allowed to take their address, and they aren't
|
// code is allowed to take their address, and they aren't
|
||||||
// guaranteed to have one without this.
|
// guaranteed to have one without this.
|
||||||
|
@ -16,7 +19,7 @@ const unsigned int MediaEngineSource::kMaxDeviceNameLength;
|
||||||
const unsigned int MediaEngineSource::kMaxUniqueIdLength;
|
const unsigned int MediaEngineSource::kMaxUniqueIdLength;
|
||||||
|
|
||||||
/* static */ bool
|
/* static */ bool
|
||||||
MediaEngineSource::IsVideo(dom::MediaSourceEnum aSource)
|
MediaEngineSource::IsVideo(MediaSourceEnum aSource)
|
||||||
{
|
{
|
||||||
switch (aSource) {
|
switch (aSource) {
|
||||||
case MediaSourceEnum::Camera:
|
case MediaSourceEnum::Camera:
|
||||||
|
@ -64,9 +67,9 @@ MediaEngineSource::TakePhoto(MediaEnginePhotoCallback* aCallback)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
MediaEngineSource::GetSettings(dom::MediaTrackSettings& aOutSettings) const
|
MediaEngineSource::GetSettings(MediaTrackSettings& aOutSettings) const
|
||||||
{
|
{
|
||||||
dom::MediaTrackSettings empty;
|
MediaTrackSettings empty;
|
||||||
aOutSettings = empty;
|
aOutSettings = empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
|
|
||||||
#include "MediaEngineSource.h"
|
#include "MediaEngineSource.h"
|
||||||
#include "MediaManager.h"
|
|
||||||
#include "nsIScriptError.h"
|
#include "nsIScriptError.h"
|
||||||
#include "mozilla/dom/MediaStreamTrackBinding.h"
|
#include "mozilla/dom/MediaStreamTrackBinding.h"
|
||||||
|
#include "mozilla/MediaManager.h"
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче