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

Unified Diff: webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m

Issue 2479153002: Rename media constraints model and store. (Closed)
Patch Set: Rebase master Created 4 years, 1 month 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
Index: webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m
diff --git a/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m b/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m
index 63f5c43483ba48f19bedafe9a1b331850dcc6917..0abcc1efbb1cc11e0d699a4d726bb846320fd447 100644
--- a/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m
+++ b/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m
@@ -9,7 +9,7 @@
*/
#import "ARDSettingsViewController.h"
-#import "ARDMediaConstraintsModel.h"
+#import "ARDSettingsModel.h"
NS_ASSUME_NONNULL_BEGIN
@@ -19,7 +19,7 @@ typedef NS_ENUM(int, ARDSettingsSections) {
};
@interface ARDSettingsViewController () {
- ARDMediaConstraintsModel *_mediaConstraintsModel;
+ ARDSettingsModel *_settingsModel;
}
@end
@@ -27,10 +27,10 @@ typedef NS_ENUM(int, ARDSettingsSections) {
@implementation ARDSettingsViewController
- (instancetype)initWithStyle:(UITableViewStyle)style
- mediaConstraintsModel:(ARDMediaConstraintsModel *)mediaConstraintsModel {
+ settingsModel:(ARDSettingsModel *)settingsModel {
self = [super initWithStyle:style];
if (self) {
- _mediaConstraintsModel = mediaConstraintsModel;
+ _settingsModel = settingsModel;
}
return self;
}
@@ -51,7 +51,7 @@ typedef NS_ENUM(int, ARDSettingsSections) {
#pragma mark - Data source
- (NSArray<NSString *> *)mediaConstraintsArray {
- return _mediaConstraintsModel.availableVideoResoultionsMediaConstraints;
+ return _settingsModel.availableVideoResoultionsMediaConstraints;
}
#pragma mark -
@@ -65,7 +65,7 @@ typedef NS_ENUM(int, ARDSettingsSections) {
}
- (void)selectCurrentlyStoredOrDefaultMediaConstraints {
- NSString *currentSelection = [_mediaConstraintsModel currentVideoResoultionConstraintFromStore];
+ NSString *currentSelection = [_settingsModel currentVideoResoultionConstraintFromStore];
NSUInteger indexOfSelection = [[self mediaConstraintsArray] indexOfObject:currentSelection];
NSIndexPath *pathToBeSelected = [NSIndexPath indexPathForRow:indexOfSelection inSection:0];
@@ -177,7 +177,7 @@ typedef NS_ENUM(int, ARDSettingsSections) {
cell.accessoryType = UITableViewCellAccessoryCheckmark;
NSString *mediaConstraintsString = self.mediaConstraintsArray[indexPath.row];
- [_mediaConstraintsModel storeVideoResoultionConstraint:mediaConstraintsString];
+ [_settingsModel storeVideoResoultionConstraint:mediaConstraintsString];
}
- (NSIndexPath *)tableView:(UITableView *)tableView

Powered by Google App Engine
This is Rietveld 408576698