Index: media/video/capture/video_capture_device.h |
=================================================================== |
--- media/video/capture/video_capture_device.h (revision 105502) |
+++ media/video/capture/video_capture_device.h (working copy) |
@@ -22,7 +22,6 @@ |
class MEDIA_EXPORT VideoCaptureDevice { |
public: |
- |
struct Name { |
// Friendly name of a device |
std::string device_name; |
@@ -69,6 +68,8 @@ |
// Called when VideoCaptureDevice::Allocate has been called |
// to inform of the resulting frame size and color format. |
virtual void OnFrameInfo(const Capability& info) = 0; |
+ // Notify handler of state of the device. |
+ virtual void OnDeviceState(bool in_use) = 0; |
perkj_chrome
2011/10/17 08:39:43
Why does the device need to know? Should be handle
wjia(left Chromium)
2011/10/21 00:56:13
See explanation in video_capture_device_linux.cc
|
protected: |
virtual ~EventHandler() {} |