Changeset 195421 in webkit
- Timestamp:
- Jan 21, 2016, 1:51:39 PM (10 years ago)
- Location:
- trunk/Source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r195415 r195421 1 2016-01-21 Beth Dakin <bdakin@apple.com> 2 3 Add the ability to update WebKitAdditions to WK2 4 https://bugs.webkit.org/show_bug.cgi?id=153320 5 -and corresponding- 6 rdar://problem/23639629 7 8 Reviewed by Anders Carlsson. 9 10 This SPI is un-used now. 11 * platform/spi/mac/NSSpellCheckerSPI.h: 12 1 13 2016-01-21 Simon Fraser <simon.fraser@apple.com> 2 14 -
trunk/Source/WebCore/platform/spi/mac/NSSpellCheckerSPI.h
r193645 r195421 32 32 @interface NSSpellChecker () 33 33 - (NSInteger)requestCandidatesForSelectedRange:(NSRange)selectedRange inString:(NSString *)stringToCheck types:(NSTextCheckingTypes)checkingTypes options:(NSDictionary<NSString *, id> *)options inSpellDocumentWithTag:(NSInteger)tag completionHandler:(void (^)(NSInteger sequenceNumber, NSArray<NSTextCheckingResult *> *candidates))completionHandler; 34 - (void)showCandidates:(NSArray<NSTextCheckingResult *> *)candidates forString:(NSString *)string inRect:(NSRect)rectOfTypedString view:(NSView *)view completionHandler:(void (^)(NSTextCheckingResult *acceptedCandidate))completionBlock;35 34 @end 36 35 -
trunk/Source/WebKit2/ChangeLog
r195412 r195421 1 2016-01-21 Beth Dakin <bdakin@apple.com> 2 3 Add the ability to update WebKitAdditions to WK2 4 https://bugs.webkit.org/show_bug.cgi?id=153320 5 -and corresponding- 6 rdar://problem/23639629 7 8 Reviewed by Anders Carlsson. 9 10 * UIProcess/API/Cocoa/WKWebView.mm: 11 * UIProcess/API/mac/WKView.mm: 12 * UIProcess/Cocoa/WebViewImpl.h: 13 (WebKit::WebViewImpl::createWeakPtr): 14 * UIProcess/Cocoa/WebViewImpl.mm: 15 (WebKit::WebViewImpl::updateWebViewImplAdditions): 16 (WebKit::WebViewImpl::showCandidates): 17 (WebKit::WebViewImpl::webViewImplAdditionsWillDestroyView): 18 (WebKit::trackingAreaOptions): 19 (WebKit::WebViewImpl::~WebViewImpl): 20 (WebKit::WebViewImpl::becomeFirstResponder): 21 (WebKit::WebViewImpl::selectionDidChange): 22 (WebKit::WebViewImpl::handleRequestedCandidates): 23 (WebKit::textCheckingResultFromNSTextCheckingResult): 24 1 25 2016-01-19 Ada Chan <adachan@apple.com> 2 26 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm
r195317 r195421 4348 4348 #endif 4349 4349 4350 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 && USE(APPLE_INTERNAL_SDK) 4351 #import <WebKitAdditions/WKWebViewAdditionsMac.mm> 4352 #endif 4353 4350 4354 #endif // WK_API_ENABLED -
trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm
r194496 r195421 1448 1448 @end 1449 1449 1450 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 && USE(APPLE_INTERNAL_SDK) 1451 #import <WebKitAdditions/WKViewAdditions.mm> 1452 #endif 1453 1450 1454 #endif // PLATFORM(MAC) -
trunk/Source/WebKit2/UIProcess/Cocoa/WebViewImpl.h
r195078 r195421 51 51 OBJC_CLASS _WKThumbnailView; 52 52 53 #if USE(APPLE_INTERNAL_SDK) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 54 #import <WebKitAdditions/WebViewImplAdditionsDeclarations.h> 55 #endif 56 53 57 @protocol WebViewImplDelegate 54 58 … … 471 475 void rightMouseUp(NSEvent *); 472 476 477 void updateWebViewImplAdditions(); 478 void showCandidates(NSArray *candidates, NSString *, NSRect rectOfTypedString, NSView *, void (^completionHandler)(NSTextCheckingResult *acceptedCandidate)); 479 void webViewImplAdditionsWillDestroyView(); 480 481 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 && USE(APPLE_INTERNAL_SDK) 482 #import <WebKitAdditions/WebViewImplAdditions.h> 483 #endif 484 473 485 private: 474 486 WeakPtr<WebViewImpl> createWeakPtr() { return m_weakPtrFactory.createWeakPtr(); } -
trunk/Source/WebKit2/UIProcess/Cocoa/WebViewImpl.mm
r195078 r195421 420 420 @end 421 421 422 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 && USE(APPLE_INTERNAL_SDK) 423 #import <WebKitAdditions/WebViewImplAdditions.mm> 424 #else 425 namespace WebKit { 426 427 void WebViewImpl::updateWebViewImplAdditions() 428 { 429 } 430 431 void WebViewImpl::showCandidates(NSArray *candidates, NSString *string, NSRect rectOfTypedString, NSView *view, void (^completionHandler)(NSTextCheckingResult *acceptedCandidate)) 432 { 433 } 434 435 void WebViewImpl::webViewImplAdditionsWillDestroyView() 436 { 437 } 438 439 } // namespace WebKit 440 #endif // __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 && USE(APPLE_INTERNAL_SDK) 441 422 442 namespace WebKit { 423 443 … … 494 514 495 515 [m_immediateActionController willDestroyView:m_view]; 516 webViewImplAdditionsWillDestroyView(); 496 517 497 518 m_page->close(); … … 567 588 568 589 m_inBecomeFirstResponder = false; 590 591 updateWebViewImplAdditions(); 569 592 570 593 if (direction != NSDirectSelection) { … … 1726 1749 updateFontPanelIfNeeded(); 1727 1750 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 1751 updateWebViewImplAdditions(); 1728 1752 if (!m_page->editorState().isMissingPostLayoutData) 1729 1753 requestCandidatesForSelectionIfNeeded(); … … 2135 2159 2136 2160 auto weakThis = createWeakPtr(); 2137 [[NSSpellChecker sharedSpellChecker] showCandidates:candidates forString:postLayoutData.stringForCandidateRequest inRect:postLayoutData.selectionClipRect view:m_view completionHandler:[weakThis](NSTextCheckingResult *acceptedCandidate) {2161 showCandidates(candidates, postLayoutData.stringForCandidateRequest, postLayoutData.selectionClipRect, m_view, [weakThis](NSTextCheckingResult *acceptedCandidate) { 2138 2162 dispatch_async(dispatch_get_main_queue(), ^{ 2139 2163 if (!weakThis) … … 2141 2165 weakThis->handleAcceptedCandidate(acceptedCandidate); 2142 2166 }); 2143 } ];2167 }); 2144 2168 } 2145 2169
Note:
See TracChangeset
for help on using the changeset viewer.