Chromium Code Reviews| Index: media/capture/video/video_capture_device.h |
| diff --git a/media/capture/video/video_capture_device.h b/media/capture/video/video_capture_device.h |
| index ed40a9a178be281e6757b0398bca7cc6e2e5a761..7a1f9cdeb89321ede10d57899ad009df93bb8ed1 100644 |
| --- a/media/capture/video/video_capture_device.h |
| +++ b/media/capture/video/video_capture_device.h |
| @@ -299,6 +299,14 @@ class MEDIA_EXPORT VideoCaptureDevice { |
| // happens first. |
| virtual void StopAndDeAllocate() = 0; |
| + // Asynchronously takes a photo, possibly reconfiguring the capture objects |
| + // and/or interrupting the capture flow. Returns false if taking the picture |
| + // could not be scheduled at all, or else runs |photo_callback| (on the thread |
| + // where TakePhoto() is run). |
| + using TakePhotoCallback = |
| + base::Callback<void(const std::string&, std::unique_ptr<std::string>)>; |
| + virtual bool TakePhoto(const TakePhotoCallback& photo_callback); |
|
miu
2016/05/04 23:45:50
Consider adding WARN_UNUSED_RESULT (just before th
mcasas
2016/05/05 00:57:12
Done.
|
| + |
| // Gets the power line frequency, either from the params if specified by the |
| // user or from the current system time zone. |
| PowerLineFrequency GetPowerLineFrequency( |