Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2709813007: Remove WebViewClient::showVirtualKeyboardOnElementFocus() (Closed)
Patch Set: Fixing the layout tests (verifying frameWidget != nullptr) Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index e017d44a570f1e8ebfdbaf408ecf3730c718fec7..f954b3548960a676c84bd4985ced4d774b024240 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -1067,9 +1067,9 @@ void ChromeClientImpl::didAssociateFormControlsAfterLoad(LocalFrame* frame) {
webframe->autofillClient()->didAssociateFormControlsDynamically();
}
-void ChromeClientImpl::showVirtualKeyboardOnElementFocus() {
- if (m_webView->client())
- m_webView->client()->showVirtualKeyboardOnElementFocus();
+void ChromeClientImpl::showVirtualKeyboardOnElementFocus(LocalFrame* frame) {
+ if (auto* frameWidget = WebLocalFrameImpl::fromFrame(frame)->frameWidget())
dcheng 2017/02/22 07:26:44 Is this only null in tests? I would prefer not to
EhsanK 2017/02/22 17:10:52 Good point. But unfortunately (and I don't quite k
dcheng 2017/02/23 05:42:29 Hmm, I think you might need to get the local root
EhsanK 2017/02/23 17:24:16 Yes thanks! I was confusing frameWidget() with Get
+ frameWidget->client()->showVirtualKeyboardOnElementFocus();
}
void ChromeClientImpl::showUnhandledTapUIIfNeeded(
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/tests/ImeOnFocusTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698