#include "content/browser/media/capture/aura_window_to_mojo_device_adapter.h"
#include <memory>
#include <utility>
#include "base/task/bind_post_task.h"
#include "content/browser/media/capture/aura_window_video_capture_device.h"
#include "content/public/browser/desktop_media_id.h"
#include "mojo/public/cpp/bindings/callback_helpers.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "services/video_capture/public/cpp/receiver_mojo_to_media_adapter.h"
#include "services/video_capture/public/mojom/device.mojom.h"
namespace content {
AuraWindowToMojoDeviceAdapter::AuraWindowToMojoDeviceAdapter(
const content::DesktopMediaID& device_id)
: … { … }
AuraWindowToMojoDeviceAdapter::~AuraWindowToMojoDeviceAdapter() { … }
void AuraWindowToMojoDeviceAdapter::Start(
const media::VideoCaptureParams& requested_settings,
mojo::PendingRemote<video_capture::mojom::VideoFrameHandler>
handler_pending_remote) { … }
void AuraWindowToMojoDeviceAdapter::MaybeSuspend() { … }
void AuraWindowToMojoDeviceAdapter::Resume() { … }
void AuraWindowToMojoDeviceAdapter::GetPhotoState(
GetPhotoStateCallback callback) { … }
void AuraWindowToMojoDeviceAdapter::SetPhotoOptions(
media::mojom::PhotoSettingsPtr settings,
SetPhotoOptionsCallback callback) { … }
void AuraWindowToMojoDeviceAdapter::TakePhoto(TakePhotoCallback callback) { … }
void AuraWindowToMojoDeviceAdapter::ProcessFeedback(
const media::VideoCaptureFeedback& feedback) { … }
void AuraWindowToMojoDeviceAdapter::RequestRefreshFrame() { … }
}