⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176441 in webkit


Ignore:
Timestamp:
Nov 20, 2014, 10:59:12 PM (12 years ago)
Author:
mitz@apple.com
Message:

Build fix.

  • UIProcess/ios/forms/WKAirPlayRoutePicker.mm:

(-[WKAirPlayRoutePicker showAirPlayPickerIPad:fromRect:]): Cast the return value of
[getMPAudioVideoRoutingPopoverControllerClass() alloc] to resolve ambiguity about which
-initWithType: we are calling.
(-[WKAirPlayRoutePicker showAirPlayPickerIPhone:]): Cast to resolve ambiguity.
(-[WKAirPlayRoutePicker show:fromRect:]): Cast for consistency.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r176437 r176441  
     12014-11-20  Dan Bernstein  <mitz@apple.com>
     2
     3        Build fix.
     4
     5        * UIProcess/ios/forms/WKAirPlayRoutePicker.mm:
     6        (-[WKAirPlayRoutePicker showAirPlayPickerIPad:fromRect:]): Cast the return value of
     7        [getMPAudioVideoRoutingPopoverControllerClass() alloc] to resolve ambiguity about which
     8        -initWithType: we are calling.
     9        (-[WKAirPlayRoutePicker showAirPlayPickerIPhone:]): Cast to resolve ambiguity.
     10        (-[WKAirPlayRoutePicker show:fromRect:]): Cast for consistency.
     11
    1122014-11-20  Benjamin Poulain  <bpoulain@apple.com>
    213
  • trunk/Source/WebKit2/UIProcess/ios/forms/WKAirPlayRoutePicker.mm

    r176206 r176441  
    117117        return;
    118118
    119     _popoverController = adoptNS([[getMPAudioVideoRoutingPopoverControllerClass() alloc] initWithType:itemType]);
     119    _popoverController = adoptNS([(MPAudioVideoRoutingPopoverController *)[getMPAudioVideoRoutingPopoverControllerClass() alloc] initWithType:itemType]);
    120120    [_popoverController setDelegate:self];
    121121
     
    132132        return;
    133133
    134     _actionSheet = adoptNS([[getMPAudioVideoRoutingActionSheetClass() alloc] initWithType:itemType]);
     134    _actionSheet = adoptNS([(MPAudioVideoRoutingActionSheet *)[getMPAudioVideoRoutingActionSheetClass() alloc] initWithType:itemType]);
    135135
    136136    [_actionSheet
     
    147147- (void)show:(BOOL)hasVideo fromRect:(CGRect)elementRect
    148148{
    149     _routingController = adoptNS([[getMPAVRoutingControllerClass() alloc] initWithName:@"WebKit2 - HTML media element showing AirPlay route picker"]);
     149    _routingController = adoptNS([(MPAVRoutingController *)[getMPAVRoutingControllerClass() alloc] initWithName:@"WebKit2 - HTML media element showing AirPlay route picker"]);
    150150    [_routingController setDiscoveryMode:MPRouteDiscoveryModeDetailed];
    151151
Note: See TracChangeset for help on using the changeset viewer.