Changeset 280603 in webkit
- Timestamp:
- Aug 3, 2021, 11:22:46 AM (5 years ago)
- Location:
- trunk/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
-
trunk/Source/WebCore/PAL/ChangeLog
r280558 r280603 1 2021-08-03 Devin Rousso <drousso@apple.com> 2 3 [Live Text] [iOS] Provide a presenting `UIViewController` for machine readable code actions so that they are related to the same view 4 https://bugs.webkit.org/show_bug.cgi?id=228722 5 6 Reviewed by Tim Horton. 7 8 * pal/spi/cocoa/VisionKitCoreSPI.h: 9 1 10 2021-08-02 Devin Rousso <drousso@apple.com> 2 11 -
trunk/Source/WebCore/PAL/pal/spi/cocoa/VisionKitCoreSPI.h
r280558 r280603 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 -
trunk/Source/WebKit/ChangeLog
r280576 r280603 1 2021-08-03 Devin Rousso <drousso@apple.com> 2 3 [Live Text] [iOS] Provide a presenting `UIViewController` for machine readable code actions so that they are related to the same view 4 https://bugs.webkit.org/show_bug.cgi?id=228722 5 6 Reviewed by Tim Horton. 7 8 * UIProcess/ios/WKContentViewInteraction.mm: 9 (-[WKContentView _updateContextMenuForMachineReadableCodeForImageAnalysis:]): Added. 10 (-[WKContentView imageAnalysisGestureDidBegin:]): 11 (-[WKContentView imageAnalysisGestureDidTimeOut:]): 12 1 13 2021-08-02 Peng Liu <peng.liu6@apple.com> 2 14 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r280558 r280603 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.