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

Changeset 236968 in webkit


Ignore:
Timestamp:
Oct 9, 2018, 10:56:58 AM (8 years ago)
Author:
aestes@apple.com
Message:

[iOS] Replace @"UIPreviewDataAttachmentListIsContentManaged" with a UIKit constant
https://bugs.webkit.org/show_bug.cgi?id=190400
<rdar://problem/35442879>

Reviewed by Wenson Hsieh.

Also fixed the iOS version check in WKContentViewInteraction.mm.

  • Platform/spi/ios/UIKitSPI.h:
  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView _dataForPreviewItemController:atPosition:type:]):

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r236966 r236968  
     12018-10-09  Andy Estes  <aestes@apple.com>
     2
     3        [iOS] Replace @"UIPreviewDataAttachmentListIsContentManaged" with a UIKit constant
     4        https://bugs.webkit.org/show_bug.cgi?id=190400
     5        <rdar://problem/35442879>
     6
     7        Reviewed by Wenson Hsieh.
     8
     9        Also fixed the iOS version check in WKContentViewInteraction.mm.
     10
     11        * Platform/spi/ios/UIKitSPI.h:
     12        * UIProcess/ios/WKContentViewInteraction.mm:
     13        (-[WKContentView _dataForPreviewItemController:atPosition:type:]):
     14
    1152018-10-09  Tim Horton  <timothy_horton@apple.com>
    216
  • trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h

    r236935 r236968  
    11221122extern const NSString *UIPreviewDataAttachmentIndex;
    11231123
     1124#if __IPHONE_OS_VERSION_MAX_ALLOWED < 130000
    11241125extern NSString * const UIPreviewDataAttachmentListSourceIsManaged;
     1126#else
     1127extern NSString * const UIPreviewDataAttachmentListIsContentManaged;
     1128#endif
    11251129
    11261130UIEdgeInsets UIEdgeInsetsAdd(UIEdgeInsets lhs, UIEdgeInsets rhs, UIRectEdge);
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r236935 r236968  
    61726172            dataForPreview[UIPreviewDataAttachmentIndex] = [NSNumber numberWithUnsignedInteger:index];
    61736173
    6174 #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000
    6175             // FIXME: Replace the following NSString literal with a UIKit NSString constant.
    6176             dataForPreview[@"UIPreviewDataAttachmentListIsContentManaged"] = [NSNumber numberWithBool:sourceIsManaged];
     6174#if __IPHONE_OS_VERSION_MIN_REQUIRED < 130000
     6175            dataForPreview[UIPreviewDataAttachmentListSourceIsManaged] = [NSNumber numberWithBool:sourceIsManaged];
    61776176#else
    6178             dataForPreview[UIPreviewDataAttachmentListSourceIsManaged] = [NSNumber numberWithBool:sourceIsManaged];
     6177            dataForPreview[UIPreviewDataAttachmentListIsContentManaged] = [NSNumber numberWithBool:sourceIsManaged];
    61796178#endif
    61806179        }
Note: See TracChangeset for help on using the changeset viewer.