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

Unified Diff: webrtc/api/objc/RTCNSGLVideoView.h

Issue 1542473003: Move Objective-C video renderers to webrtc/api/objc. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@updateI420Frame
Patch Set: Merge master 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/objc/RTCEAGLVideoView.m ('k') | webrtc/api/objc/RTCNSGLVideoView.m » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/objc/RTCNSGLVideoView.h
diff --git a/webrtc/base/objc/NSString+StdString.h b/webrtc/api/objc/RTCNSGLVideoView.h
similarity index 54%
copy from webrtc/base/objc/NSString+StdString.h
copy to webrtc/api/objc/RTCNSGLVideoView.h
index 8bf6cc94be0346e398ab1a980af6378f06ccb7a5..27eb31e9af12a72c8fefccfd89cc6cc5d2ea2f89 100644
--- a/webrtc/base/objc/NSString+StdString.h
+++ b/webrtc/api/objc/RTCNSGLVideoView.h
@@ -8,18 +8,26 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#import <Foundation/Foundation.h>
+#if TARGET_OS_IPHONE
+#error "This file targets OSX."
+#endif
-#include <string>
+#import <AppKit/NSOpenGLView.h>
+
+#import "RTCVideoRenderer.h"
NS_ASSUME_NONNULL_BEGIN
-@interface NSString (StdString)
+@class RTCNSGLVideoView;
+@protocol RTCNSGLVideoViewDelegate
+
+- (void)videoView:(RTCNSGLVideoView *)videoView didChangeVideoSize:(CGSize)size;
+
+@end
-@property(nonatomic, readonly) std::string stdString;
+@interface RTCNSGLVideoView : NSOpenGLView <RTCVideoRenderer>
-+ (std::string)stdStringForString:(NSString *)nsString;
-+ (NSString *)stringForStdString:(const std::string&)stdString;
+@property(nonatomic, weak) id<RTCNSGLVideoViewDelegate> delegate;
@end
« no previous file with comments | « webrtc/api/objc/RTCEAGLVideoView.m ('k') | webrtc/api/objc/RTCNSGLVideoView.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698