Changeset 243370 in webkit
- Timestamp:
- Mar 22, 2019, 2:40:41 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
-
Source/WTF/ChangeLog (modified) (1 diff)
-
Source/WTF/wtf/Platform.h (modified) (1 diff)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/Platform/spi/ios/UIKitSPI.h (modified) (2 diffs)
-
Source/WebKit/Shared/DocumentEditingContext.mm (modified) (2 diffs)
-
Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (modified) (2 diffs)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm (modified) (2 diffs)
-
Tools/TestWebKitAPI/ios/UIKitSPI.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r243328 r243370 1 2019-03-22 Tim Horton <timothy_horton@apple.com> 2 3 Fix the build after r243354 4 https://bugs.webkit.org/show_bug.cgi?id=196138 5 <rdar://problem/49145951> 6 7 * wtf/Platform.h: 8 1 9 2019-03-21 Eric Carlson <eric.carlson@apple.com> 2 10 -
trunk/Source/WTF/wtf/Platform.h
r243254 r243370 1519 1519 #endif 1520 1520 1521 #if PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000 1522 #define HAVE_UI_WK_DOCUMENT_CONTEXT 1 1523 #endif 1524 1521 1525 #if PLATFORM(IOSMAC) 1522 1526 #define ENABLE_PLATFORM_DRIVEN_TEXT_CHECKING 1 -
trunk/Source/WebKit/ChangeLog
r243360 r243370 1 2019-03-22 Tim Horton <timothy_horton@apple.com> 2 3 Fix the build after r243354 4 https://bugs.webkit.org/show_bug.cgi?id=196138 5 <rdar://problem/49145951> 6 7 * Platform/spi/ios/UIKitSPI.h: 8 * Shared/DocumentEditingContext.mm: 9 (WebKit::DocumentEditingContext::toPlatformContext): 10 * UIProcess/ios/WKContentViewInteraction.mm: 11 1 12 2019-03-21 Simon Fraser <simon.fraser@apple.com> 2 13 -
trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h
r243354 r243370 1035 1035 @end 1036 1036 1037 @interface UIWKDocumentContext : NSObject 1038 1039 @property (nonatomic, copy) NSObject *contextBefore; 1040 @property (nonatomic, copy) NSObject *selectedText; 1041 @property (nonatomic, copy) NSObject *contextAfter; 1042 @property (nonatomic, copy) NSObject *markedText; 1043 @property (nonatomic, assign) NSRange selectedRangeInMarkedText; 1044 @property (nonatomic, copy) NSAttributedString *annotatedText; 1045 1046 - (void)addTextRect:(CGRect)rect forCharacterRange:(NSRange)range; 1047 1048 @end 1049 1050 typedef NS_OPTIONS(NSInteger, UIWKDocumentRequestFlags) { 1051 UIWKDocumentRequestNone = 0, 1052 UIWKDocumentRequestText = 1 << 0, 1053 UIWKDocumentRequestAttributed = 1 << 1, 1054 UIWKDocumentRequestRects = 1 << 2, 1055 UIWKDocumentRequestSpatial = 1 << 3, 1056 UIWKDocumentRequestAnnotation = 1 << 4, 1057 }; 1058 1059 @interface UIWKDocumentRequest : NSObject 1060 @property (nonatomic, assign) UIWKDocumentRequestFlags flags; 1061 @property (nonatomic, assign) UITextGranularity surroundingGranularity; 1062 @property (nonatomic, assign) NSInteger granularityCount; 1063 @property (nonatomic, assign) CGRect documentRect; 1064 @property (nonatomic, retain) id <NSCopying> inputElementIdentifier; 1065 @end 1066 1037 1067 #endif // USE(APPLE_INTERNAL_SDK) 1038 1068 … … 1141 1171 } 1142 1172 1143 @interface UIWKDocumentContext : NSObject1144 1145 @property (nonatomic, copy) NSObject *contextBefore;1146 @property (nonatomic, copy) NSObject *selectedText;1147 @property (nonatomic, copy) NSObject *contextAfter;1148 @property (nonatomic, copy) NSObject *markedText;1149 @property (nonatomic, assign) NSRange selectedRangeInMarkedText;1150 @property (nonatomic, copy) NSAttributedString *annotatedText;1151 1152 - (void)addTextRect:(CGRect)rect forCharacterRange:(NSRange)range;1153 1154 @end1155 1156 typedef NS_OPTIONS(NSInteger, UIWKDocumentRequestFlags) {1157 UIWKDocumentRequestNone = 0,1158 UIWKDocumentRequestText = 1 << 0,1159 UIWKDocumentRequestAttributed = 1 << 1,1160 UIWKDocumentRequestRects = 1 << 2,1161 UIWKDocumentRequestSpatial = 1 << 3,1162 UIWKDocumentRequestAnnotation = 1 << 4,1163 };1164 1165 @interface UIWKDocumentRequest : NSObject1166 @property (nonatomic, assign) UIWKDocumentRequestFlags flags;1167 @property (nonatomic, assign) UITextGranularity surroundingGranularity;1168 @property (nonatomic, assign) NSInteger granularityCount;1169 @property (nonatomic, assign) CGRect documentRect;1170 @property (nonatomic, retain) id <NSCopying> inputElementIdentifier;1171 @end1172 1173 1173 WTF_EXTERN_C_BEGIN 1174 1174 -
trunk/Source/WebKit/Shared/DocumentEditingContext.mm
r243354 r243370 42 42 UIWKDocumentContext *DocumentEditingContext::toPlatformContext(OptionSet<DocumentEditingContextRequest::Options> options) 43 43 { 44 #if HAVE(UI_WK_DOCUMENT_CONTEXT) 44 45 RetainPtr<UIWKDocumentContext> platformContext = adoptNS([[NSClassFromString(@"UIWKDocumentContext") alloc] init]); 45 46 … … 64 65 65 66 return platformContext.autorelease(); 67 #else 68 UNUSED_PARAM(options); 69 return nil; 70 #endif 66 71 } 67 72 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r243354 r243370 6285 6285 } 6286 6286 6287 #if HAVE(UI_WK_DOCUMENT_CONTEXT) 6287 6288 6288 6289 static inline OptionSet<WebKit::DocumentEditingContextRequest::Options> toWebDocumentRequestOptions(UIWKDocumentRequestFlags flags) … … 6346 6347 } 6347 6348 6349 #endif 6348 6350 6349 6351 #pragma mark - UIDragInteractionDelegate -
trunk/Tools/ChangeLog
r243354 r243370 1 2019-03-22 Tim Horton <timothy_horton@apple.com> 2 3 Fix the build after r243354 4 https://bugs.webkit.org/show_bug.cgi?id=196138 5 <rdar://problem/49145951> 6 7 * TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm: 8 (TEST): 9 * TestWebKitAPI/ios/UIKitSPI.h: 10 1 11 2019-03-21 Tim Horton <timothy_horton@apple.com> 2 12 -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm
r243354 r243370 26 26 #import "config.h" 27 27 28 #if PLATFORM(IOS_FAMILY) 28 #if PLATFORM(IOS_FAMILY) && HAVE(UI_WK_DOCUMENT_CONTEXT) 29 29 30 30 #import "PlatformUtilities.h" … … 237 237 } 238 238 239 #endif // PLATFORM(IOS_FAMILY) 239 #endif // PLATFORM(IOS_FAMILY) && HAVE(UI_WK_DOCUMENT_CONTEXT) -
trunk/Tools/TestWebKitAPI/ios/UIKitSPI.h
r243354 r243370 38 38 #import <UIKit/UITextInput_Private.h> 39 39 #import <UIKit/UIViewController_Private.h> 40 #import <UIKit/UIWKTextInteractionAssistant.h> 40 41 41 42 #if ENABLE(DRAG_SUPPORT) … … 99 100 @end 100 101 102 @interface UIWKDocumentContext : NSObject 103 104 @property (nonatomic, copy) NSObject *contextBefore; 105 @property (nonatomic, copy) NSObject *selectedText; 106 @property (nonatomic, copy) NSObject *contextAfter; 107 @property (nonatomic, copy) NSObject *markedText; 108 @property (nonatomic, assign) NSRange selectedRangeInMarkedText; 109 @property (nonatomic, copy) NSAttributedString *annotatedText; 110 111 - (NSArray<NSValue *> *)characterRectsForCharacterRange:(NSRange)range; 112 113 @end 114 115 typedef NS_OPTIONS(NSInteger, UIWKDocumentRequestFlags) { 116 UIWKDocumentRequestNone = 0, 117 UIWKDocumentRequestText = 1 << 0, 118 UIWKDocumentRequestAttributed = 1 << 1, 119 UIWKDocumentRequestRects = 1 << 2, 120 UIWKDocumentRequestSpatial = 1 << 3, 121 UIWKDocumentRequestAnnotation = 1 << 4, 122 }; 123 124 @interface UIWKDocumentRequest : NSObject 125 126 @property (nonatomic, assign) UIWKDocumentRequestFlags flags; 127 @property (nonatomic, assign) UITextGranularity surroundingGranularity; 128 @property (nonatomic, assign) NSInteger granularityCount; 129 @property (nonatomic, assign) CGRect documentRect; 130 @property (nonatomic, retain) id <NSCopying> inputElementIdentifier; 131 132 @end 133 101 134 #endif 102 135 … … 142 175 @end 143 176 144 @interface UIWKDocumentContext : NSObject145 146 @property (nonatomic, copy) NSObject *contextBefore;147 @property (nonatomic, copy) NSObject *selectedText;148 @property (nonatomic, copy) NSObject *contextAfter;149 @property (nonatomic, copy) NSObject *markedText;150 @property (nonatomic, assign) NSRange selectedRangeInMarkedText;151 @property (nonatomic, copy) NSAttributedString *annotatedText;152 153 - (NSArray<NSValue *> *)characterRectsForCharacterRange:(NSRange)range;154 155 @end156 157 typedef NS_OPTIONS(NSInteger, UIWKDocumentRequestFlags) {158 UIWKDocumentRequestNone = 0,159 UIWKDocumentRequestText = 1 << 0,160 UIWKDocumentRequestAttributed = 1 << 1,161 UIWKDocumentRequestRects = 1 << 2,162 UIWKDocumentRequestSpatial = 1 << 3,163 UIWKDocumentRequestAnnotation = 1 << 4,164 };165 166 @interface UIWKDocumentRequest : NSObject167 168 @property (nonatomic, assign) UIWKDocumentRequestFlags flags;169 @property (nonatomic, assign) UITextGranularity surroundingGranularity;170 @property (nonatomic, assign) NSInteger granularityCount;171 @property (nonatomic, assign) CGRect documentRect;172 @property (nonatomic, retain) id <NSCopying> inputElementIdentifier;173 174 @end175 176 177 #endif // PLATFORM(IOS_FAMILY)
Note:
See TracChangeset
for help on using the changeset viewer.