Changeset 170952 in webkit
- Timestamp:
- Jul 9, 2014, 9:38:13 PM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r170951 r170952 1 2014-07-09 Joseph Pecoraro <pecoraro@apple.com> 2 3 [iOS] Use UIAlertController API in WKFileUploadPanel instead of SPI 4 https://bugs.webkit.org/show_bug.cgi?id=134777 5 6 Reviewed by Sam Weinig. 7 8 * UIProcess/ios/forms/WKFileUploadPanel.mm: 9 (-[WKFileUploadPanel _showMediaSourceSelectionSheet]): 10 1 11 2014-07-09 Shivakumar JM <shiva.jm@samsung.com> 2 12 -
trunk/Source/WebKit2/UIProcess/ios/forms/WKFileUploadPanel.mm
r170774 r170952 42 42 #import <CoreMedia/CoreMedia.h> 43 43 #import <MobileCoreServices/MobileCoreServices.h> 44 #import <UIKit/UIAlertController_Private.h>45 44 #import <UIKit/UIApplication_Private.h> 46 45 #import <UIKit/UIImagePickerController_Private.h> … … 389 388 cameraString = WEB_UI_STRING_KEY("Take Photo", "Take Photo (file upload action sheet)", "File Upload alert sheet camera button string for taking only photos"); 390 389 391 _actionSheetController = [UIAlertController _alertControllerWithTitle:nil message:nil]; 392 [_actionSheetController setPreferredStyle:UIAlertControllerStyleActionSheet]; 393 394 [_actionSheetController _addActionWithTitle:cancelString style:UIAlertActionStyleCancel handler:^{ 390 _actionSheetController = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet]; 391 392 UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:cancelString style:UIAlertActionStyleCancel handler:^(UIAlertAction *){ 395 393 [self _cancel]; 396 394 // We handled cancel ourselves. Prevent the popover controller delegate from cancelling when the popover dismissed. … … 398 396 }]; 399 397 400 [_actionSheetController _addActionWithTitle:cameraString style:UIAlertActionStyleDefault handler:^{398 UIAlertAction *cameraAction = [UIAlertAction actionWithTitle:cameraString style:UIAlertActionStyleDefault handler:^(UIAlertAction *){ 401 399 _usingCamera = YES; 402 400 [self _showPhotoPickerWithSourceType:UIImagePickerControllerSourceTypeCamera]; 403 401 }]; 404 402 405 [_actionSheetController _addActionWithTitle:existingString style:UIAlertActionStyleDefault handler:^{403 UIAlertAction *photoLibraryAction = [UIAlertAction actionWithTitle:existingString style:UIAlertActionStyleDefault handler:^(UIAlertAction *){ 406 404 [self _showPhotoPickerWithSourceType:UIImagePickerControllerSourceTypePhotoLibrary]; 407 405 }]; 406 407 [_actionSheetController addAction:cancelAction]; 408 [_actionSheetController addAction:cameraAction]; 409 [_actionSheetController addAction:photoLibraryAction]; 408 410 409 411 if (UICurrentUserInterfaceIdiomIsPad())
Note:
See TracChangeset
for help on using the changeset viewer.