Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: media/video/capture/mac/video_capture_device_mac.h

Issue 17846002: Refactor the VideoCaptureDevice::Name struct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/video/capture/linux/video_capture_device_linux.cc ('k') | media/video/capture/mac/video_capture_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698