Changeset 176477 in webkit
- Timestamp:
- Nov 21, 2014, 3:38:19 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/platform/spi/mac/DataDetectorsSPI.h (modified) (2 diffs)
-
WebKit/mac/ChangeLog (modified) (1 diff)
-
WebKit/mac/WebView/WebActionMenuController.mm (modified) (2 diffs)
-
WebKit2/ChangeLog (modified) (1 diff)
-
WebKit2/UIProcess/mac/WKActionMenuController.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r176476 r176477 1 2014-11-21 Tim Horton <timothy_horton@apple.com> 2 3 REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able 4 https://bugs.webkit.org/show_bug.cgi?id=138960 5 <rdar://problem/19056715> 6 7 Reviewed by Anders Carlsson. 8 9 * platform/spi/mac/DataDetectorsSPI.h: 10 Add some DataDetectors SPI. 11 1 12 2014-11-21 Jer Noble <jer.noble@apple.com> 2 13 -
trunk/Source/WebCore/platform/spi/mac/DataDetectorsSPI.h
r176463 r176477 68 68 @property (retain) NSArray *allResults; 69 69 @property (retain) __attribute__((NSObject)) DDResultRef mainResult; 70 @property (assign) BOOL forActionMenuContent;70 @property (assign) BOOL altMode; 71 71 72 72 - (DDActionContext *)contextForView:(NSView *)view altMode:(BOOL)altMode interactionStartedHandler:(void (^)(void))interactionStartedHandler interactionChangedHandler:(void (^)(void))interactionChangedHandler interactionStoppedHandler:(void (^)(void))interactionStoppedHandler; … … 87 87 + (void)didUseActions; 88 88 89 - (BOOL)hasActionsForResult:(DDResultRef)result actionContext:(DDActionContext *)actionContext; 89 90 90 91 @end -
trunk/Source/WebKit/mac/ChangeLog
r176463 r176477 1 2014-11-21 Tim Horton <timothy_horton@apple.com> 2 3 REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able 4 https://bugs.webkit.org/show_bug.cgi?id=138960 5 <rdar://problem/19056715> 6 7 Reviewed by Anders Carlsson. 8 9 * WebView/WebActionMenuController.mm: 10 (-[WebActionMenuController _defaultMenuItemsForMailtoLink]): 11 (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]): 12 Use DataDetectors SPI instead of an explicit blacklist. 13 1 14 2014-11-21 Tim Horton <timothy_horton@apple.com> 2 15 -
trunk/Source/WebKit/mac/WebView/WebActionMenuController.mm
r176463 r176477 310 310 311 311 RetainPtr<DDActionContext> actionContext = [[getDDActionContextClass() alloc] init]; 312 [actionContext set ForActionMenuContent:YES];312 [actionContext setAltMode:YES]; 313 313 314 314 // FIXME: Should this show a yellow highlight? … … 573 573 return @[ ]; 574 574 575 // Blacklist contact results, because they don't have useful menus. If we 576 // bail here, before setting up _currentActionContext, we'll still allow fallthrough 577 // to ordinary text actions, avoiding mysterious failure when a contact is detected. 578 if (CFEqual(DDResultGetType([actionContext mainResult]), CFSTR("Contact"))) 579 return @[ ]; 580 575 [actionContext setAltMode:YES]; 576 if ([[getDDActionsManagerClass() sharedManager] respondsToSelector:@selector(hasActionsForResult:actionContext:)]) { 577 if (![[getDDActionsManagerClass() sharedManager] hasActionsForResult:[actionContext mainResult] actionContext:actionContext.get()]) 578 return @[ ]; 579 } 581 580 582 581 // FIXME: We should hide/show the yellow highlight here. -
trunk/Source/WebKit2/ChangeLog
r176474 r176477 1 2014-11-21 Tim Horton <timothy_horton@apple.com> 2 3 REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able 4 https://bugs.webkit.org/show_bug.cgi?id=138960 5 <rdar://problem/19056715> 6 7 Reviewed by Anders Carlsson. 8 9 * UIProcess/mac/WKActionMenuController.mm: 10 (-[WKActionMenuController _defaultMenuItemsForDataDetectedText]): 11 (-[WKActionMenuController _defaultMenuItemsForMailtoLink]): Deleted. 12 Use DataDetectors SPI instead of an explicit blacklist. 13 1 14 2014-11-21 Tim Horton <timothy_horton@apple.com> 2 15 -
trunk/Source/WebKit2/UIProcess/mac/WKActionMenuController.mm
r176463 r176477 636 636 return @[ ]; 637 637 638 // Blacklist contact results, because they don't have useful menus. If we639 // bail here, before setting up _currentActionContext, we'll still allow fallthrough640 // to ordinary text actions, avoiding mysterious failure when a contact is detected.641 if (CFEqual(DDResultGetType(actionContext.mainResult), CFSTR("Contact")))642 return @[ ];638 actionContext.altMode = YES; 639 if ([[getDDActionsManagerClass() sharedManager] respondsToSelector:@selector(hasActionsForResult:actionContext:)]) { 640 if (![[getDDActionsManagerClass() sharedManager] hasActionsForResult:actionContext.mainResult actionContext:actionContext]) 641 return @[ ]; 642 } 643 643 644 644 // Ref our WebPageProxy for use in the blocks below. … … 756 756 // FIXME: Should this show a yellow highlight? 757 757 RetainPtr<DDActionContext> actionContext = [[getDDActionContextClass() alloc] init]; 758 [actionContext set ForActionMenuContent:YES];758 [actionContext setAltMode:YES]; 759 759 [actionContext setHighlightFrame:[_wkView.window convertRectToScreen:[_wkView convertRect:hitTestResult->elementBoundingBox() toView:nil]]]; 760 760 return [[getDDActionsManagerClass() sharedManager] menuItemsForTargetURL:hitTestResult->absoluteLinkURL() actionContext:actionContext.get()];
Note:
See TracChangeset
for help on using the changeset viewer.