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

Changeset 284843 in webkit


Ignore:
Timestamp:
Oct 25, 2021, 4:10:41 PM (5 years ago)
Author:
Wenson Hsieh
Message:

Rename a few variable and parameter names in WKContentViewInteraction.mm
https://bugs.webkit.org/show_bug.cgi?id=232275

Reviewed by Tim Horton.

The ProceedWithTextSelectionInImage enum flag was being stored in a variable named
ProceedWithTextSelectionInImage in a few places, likely due to mass renaming when upstreaming WebKit support
for Live Text. Rename this so that we use lowercase for these variable names.

No change in behavior.

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView _dragInteraction:prepareForSession:completion:]):
(-[WKContentView _doAfterPendingImageAnalysis:]):
(-[WKContentView _invokeAllActionsToPerformAfterPendingImageAnalysis:]):
(-[WKContentView _contextMenuInteraction:configurationForMenuAtLocation:completion:]):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r284823 r284843  
     12021-10-25  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Rename a few variable and parameter names in WKContentViewInteraction.mm
     4        https://bugs.webkit.org/show_bug.cgi?id=232275
     5
     6        Reviewed by Tim Horton.
     7
     8        The `ProceedWithTextSelectionInImage` enum flag was being stored in a variable named
     9        `ProceedWithTextSelectionInImage` in a few places, likely due to mass renaming when upstreaming WebKit support
     10        for Live Text. Rename this so that we use lowercase for these variable names.
     11
     12        No change in behavior.
     13
     14        * UIProcess/ios/WKContentViewInteraction.mm:
     15        (-[WKContentView _dragInteraction:prepareForSession:completion:]):
     16        (-[WKContentView _doAfterPendingImageAnalysis:]):
     17        (-[WKContentView _invokeAllActionsToPerformAfterPendingImageAnalysis:]):
     18        (-[WKContentView _contextMenuInteraction:configurationForMenuAtLocation:completion:]):
     19
    1202021-10-25  Alex Christensen  <achristensen@webkit.org>
    221
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r284766 r284843  
    88618861    [self cleanUpDragSourceSessionState];
    88628862
    8863     auto prepareForSession = [weakSelf = WeakObjCPtr<WKContentView>(self), session = retainPtr(session), completion = makeBlockPtr(completion)] (WebKit::ProceedWithTextSelectionInImage ProceedWithTextSelectionInImage) {
     8863    auto prepareForSession = [weakSelf = WeakObjCPtr<WKContentView>(self), session = retainPtr(session), completion = makeBlockPtr(completion)] (WebKit::ProceedWithTextSelectionInImage proceedWithTextSelectionInImage) {
    88648864        auto strongSelf = weakSelf.get();
    8865         if (!strongSelf || ProceedWithTextSelectionInImage == WebKit::ProceedWithTextSelectionInImage::Yes)
     8865        if (!strongSelf || proceedWithTextSelectionInImage == WebKit::ProceedWithTextSelectionInImage::Yes)
    88668866            return;
    88678867
     
    98229822}
    98239823
    9824 - (void)_doAfterPendingImageAnalysis:(void(^)(WebKit::ProceedWithTextSelectionInImage ProceedWithTextSelectionInImage))block
     9824- (void)_doAfterPendingImageAnalysis:(void(^)(WebKit::ProceedWithTextSelectionInImage))block
    98259825{
    98269826    if (self.hasPendingImageAnalysisRequest)
     
    98309830}
    98319831
    9832 - (void)_invokeAllActionsToPerformAfterPendingImageAnalysis:(WebKit::ProceedWithTextSelectionInImage)ProceedWithTextSelectionInImage
     9832- (void)_invokeAllActionsToPerformAfterPendingImageAnalysis:(WebKit::ProceedWithTextSelectionInImage)proceedWithTextSelectionInImage
    98339833{
    98349834    _pendingImageAnalysisRequestIdentifier = std::nullopt;
    98359835    _elementPendingImageAnalysis = std::nullopt;
    98369836    for (auto block : std::exchange(_actionsToPerformAfterPendingImageAnalysis, { }))
    9837         block(ProceedWithTextSelectionInImage);
     9837        block(proceedWithTextSelectionInImage);
    98389838}
    98399839
     
    1086110861        return completion(nil);
    1086210862
    10863     auto getConfigurationAndContinue = [weakSelf = WeakObjCPtr<WKContentView>(self), interaction = retainPtr(interaction), completion = makeBlockPtr(completion), triggeredByImageAnalysisTimeout] (WebKit::ProceedWithTextSelectionInImage ProceedWithTextSelectionInImage) {
     10863    auto getConfigurationAndContinue = [weakSelf = WeakObjCPtr<WKContentView>(self), interaction = retainPtr(interaction), completion = makeBlockPtr(completion), triggeredByImageAnalysisTimeout] (WebKit::ProceedWithTextSelectionInImage proceedWithTextSelectionInImage) {
    1086410864        auto strongSelf = weakSelf.get();
    10865         if (!strongSelf || ProceedWithTextSelectionInImage == WebKit::ProceedWithTextSelectionInImage::Yes) {
     10865        if (!strongSelf || proceedWithTextSelectionInImage == WebKit::ProceedWithTextSelectionInImage::Yes) {
    1086610866            completion(nil);
    1086710867            return;
Note: See TracChangeset for help on using the changeset viewer.