Changeset 202629 in webkit
- Timestamp:
- Jun 29, 2016 10:42:01 AM (8 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r202628 r202629 1 2016-06-29 Jeremy Jones <jeremyj@apple.com> 2 3 Replace MPAudioVideoRoutingActionSheet with MPAVRoutingSheet. 4 https://bugs.webkit.org/show_bug.cgi?id=159161 5 <rdar://problem/26017691> 6 7 Reviewed by Sam Weinig. 8 9 Replace MPAudioVideoRoutingActionSheet SPI with MPAVRoutingSheet SPI. 10 11 * platform/spi/ios/MediaPlayerSPI.h: 12 1 13 2016-06-29 Alejandro G. Castro <alex@igalia.com> 2 14 -
trunk/Source/WebCore/platform/spi/ios/MediaPlayerSPI.h
r190336 r202629 34 34 35 35 #import <MediaPlayer/MPAVRoutingController.h> 36 #import <MediaPlayer/MPA udioVideoRoutingActionSheet.h>36 #import <MediaPlayer/MPAVRoutingSheet.h> 37 37 #import <MediaPlayer/MPAudioVideoRoutingPopoverController.h> 38 38 … … 73 73 #pragma clang diagnostic push 74 74 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 75 @interface MPA udioVideoRoutingActionSheet : UIActionSheet75 @interface MPAVRoutingSheet : UIView 76 76 @end 77 77 #pragma clang diagnostic pop 78 78 79 @interface MPAudioVideoRoutingActionSheet () 80 - (id)initWithType:(MPAVItemType)avItemType; 81 - (void)showWithValidInterfaceOrientationMaskBlock:(UIInterfaceOrientationMask (^)(void))block completionHandler:(void (^)())completionHandler; 79 @interface MPAVRoutingSheet () 80 @property (nonatomic, assign, setter=setAVItemType:) MPAVItemType avItemType; 81 82 @property (nonatomic, assign) BOOL mirroringOnly; 83 84 - (id)initWithAVItemType:(MPAVItemType)avItemType; 85 86 - (void)showInView:(UIView *)view withCompletionHandler:(void (^)(void))completionHandler; 87 88 - (void)dismiss; 82 89 @end 83 90 -
trunk/Source/WebKit2/ChangeLog
r202621 r202629 1 2016-06-29 Jeremy Jones <jeremyj@apple.com> 2 3 Replace MPAudioVideoRoutingActionSheet with MPAVRoutingSheet. 4 https://bugs.webkit.org/show_bug.cgi?id=159161 5 <rdar://problem/26017691> 6 7 Reviewed by Sam Weinig. 8 9 MPAudioVideoRoutingActionSheet is being replaced by MPAVRoutingSheet, 10 with only minor changes to the interface. 11 12 * UIProcess/ios/forms/WKAirPlayRoutePicker.mm: 13 (-[WKAirPlayRoutePicker dealloc]): 14 (-[WKAirPlayRoutePicker showAirPlayPickerIPhone:]): 15 1 16 2016-06-29 Carlos Garcia Campos <cgarcia@igalia.com> 2 17 -
trunk/Source/WebKit2/UIProcess/ios/forms/WKAirPlayRoutePicker.mm
r196260 r202629 43 43 SOFT_LINK_CLASS(MediaPlayer, MPAVRoutingController) 44 44 SOFT_LINK_CLASS(MediaPlayer, MPAudioVideoRoutingPopoverController) 45 SOFT_LINK_CLASS(MediaPlayer, MPA udioVideoRoutingActionSheet)45 SOFT_LINK_CLASS(MediaPlayer, MPAVRoutingSheet) 46 46 47 47 using namespace WebKit; … … 50 50 RetainPtr<MPAVRoutingController> _routingController; 51 51 RetainPtr<MPAudioVideoRoutingPopoverController> _popoverController; // iPad 52 RetainPtr<MPA udioVideoRoutingActionSheet> _actionSheet;// iPhone52 RetainPtr<MPAVRoutingSheet> _actionSheet; // iPhone 53 53 WKContentView* _view; // Weak reference. 54 54 } … … 66 66 { 67 67 // The ActionSheet's completion handler will release and clear the ActionSheet. 68 [_actionSheet dismiss WithClickedButtonIndex:[_actionSheet cancelButtonIndex] animated:YES];68 [_actionSheet dismiss]; 69 69 [self _dismissAirPlayRoutePickerIPad]; 70 70 … … 135 135 return; 136 136 137 _actionSheet = adoptNS([allocMPA udioVideoRoutingActionSheetInstance() initWithType:itemType]);137 _actionSheet = adoptNS([allocMPAVRoutingSheetInstance() initWithAVItemType:itemType]); 138 138 139 [_actionSheet 140 showWithValidInterfaceOrientationMaskBlock:^UIInterfaceOrientationMask { 141 return UIInterfaceOrientationMaskPortrait; 142 } 143 completionHandler:^{ 144 [_routingController setDiscoveryMode:MPRouteDiscoveryModeDisabled]; 145 _routingController = nil; 146 _actionSheet = nil; 147 } 148 ]; 139 [_actionSheet showInView:_view withCompletionHandler:^{ 140 [_routingController setDiscoveryMode:MPRouteDiscoveryModeDisabled]; 141 _routingController = nil; 142 _actionSheet = nil; 143 }]; 149 144 } 150 145
Note: See TracChangeset
for help on using the changeset viewer.