Changeset 167100 in webkit


Ignore:
Timestamp:
Apr 10, 2014 5:53:06 PM (10 years ago)
Author:
mitz@apple.com
Message:

[Cocoa] Notify the form delegate when the custom button in the form accessory view is tapped
https://bugs.webkit.org/show_bug.cgi?id=131518

Reviewed by Tim Horton.

  • UIProcess/API/Cocoa/_WKFormDelegate.h: Declared new delegate method.
  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView accessoryAutoFill]): Call the new delegate method.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r167099 r167100  
     12014-04-10  Dan Bernstein  <mitz@apple.com>
     2
     3        [Cocoa] Notify the form delegate when the custom button in the form accessory view is tapped
     4        https://bugs.webkit.org/show_bug.cgi?id=131518
     5
     6        Reviewed by Tim Horton.
     7
     8        * UIProcess/API/Cocoa/_WKFormDelegate.h: Declared new delegate method.
     9        * UIProcess/ios/WKContentViewInteraction.mm:
     10        (-[WKContentView accessoryAutoFill]): Call the new delegate method.
     11
    1122014-04-10  Commit Queue  <commit-queue@webkit.org>
    213
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKFormDelegate.h

    r166933 r167100  
    3939- (void)_webView:(WKWebView *)webView didStartInputSession:(id <_WKFormInputSession>)inputSession;
    4040
     41#if TARGET_OS_IPHONE
     42- (void)_webView:(WKWebView *)webView accessoryViewCustomButtonTappedInFormInputSession:(id <_WKFormInputSession>)inputSession;
     43#endif
     44
    4145@end
    4246
  • trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm

    r167096 r167100  
    13821382- (void)accessoryAutoFill
    13831383{
     1384    id <_WKFormDelegate> formDelegate = [_webView _formDelegate];
     1385    if ([formDelegate respondsToSelector:@selector(_webView:accessoryViewCustomButtonTappedInFormInputSession:)])
     1386        [formDelegate _webView:_webView accessoryViewCustomButtonTappedInFormInputSession:_formInputSession.get()];
    13841387}
    13851388
Note: See TracChangeset for help on using the changeset viewer.