| Summary: | iOS file upload panel menu items need icons | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jon Honeycutt <jhoneycutt> | ||||||
| Component: | Forms | Assignee: | Jon Honeycutt <jhoneycutt> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | aestes, ddkilzer, joepeck | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Jon Honeycutt
2015-03-25 01:03:52 PDT
Created attachment 249390 [details]
Patch
Created attachment 249538 [details]
Patch
Comment on attachment 249538 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=249538&action=review r=me > Source/WebKit2/ChangeLog:11 > + Declare new SPI methods +_webkit_takePhotoOrVideoIcon and > + +_webkit_photoLibraryIcon on UIDocumentMenuViewController. _UIImageGetWebKitTakePhotoOrVideoIcon and _UIImageGetWebKitPhotoLibraryIcon(). > Source/WebKit2/Platform/spi/ios/UIKitSPI.h:40 > +#import <UIKit/UIInterface_Private.h> You should go ahead and add function declarations to the !USE(APPLE_INTERNAL_SDK) block. Otherwise, there'll be a compiler error lurking that we won't catch until someone tries to build against the iOS 9 public SDK. > Source/WebKit2/UIProcess/ios/forms/WKFileUploadPanel.mm:62 > +static UIImage *photoLibraryIcon() static inline? > Source/WebKit2/UIProcess/ios/forms/WKFileUploadPanel.mm:72 > +static UIImage *cameraIcon() static inline? Comment on attachment 249538 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=249538&action=review >> Source/WebKit2/Platform/spi/ios/UIKitSPI.h:40 >> +#import <UIKit/UIInterface_Private.h> > > You should go ahead and add function declarations to the !USE(APPLE_INTERNAL_SDK) block. Otherwise, there'll be a compiler error lurking that we won't catch until someone tries to build against the iOS 9 public SDK. Actually, I forgot an important detail about C functions. Instead of declaring them only in the !USE(APPLE_INTERNAL_SDK) condition, you should declare them unconditionally. This allows us to catch cases where UIKit changes a function declaration in a source-compatible but binary-incompatible way (thanks to the One Definition Rule). In fact, we already do that for other functions in this file (see _UIApplicationLoadWebKit()). Committed r182049: <http://trac.webkit.org/changeset/182049> |