Changeset 280616 in webkit
- Timestamp:
- Aug 3, 2021, 1:54:22 PM (5 years ago)
- Location:
- branches/safari-612.1-branch/Source
- Files:
-
- 4 edited
-
WebCore/PAL/ChangeLog (modified) (1 diff)
-
WebCore/PAL/pal/spi/cocoa/VisionKitCoreSPI.h (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/UIProcess/ios/WKContentViewInteraction.mm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-612.1-branch/Source/WebCore/PAL/ChangeLog
r280558 r280616 1 2021-08-03 Russell Epstein <repstein@apple.com> 2 3 Cherry-pick r280603. rdar://problem/81473647 4 5 [Live Text] [iOS] Provide a presenting `UIViewController` for machine readable code actions so that they are related to the same view 6 https://bugs.webkit.org/show_bug.cgi?id=228722 7 8 Reviewed by Tim Horton. 9 10 Source/WebCore/PAL: 11 12 * pal/spi/cocoa/VisionKitCoreSPI.h: 13 14 Source/WebKit: 15 16 * UIProcess/ios/WKContentViewInteraction.mm: 17 (-[WKContentView _updateContextMenuForMachineReadableCodeForImageAnalysis:]): Added. 18 (-[WKContentView imageAnalysisGestureDidBegin:]): 19 (-[WKContentView imageAnalysisGestureDidTimeOut:]): 20 21 22 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@280603 268f45cc-cd09-0410-ab3c-d52691b4dbfc 23 24 2021-08-03 Devin Rousso <drousso@apple.com> 25 26 [Live Text] [iOS] Provide a presenting `UIViewController` for machine readable code actions so that they are related to the same view 27 https://bugs.webkit.org/show_bug.cgi?id=228722 28 29 Reviewed by Tim Horton. 30 31 * pal/spi/cocoa/VisionKitCoreSPI.h: 32 1 33 2021-08-02 Devin Rousso <drousso@apple.com> 2 34 -
branches/safari-612.1-branch/Source/WebCore/PAL/pal/spi/cocoa/VisionKitCoreSPI.h
r280558 r280616 131 131 #if HAVE(VK_IMAGE_ANALYSIS_FOR_MACHINE_READABLE_CODES) 132 132 @property (nonatomic) UIMenu *mrcMenu; 133 @property (nonatomic, nullable, weak) UIViewController *presentingViewControllerForMrcAction; 133 134 #endif 134 135 @end -
branches/safari-612.1-branch/Source/WebKit/ChangeLog
r280576 r280616 1 2021-08-03 Russell Epstein <repstein@apple.com> 2 3 Cherry-pick r280603. rdar://problem/81473647 4 5 [Live Text] [iOS] Provide a presenting `UIViewController` for machine readable code actions so that they are related to the same view 6 https://bugs.webkit.org/show_bug.cgi?id=228722 7 8 Reviewed by Tim Horton. 9 10 Source/WebCore/PAL: 11 12 * pal/spi/cocoa/VisionKitCoreSPI.h: 13 14 Source/WebKit: 15 16 * UIProcess/ios/WKContentViewInteraction.mm: 17 (-[WKContentView _updateContextMenuForMachineReadableCodeForImageAnalysis:]): Added. 18 (-[WKContentView imageAnalysisGestureDidBegin:]): 19 (-[WKContentView imageAnalysisGestureDidTimeOut:]): 20 21 22 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@280603 268f45cc-cd09-0410-ab3c-d52691b4dbfc 23 24 2021-08-03 Devin Rousso <drousso@apple.com> 25 26 [Live Text] [iOS] Provide a presenting `UIViewController` for machine readable code actions so that they are related to the same view 27 https://bugs.webkit.org/show_bug.cgi?id=228722 28 29 Reviewed by Tim Horton. 30 31 * UIProcess/ios/WKContentViewInteraction.mm: 32 (-[WKContentView _updateContextMenuForMachineReadableCodeForImageAnalysis:]): Added. 33 (-[WKContentView imageAnalysisGestureDidBegin:]): 34 (-[WKContentView imageAnalysisGestureDidTimeOut:]): 35 1 36 2021-08-02 Peng Liu <peng.liu6@apple.com> 2 37 -
branches/safari-612.1-branch/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r280558 r280616 10157 10157 } 10158 10158 10159 #if USE(UICONTEXTMENU) && ENABLE(IMAGE_ANALYSIS_FOR_MACHINE_READABLE_CODES) 10160 10161 - (void)_updateContextMenuForMachineReadableCodeForImageAnalysis:(VKImageAnalysis *)analysis 10162 { 10163 analysis.presentingViewControllerForMrcAction = [UIViewController _viewControllerForFullScreenPresentationFromView:self]; 10164 _contextMenuForMachineReadableCode = [analysis hasResultsForAnalysisTypes:VKAnalysisTypeMachineReadableCode | VKAnalysisTypeAppClip] ? analysis.mrcMenu : nil; 10165 } 10166 10167 #endif // USE(UICONTEXTMENU) && ENABLE(IMAGE_ANALYSIS_FOR_MACHINE_READABLE_CODES) 10168 10159 10169 - (BOOL)validateImageAnalysisRequestIdentifier:(WebKit::ImageAnalysisRequestIdentifier)identifier 10160 10170 { … … 10324 10334 #endif 10325 10335 #if USE(UICONTEXTMENU) && ENABLE(IMAGE_ANALYSIS_FOR_MACHINE_READABLE_CODES) 10326 strongSelf->_contextMenuForMachineReadableCode = [result hasResultsForAnalysisTypes:VKAnalysisTypeMachineReadableCode | VKAnalysisTypeAppClip] ? result.mrcMenu : nil;10336 [strongSelf _updateContextMenuForMachineReadableCodeForImageAnalysis:result]; 10327 10337 #endif // USE(UICONTEXTMENU) && ENABLE(IMAGE_ANALYSIS_FOR_MACHINE_READABLE_CODES) 10328 10338 [strongSelf _invokeAllActionsToPerformAfterPendingImageAnalysis:WebKit::ProceedWithTextSelectionInImage::No]; … … 10393 10403 #if USE(UICONTEXTMENU) 10394 10404 #if ENABLE(IMAGE_ANALYSIS_FOR_MACHINE_READABLE_CODES) 10395 strongSelf->_contextMenuForMachineReadableCode = [result hasResultsForAnalysisTypes:VKAnalysisTypeMachineReadableCode | VKAnalysisTypeAppClip] ? result.mrcMenu : nil;10405 [strongSelf _updateContextMenuForMachineReadableCodeForImageAnalysis:result]; 10396 10406 #endif // ENABLE(IMAGE_ANALYSIS_FOR_MACHINE_READABLE_CODES) 10397 10407 strongSelf->_contextMenuWasTriggeredByImageAnalysisTimeout = YES;
Note:
See TracChangeset
for help on using the changeset viewer.