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

Issue 2709813007: Remove WebViewClient::showVirtualKeyboardOnElementFocus() (Closed)

Created:
3 years, 10 months ago by EhsanK
Modified:
3 years, 9 months ago
Reviewers:
Charlie Reis, dcheng
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, sof, creis+watch_chromium.org, eae+blinkwatch, nasko+codewatch_chromium.org, jam, blink-reviews-dom_chromium.org, dglazkov+blink, darin-cc_chromium.org, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org, rwlbuis, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove WebViewClient::showVirtualKeyboardOnElementFocus() When an <input> is focused by user gesture, ChildClientImpl calls this method on RenderViewImpl to make sure the proper TextInputState to show IME keyboard is sent to the browser (used for Android). However, for OOPIFs it does not make sense to call this on RenderView and rather, the call should be directed to the RenderWidget corresponding to the local root of the focused element/frame. This CL removes the current override from RenderViewImpl/WebViewClient and directs the call to the frameWidget() of the focused frame instead. This CL also adds a WebFrameTest. BUG=578168, 682009 Review-Url: https://codereview.chromium.org/2709813007 Cr-Commit-Position: refs/heads/master@{#455820} Committed: https://chromium.googlesource.com/chromium/src/+/1e2d08a7fc2db1297a7f2a28c40659af534c309e

Patch Set 1 #

Patch Set 2 : Remove WebViewClient::showVirtualKeyboardOnElementFocus() #

Patch Set 3 : Fixing ImeOnFocusTests (webkit_unit_tests) #

Patch Set 4 : Fixing the layout tests (verifying frameWidget != nullptr) #

Total comments: 4

Patch Set 5 : Addressing dcheng@'s comment #

Patch Set 6 : Rebased #

Total comments: 4

Patch Set 7 : Rebased #

Patch Set 8 : Made the test better #

Total comments: 6

Patch Set 9 : Remove WebViewClient::showVirtualKeyboardOnElementFocus() #

Patch Set 10 : Using LocalFrame& instead of LocalFrame* #

Patch Set 11 : Rebased #

Patch Set 12 : Modified the test #

Total comments: 5

