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

Changeset 175964 in webkit


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

Adopt DDActionContext menu type SPI
https://bugs.webkit.org/show_bug.cgi?id=138603
<rdar://problem/18867627>

Reviewed by Anders Carlsson.

  • platform/spi/mac/DataDetectorsSPI.h:

Add the new SPI.

  • UIProcess/mac/WKActionMenuController.mm:

(-[WKActionMenuController _defaultMenuItemsForDataDetectedText]):
Use the new SPI instead of WKSI.

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r175963 r175964  
     12014-11-11  Tim Horton  <timothy_horton@apple.com>
     2
     3        Adopt DDActionContext menu type SPI
     4        https://bugs.webkit.org/show_bug.cgi?id=138603
     5        <rdar://problem/18867627>
     6
     7        Reviewed by Anders Carlsson.
     8
     9        * platform/spi/mac/DataDetectorsSPI.h:
     10        Add the new SPI.
     11
    1122014-11-11  Tim Horton  <timothy_horton@apple.com>
    213
  • trunk/Source/WebCore/platform/spi/mac/DataDetectorsSPI.h

    r175963 r175964  
    6868@property (retain) __attribute__((NSObject)) DDResultRef mainResult;
    6969@property (copy) void (^completionHandler)(void);
     70@property (assign) BOOL forActionMenuContent;
    7071
    7172@end
  • trunk/Source/WebKit2/ChangeLog

    r175963 r175964  
     12014-11-11  Tim Horton  <timothy_horton@apple.com>
     2
     3        Adopt DDActionContext menu type SPI
     4        https://bugs.webkit.org/show_bug.cgi?id=138603
     5        <rdar://problem/18867627>
     6
     7        Reviewed by Anders Carlsson.
     8
     9        * UIProcess/mac/WKActionMenuController.mm:
     10        (-[WKActionMenuController _defaultMenuItemsForDataDetectedText]):
     11        Use the new SPI instead of WKSI.
     12
    1132014-11-11  Tim Horton  <timothy_horton@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/mac/WKActionMenuController.mm

    r175963 r175964  
    563563    };
    564564
    565     WKSetDDActionContextIsForActionMenu(actionContext);
     565    actionContext.forActionMenuContent = YES;
    566566    actionContext.highlightFrame = [_wkView.window convertRectToScreen:[_wkView convertRect:_hitTestResult.detectedDataBoundingBox toView:nil]];
    567567    return [[getDDActionsManagerClass() sharedManager] menuItemsForResult:[_hitTestResult.actionContext mainResult] actionContext:actionContext];
Note: See TracChangeset for help on using the changeset viewer.