Changeset 226826 in webkit
- Timestamp:
- Jan 11, 2018, 5:43:06 PM (8 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
Platform/spi/ios/UIKitSPI.h (modified) (1 diff)
-
UIProcess/ios/WKContentViewInteraction.h (modified) (1 diff)
-
UIProcess/ios/WKContentViewInteraction.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r226824 r226826 1 2018-01-11 Megan Gardner <megan_gardner@apple.com> 2 3 Implement MultiDocument protocol for restoring focus to a WKWebView 4 https://bugs.webkit.org/show_bug.cgi?id=181510 5 6 Reviewed by Dan Bernstein. 7 8 Support the UIKit protocol for restoring focus to a what previously had focus. 9 WebKit already has a method to silently remove and replace focus, without telling the 10 web process about the unfocus and refocusing, so we're just using that. 11 12 * Platform/spi/ios/UIKitSPI.h: 13 * UIProcess/ios/WKContentViewInteraction.h: 14 * UIProcess/ios/WKContentViewInteraction.mm: 15 (-[WKContentView _restoreFocusWithToken:]): 16 (-[WKContentView _preserveFocusWithToken:destructively:]): 17 18 1 19 2018-01-11 Wenson Hsieh <wenson_hsieh@apple.com> 2 20 -
trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h
r226750 r226826 379 379 @end 380 380 381 @protocol UITextInputMultiDocument <NSObject> 382 @optional 383 - (void)_restoreFocusWithToken:(id <NSCopying, NSSecureCoding>)token completion:(void (^)(BOOL didRestore))completion; 384 - (void)_preserveFocusWithToken:(id <NSCopying, NSSecureCoding>)token destructively:(BOOL)destructively; 385 @end 386 381 387 @interface UITextInteractionAssistant : NSObject 382 388 @end -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.h
r226808 r226826 243 243 @end 244 244 245 @interface WKContentView (WKInteraction) <UIGestureRecognizerDelegate, UI WebTouchEventsGestureRecognizerDelegate, UITextInputPrivate, UIWebFormAccessoryDelegate, UIWKInteractionViewProtocol, WKFileUploadPanelDelegate, WKActionSheetAssistantDelegate, UITextAutoscrolling245 @interface WKContentView (WKInteraction) <UIGestureRecognizerDelegate, UITextAutoscrolling, UITextInputMultiDocument, UITextInputPrivate, UIWebFormAccessoryDelegate, UIWebTouchEventsGestureRecognizerDelegate, UIWKInteractionViewProtocol, WKActionSheetAssistantDelegate, WKFileUploadPanelDelegate 246 246 #if ENABLE(DATA_INTERACTION) 247 247 , UIDragInteractionDelegate, UIDropInteractionDelegate -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r226808 r226826 4128 4128 } 4129 4129 4130 #pragma mark - UITextInputMultiDocument 4131 4132 - (void)_restoreFocusWithToken:(id <NSCopying, NSSecureCoding>)token 4133 { 4134 --_webView->_activeFocusedStateRetainCount; 4135 } 4136 4137 - (void)_preserveFocusWithToken:(id <NSCopying, NSSecureCoding>)token destructively:(BOOL)destructively 4138 { 4139 ++_webView->_activeFocusedStateRetainCount; 4140 } 4141 4130 4142 #pragma mark - Implementation of UIWebTouchEventsGestureRecognizerDelegate. 4131 4143
Note:
See TracChangeset
for help on using the changeset viewer.