Patch Set 13 : Addressing dcheng@'s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -14 lines) Patch
M content/renderer/render_view_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/ChromeClient.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ImeOnFocusTest.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +46 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebViewClient.h View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 41 (25 generated)
EhsanK
Please take a look! Thanks dcheng@: blink changes. creis@: content/ reviews.
3 years, 10 months ago (2017-02-22 02:06:22 UTC) #6
dcheng
https://codereview.chromium.org/2709813007/diff/60001/third_party/WebKit/Source/web/ChromeClientImpl.cpp File third_party/WebKit/Source/web/ChromeClientImpl.cpp (right): https://codereview.chromium.org/2709813007/diff/60001/third_party/WebKit/Source/web/ChromeClientImpl.cpp#newcode1071 third_party/WebKit/Source/web/ChromeClientImpl.cpp:1071: if (auto* frameWidget = WebLocalFrameImpl::fromFrame(frame)->frameWidget()) Is this only null ...
3 years, 10 months ago (2017-02-22 07:26:44 UTC) #10
EhsanK
Thanks Daniel! PTAL. https://codereview.chromium.org/2709813007/diff/60001/third_party/WebKit/Source/web/ChromeClientImpl.cpp File third_party/WebKit/Source/web/ChromeClientImpl.cpp (right): https://codereview.chromium.org/2709813007/diff/60001/third_party/WebKit/Source/web/ChromeClientImpl.cpp#newcode1071 third_party/WebKit/Source/web/ChromeClientImpl.cpp:1071: if (auto* frameWidget = WebLocalFrameImpl::fromFrame(frame)->frameWidget()) On ...
3 years, 10 months ago (2017-02-22 17:10:52 UTC) #11
Charlie Reis
content/ LGTM
3 years, 10 months ago (2017-02-22 21:36:29 UTC) #12
dcheng
https://codereview.chromium.org/2709813007/diff/60001/third_party/WebKit/Source/web/ChromeClientImpl.cpp File third_party/WebKit/Source/web/ChromeClientImpl.cpp (right): https://codereview.chromium.org/2709813007/diff/60001/third_party/WebKit/Source/web/ChromeClientImpl.cpp#newcode1071 third_party/WebKit/Source/web/ChromeClientImpl.cpp:1071: if (auto* frameWidget = WebLocalFrameImpl::fromFrame(frame)->frameWidget()) On 2017/02/22 17:10:52, EhsanK ...
3 years, 10 months ago (2017-02-23 05:42:29 UTC) #13
EhsanK
Thanks! PTAL. https://codereview.chromium.org/2709813007/diff/60001/third_party/WebKit/Source/web/ChromeClientImpl.cpp File third_party/WebKit/Source/web/ChromeClientImpl.cpp (right): https://codereview.chromium.org/2709813007/diff/60001/third_party/WebKit/Source/web/ChromeClientImpl.cpp#newcode1071 third_party/WebKit/Source/web/ChromeClientImpl.cpp:1071: if (auto* frameWidget = WebLocalFrameImpl::fromFrame(frame)->frameWidget()) On 2017/02/23 ...
3 years, 10 months ago (2017-02-23 17:24:16 UTC) #20
dcheng
https://codereview.chromium.org/2709813007/diff/100001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2709813007/diff/100001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode11451 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:11451: view->close(); FWIW, I don't think this unit test adds ...
3 years, 10 months ago (2017-02-23 19:28:48 UTC) #23
EhsanK
Thanks! PTAL. https://codereview.chromium.org/2709813007/diff/100001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2709813007/diff/100001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode11451 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:11451: view->close(); On 2017/02/23 19:28:48, dcheng wrote: > ...
3 years, 10 months ago (2017-02-23 21:06:09 UTC) #24
dcheng
https://codereview.chromium.org/2709813007/diff/100001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2709813007/diff/100001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode11451 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:11451: view->close(); On 2017/02/23 21:06:09, EhsanK wrote: > On 2017/02/23 ...
3 years, 10 months ago (2017-02-23 21:10:21 UTC) #25
EhsanK
Thanks Daniel! PTAL. https://codereview.chromium.org/2709813007/diff/100001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2709813007/diff/100001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode11451 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:11451: view->close(); On 2017/02/23 21:10:21, dcheng wrote: ...
3 years, 9 months ago (2017-02-27 16:59:56 UTC) #29
dcheng
https://codereview.chromium.org/2709813007/diff/140001/third_party/WebKit/Source/web/ChromeClientImpl.cpp File third_party/WebKit/Source/web/ChromeClientImpl.cpp (right): https://codereview.chromium.org/2709813007/diff/140001/third_party/WebKit/Source/web/ChromeClientImpl.cpp#newcode1070 third_party/WebKit/Source/web/ChromeClientImpl.cpp:1070: void ChromeClientImpl::showVirtualKeyboardOnElementFocus(LocalFrame* frame) { Nit: pass as mutable reference, ...
3 years, 9 months ago (2017-02-27 23:13:29 UTC) #32
EhsanK
Thanks Daniel and sorry it took me a while. Please take another look. https://codereview.chromium.org/2709813007/diff/140001/third_party/WebKit/Source/web/ChromeClientImpl.cpp File ...
3 years, 9 months ago (2017-03-08 23:38:28 UTC) #33
dcheng
LGTM with nits addressed https://codereview.chromium.org/2709813007/diff/240001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2709813007/diff/240001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode11437 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:11437: WebRemoteFrame::create(WebTreeScopeType::Document, nullptr)); Nit: WebRemoteFrameImpl::create will ...
3 years, 9 months ago (2017-03-09 02:00:25 UTC) #34
EhsanK
Thanks Daniel! I addressed the comments and will try to CQ soon. https://codereview.chromium.org/2709813007/diff/240001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp ...
3 years, 9 months ago (2017-03-09 17:19:49 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2709813007/260001
3 years, 9 months ago (2017-03-09 17:20:47 UTC) #38
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 19:07:40 UTC) #41
Message was sent while issue was closed.
Committed patchset #13 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/1e2d08a7fc2db1297a7f2a28c406...

Powered by Google App Engine
This is Rietveld 408576698