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

Side by Side Diff: media/base/mac/avfoundation_glue.h

Issue 1551943002: Rewrite most of the scopers in //base/mac to use ScopedTypeRef or ScopedGeneric. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix iOS Created 4 years, 11 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // AVFoundation API is only introduced in Mac OS X > 10.6, and there is only one 5 // AVFoundation API is only introduced in Mac OS X > 10.6, and there is only one
6 // build of Chromium, so the (potential) linking with AVFoundation has to happen 6 // build of Chromium, so the (potential) linking with AVFoundation has to happen
7 // in runtime. For this to be clean, an AVFoundationGlue class is defined to try 7 // in runtime. For this to be clean, an AVFoundationGlue class is defined to try
8 // and load these AVFoundation system libraries. If it succeeds, subsequent 8 // and load these AVFoundation system libraries. If it succeeds, subsequent
9 // clients can use AVFoundation via the rest of the classes declared in this 9 // clients can use AVFoundation via the rest of the classes declared in this
10 // file. 10 // file.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 // Originally AVFrameRateRange and coming from AVCaptureDevice.h. 88 // Originally AVFrameRateRange and coming from AVCaptureDevice.h.
89 MEDIA_EXPORT 89 MEDIA_EXPORT
90 @interface CrAVFrameRateRange : NSObject 90 @interface CrAVFrameRateRange : NSObject
91 91
92 - (Float64)maxFrameRate; 92 - (Float64)maxFrameRate;
93 93
94 @end 94 @end
95 95
96 MEDIA_EXPORT 96 MEDIA_EXPORT
97 @interface CrAVCaptureInput // Originally from AVCaptureInput.h. 97 @interface CrAVCaptureInput : NSObject // Originally from AVCaptureInput.h.
98 @end 98 @end
99 99
100 MEDIA_EXPORT 100 MEDIA_EXPORT
101 @interface CrAVCaptureOutput // Originally from AVCaptureOutput.h. 101 @interface CrAVCaptureOutput : NSObject // Originally from AVCaptureOutput.h.
102 @end 102 @end
103 103
104 // Originally AVCaptureSession and coming from AVCaptureSession.h. 104 // Originally AVCaptureSession and coming from AVCaptureSession.h.
105 MEDIA_EXPORT 105 MEDIA_EXPORT
106 @interface CrAVCaptureSession : NSObject 106 @interface CrAVCaptureSession : NSObject
107 107
108 - (void)release; 108 - (void)release;
109 - (void)addInput:(CrAVCaptureInput*)input; 109 - (void)addInput:(CrAVCaptureInput*)input;
110 - (void)removeInput:(CrAVCaptureInput*)input; 110 - (void)removeInput:(CrAVCaptureInput*)input;
111 - (void)addOutput:(CrAVCaptureOutput*)output; 111 - (void)addOutput:(CrAVCaptureOutput*)output;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 @interface AVCaptureDeviceInputGlue : NSObject 175 @interface AVCaptureDeviceInputGlue : NSObject
176 176
177 + (CrAVCaptureDeviceInput*)deviceInputWithDevice:(CrAVCaptureDevice*)device 177 + (CrAVCaptureDeviceInput*)deviceInputWithDevice:(CrAVCaptureDevice*)device
178 error:(NSError**)outError; 178 error:(NSError**)outError;
179 179
180 @end 180 @end
181 181
182 #endif // defined(__OBJC__) 182 #endif // defined(__OBJC__)
183 183
184 #endif // MEDIA_BASE_MAC_AVFOUNDATION_GLUE_H_ 184 #endif // MEDIA_BASE_MAC_AVFOUNDATION_GLUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698