Commit 164b093e authored by Eugene But's avatar Eugene But Committed by Commit Bot

Remove -[CRWNativeContent dismissKeyboard].

This optional method is not implemented by native content classes.

Bug: 725239
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I70bb3e0e308762bd90c354769eccd1cc2616ed73
Reviewed-on: https://chromium-review.googlesource.com/1073676Reviewed-by: default avatarKurt Horimoto <kkhorimoto@chromium.org>
Commit-Queue: Eugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#562024}
parent 105d96e7
...@@ -1471,9 +1471,6 @@ applicationCommandEndpoint:(id<ApplicationCommands>)applicationCommandEndpoint { ...@@ -1471,9 +1471,6 @@ applicationCommandEndpoint:(id<ApplicationCommands>)applicationCommandEndpoint {
// dismiss the keyboard. // dismiss the keyboard.
[self closeFindInPage]; [self closeFindInPage];
[_model.currentTab.view endEditing:NO]; [_model.currentTab.view endEditing:NO];
id nativeController = [self nativeControllerForTab:_model.currentTab];
if ([nativeController respondsToSelector:@selector(dismissKeyboard)])
[nativeController dismissKeyboard];
// Ensure that voice search objects are created. // Ensure that voice search objects are created.
[self ensureVoiceSearchControllerCreated]; [self ensureVoiceSearchControllerCreated];
...@@ -4962,9 +4959,6 @@ bubblePresenterForFeature:(const base::Feature&)feature ...@@ -4962,9 +4959,6 @@ bubblePresenterForFeature:(const base::Feature&)feature
[self.dispatcher cancelOmniboxEdit]; [self.dispatcher cancelOmniboxEdit];
// Dismiss the soft keyboard (if open). // Dismiss the soft keyboard (if open).
[_model.currentTab.view endEditing:NO]; [_model.currentTab.view endEditing:NO];
id nativeController = [self nativeControllerForTab:_model.currentTab];
if ([nativeController respondsToSelector:@selector(dismissKeyboard)])
[nativeController dismissKeyboard];
// Dismiss Find in Page focus. // Dismiss Find in Page focus.
[self updateFindBar:NO shouldFocus:NO]; [self updateFindBar:NO shouldFocus:NO];
......
...@@ -61,9 +61,6 @@ struct ContextMenuParams; ...@@ -61,9 +61,6 @@ struct ContextMenuParams;
// not exist in the web/ layer. // not exist in the web/ layer.
- (BOOL)wantsLocationBarHintText; - (BOOL)wantsLocationBarHintText;
// Dismisses on-screen keyboard if necessary.
- (void)dismissKeyboard;
// Dismisses any outstanding modal interaction elements (e.g. modal view // Dismisses any outstanding modal interaction elements (e.g. modal view
// controllers, context menus, etc). // controllers, context menus, etc).
- (void)dismissModals; - (void)dismissModals;
......
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