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

Changeset 175963 in webkit


Ignore:
Timestamp:
Nov 11, 2014, 11:17:11 AM (12 years ago)
Author:
timothy_horton@apple.com
Message:

Data Detectors popovers should be dismissed upon scrolling
https://bugs.webkit.org/show_bug.cgi?id=138600
<rdar://problem/18932770>

Reviewed by Beth Dakin.

  • platform/spi/mac/DataDetectorsSPI.h:

Adjust the SPI header.

  • UIProcess/mac/WKActionMenuController.mm:

(-[WKActionMenuController prepareForMenu:withEvent:]):
Dismiss popovers when we start preparing another menu.

(-[WKActionMenuController dismissActionMenuPopovers]):
Use the new DataDetectors SPI.

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r175962 r175963  
     12014-11-11  Tim Horton  <timothy_horton@apple.com>
     2
     3        Data Detectors popovers should be dismissed upon scrolling
     4        https://bugs.webkit.org/show_bug.cgi?id=138600
     5        <rdar://problem/18932770>
     6
     7        Reviewed by Beth Dakin.
     8
     9        * platform/spi/mac/DataDetectorsSPI.h:
     10        Adjust the SPI header.
     11
    1122014-11-11  Tim Horton  <timothy_horton@apple.com>
    213
  • trunk/Source/WebCore/platform/spi/mac/DataDetectorsSPI.h

    r175609 r175963  
    7575+ (DDActionsManager *)sharedManager;
    7676- (NSArray *)menuItemsForResult:(DDResultRef)result actionContext:(DDActionContext *)context;
    77 - (void)unanchorBubbles;
     77- (void)requestBubbleClosureUnanchorOnFailure:(BOOL)unanchorOnFailure;
    7878
    7979@end
  • trunk/Source/WebKit2/ChangeLog

    r175962 r175963  
     12014-11-11  Tim Horton  <timothy_horton@apple.com>
     2
     3        Data Detectors popovers should be dismissed upon scrolling
     4        https://bugs.webkit.org/show_bug.cgi?id=138600
     5        <rdar://problem/18932770>
     6
     7        Reviewed by Beth Dakin.
     8
     9        * UIProcess/mac/WKActionMenuController.mm:
     10        (-[WKActionMenuController prepareForMenu:withEvent:]):
     11        Dismiss popovers when we start preparing another menu.
     12
     13        (-[WKActionMenuController dismissActionMenuPopovers]):
     14        Use the new DataDetectors SPI.
     15
    1162014-11-11  Tim Horton  <timothy_horton@apple.com>
    217
  • trunk/Source/WebKit2/UIProcess/mac/WKActionMenuController.mm

    r175962 r175963  
    177177    }
    178178
     179    [self dismissActionMenuPopovers];
     180
    179181    _page->performActionMenuHitTestAtLocation([_wkView convertPoint:event.locationInWindow fromView:nil]);
    180182
     
    182184    [self _updateActionMenuItemsForStage:MenuUpdateStage::PrepareForMenu];
    183185
    184     [self _hideTextIndicator];
    185186    _shouldKeepPreviewPopoverOpen = NO;
    186187}
     
    244245- (void)dismissActionMenuPopovers
    245246{
    246     // Ideally, this would actually dismiss the data detector popovers. We don't currently have the ability to request
    247     // that and know whether or not it succeeded, so we'll settle for unanchoring.
    248     [[getDDActionsManagerClass() sharedManager] unanchorBubbles];
     247    [[getDDActionsManagerClass() sharedManager] requestBubbleClosureUnanchorOnFailure:YES];
    249248
    250249    [self _hideTextIndicator];
Note: See TracChangeset for help on using the changeset viewer.