| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // OS X implementation of VideoCaptureDevice, using QTKit as native capture API. | 5 // OS X implementation of VideoCaptureDevice, using QTKit as native capture API. |
| 6 | 6 |
| 7 #ifndef MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ | 7 #ifndef MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ |
| 8 #define MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ | 8 #define MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // Flag indicating the internal state. | 46 // Flag indicating the internal state. |
| 47 enum InternalState { | 47 enum InternalState { |
| 48 kNotInitialized, | 48 kNotInitialized, |
| 49 kIdle, | 49 kIdle, |
| 50 kAllocated, | 50 kAllocated, |
| 51 kCapturing, | 51 kCapturing, |
| 52 kError | 52 kError |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 VideoCaptureDevice::Name device_name_; | 55 Name device_name_; |
| 56 VideoCaptureDevice::EventHandler* observer_; | 56 VideoCaptureDevice::EventHandler* observer_; |
| 57 InternalState state_; | 57 InternalState state_; |
| 58 | 58 |
| 59 VideoCaptureDeviceQTKit* capture_device_; | 59 VideoCaptureDeviceQTKit* capture_device_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceMac); | 61 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceMac); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace media | 64 } // namespace media |
| 65 | 65 |
| 66 #endif // MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ | 66 #endif // MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ |
| OLD | NEW |