Commit 8d9b0469 authored by lpromero's avatar lpromero Committed by Commit bot

WebViewProxy now propagates first responder status to the webview.

With this CL, calling becomeFirstResponder on a web view proxy makes the
potential web view first responder.

BUG=556455
R=eugenebut@chromium.org

Review URL: https://codereview.chromium.org/1646573002

Cr-Commit-Position: refs/heads/master@{#371820}
parent a538760e
......@@ -66,6 +66,9 @@
- (UITextInputAssistantItem*)inputAssistantItem;
#endif
// Wrapper around the becomeFirstResponder method of the webview.
- (BOOL)becomeFirstResponder;
@end
#endif // IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_VIEW_PROXY_H_
......@@ -174,4 +174,8 @@ UIView* GetFirstResponderSubview(UIView* view) {
setKeyboardDisplayRequiresUserAction:keyboardDisplayRequiresUserAction];
}
- (BOOL)becomeFirstResponder {
return [_contentView becomeFirstResponder];
}
@end
......@@ -82,6 +82,10 @@ const CGFloat kBackgroundRGBComponents[] = {0.75f, 0.74f, 0.76f};
}
}
- (BOOL)becomeFirstResponder {
return [_webView becomeFirstResponder];
}
#pragma mark Accessors
- (UIScrollView*)scrollView {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment