Changeset 236491 in webkit
- Timestamp:
- Sep 25, 2018, 6:18:53 PM (8 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/ios/WKContentViewInteraction.h (modified) (1 diff)
-
UIProcess/ios/WKContentViewInteraction.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r236487 r236491 1 2018-09-25 Conrad Shultz <conrad_shultz@apple.com> 2 3 Enable customization of the file upload panel 4 https://bugs.webkit.org/show_bug.cgi?id=189970 5 6 Reviewed by Wenson Hsieh. 7 8 With this change, platform implementations can override, or implement in a category, 9 +[WKContentView _fileUploadPanelClass] as needed. 10 11 * UIProcess/ios/WKContentViewInteraction.h: 12 * UIProcess/ios/WKContentViewInteraction.mm: 13 (-[WKContentView _showRunOpenPanel:resultListener:]): 14 1 15 2018-09-25 Chris Dumez <cdumez@apple.com> 2 16 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.h
r235955 r236491 405 405 #endif 406 406 407 @interface WKContentView (WKFileUploadPanel) 408 + (Class)_fileUploadPanelClass; 409 @end 410 407 411 #endif // PLATFORM(IOS) -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r236417 r236491 116 116 #if ENABLE(INPUT_TYPE_COLOR) 117 117 #import "WKFormColorControl.h" 118 #endif 119 120 #if USE(APPLE_INTERNAL_SDK) && __has_include(<WebKitAdditions/WKPlatformFileUploadPanel.mm>) 121 #import <WebKitAdditions/WKPlatformFileUploadPanel.mm> 118 122 #endif 119 123 … … 4732 4736 return; 4733 4737 4734 _fileUploadPanel = adoptNS([[WKFileUploadPanel alloc] initWithView:self]); 4738 Class ownClass = self.class; 4739 Class panelClass = nil; 4740 if ([ownClass respondsToSelector:@selector(_fileUploadPanelClass)]) 4741 panelClass = [ownClass _fileUploadPanelClass]; 4742 if (!panelClass) 4743 panelClass = [WKFileUploadPanel class]; 4744 4745 _fileUploadPanel = adoptNS([[panelClass alloc] initWithView:self]); 4735 4746 [_fileUploadPanel setDelegate:self]; 4736 4747 [_fileUploadPanel presentWithParameters:parameters resultListener:listener];
Note:
See TracChangeset
for help on using the changeset viewer.