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

Issue 2762553002: Add canUpdateLayout & canHandleGestureEvent to WebViewClient. (Closed)

Created:
3 years, 9 months ago by slangley
Modified:
3 years, 8 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, jam, jochen+watch_chromium.org, kinuko+watch, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, Peter Beverloo
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add canUpdateLayout & canHandleGestureEvent to WebViewClient. This work is in preperation for work to make it illegal to pass a nullptr for WebViewClient when instantiting a WebView object. There are a handful of places in WebViewImpl where the logic changes based on the nullness of WebViewClient. These changes will preserve this logic when a non-null WebViewClient is supplied. This include: - Returning WebInputEventResult::NotHandled from handleGestureEvent if the client specifically opts out of handling the event. - Not processing layout updates if the client opts out. After removing null checks in WebViewImpl the requirement for these new methods are to be reviewed and they should be removed if possible. Also, in preparation for forcing clients to pass a non null WebViewClient I made the dtor for WebViewClient public so it can be instantiated without derivation. BUG=696895 Review-Url: https://codereview.chromium.org/2762553002 Cr-Commit-Position: refs/heads/master@{#460298} Committed: https://chromium.googlesource.com/chromium/src/+/1a6375e628f5405f33f9061ee25644eaa90a81c2

Patch Set 1 #

Patch Set 2 : Make WebViewClient dtor public so it can be instantiated without derivation. #

Patch Set 3 : Fix merge issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -3 lines) Patch
M components/plugins/renderer/webview_plugin.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/plugins/renderer/webview_plugin.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M content/shell/test_runner/web_view_test_client.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/test_runner/web_view_test_client.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebViewClient.h View 1 2 4 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 56 (26 generated)
slangley
dcheng@ - this is the first checking as an alternate to https://codereview.chromium.org/2738133002 based on your ...
3 years, 9 months ago (2017-03-20 02:18:51 UTC) #2
dcheng
On 2017/03/20 02:18:51, slangley wrote: > dcheng@ - this is the first checking as an ...
3 years, 9 months ago (2017-03-20 03:40:07 UTC) #3
slangley
Sure I believe understand that :) So the first question to solve is how users ...
3 years, 9 months ago (2017-03-20 04:38:09 UTC) #4
slangley
Sure I believe understand that :) So the first question to solve is how users ...
3 years, 9 months ago (2017-03-20 04:38:09 UTC) #5
dglazkov
dcheng@: If I hear you correctly, you're interested in close examination of each null check ...
3 years, 9 months ago (2017-03-20 20:13:09 UTC) #6
dcheng
On 2017/03/20 20:13:09, dglazkov wrote: > dcheng@: If I hear you correctly, you're interested in ...
3 years, 9 months ago (2017-03-21 06:25:25 UTC) #7
dglazkov
On 2017/03/21 at 06:25:25, dcheng wrote: > On 2017/03/20 20:13:09, dglazkov wrote: > > dcheng@: ...
3 years, 9 months ago (2017-03-22 00:00:20 UTC) #8
slangley
dcheng@ - ptal As discussed offline, the intention is that this CL is the first ...
3 years, 9 months ago (2017-03-22 03:43:51 UTC) #10
dcheng
LGTM Please update the CL description to also note that we're hoping to clean up ...
3 years, 9 months ago (2017-03-22 03:51:38 UTC) #11
slangley
On 2017/03/22 at 03:51:38, dcheng wrote: > LGTM > > Please update the CL description ...
3 years, 9 months ago (2017-03-22 05:41:57 UTC) #13
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/2762553002/20001
3 years, 9 months ago (2017-03-22 05:42:35 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/391259)
3 years, 9 months ago (2017-03-22 05:48:44 UTC) #17
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/2762553002/20001
3 years, 9 months ago (2017-03-22 22:38:10 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/392119)
3 years, 9 months ago (2017-03-22 22:49:43 UTC) #21
slangley
+tommycli for webview_plugin OWNERS
3 years, 9 months ago (2017-03-22 23:36:06 UTC) #24
slangley
+esprehn - for content/* OWNERS.
3 years, 9 months ago (2017-03-22 23:37:14 UTC) #26
tommycli
On 2017/03/22 23:37:14, slangley wrote: > +esprehn - for content/* OWNERS. lgtm webview plugin
3 years, 9 months ago (2017-03-23 19:15:39 UTC) #27
slangley
esprehn@ - ping
3 years, 9 months ago (2017-03-27 22:52:45 UTC) #28
dglazkov
lgtm
3 years, 9 months ago (2017-03-27 22:56:02 UTC) #30
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/2762553002/20001
3 years, 9 months ago (2017-03-27 23:03:35 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/395781)
3 years, 9 months ago (2017-03-27 23:13:33 UTC) #34
esprehn
lgtm
3 years, 8 months ago (2017-03-28 21:43:04 UTC) #36
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/2762553002/20001
3 years, 8 months ago (2017-03-28 22:50:02 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/396940)
3 years, 8 months ago (2017-03-28 23:33:39 UTC) #41
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/2762553002/40001
3 years, 8 months ago (2017-03-29 03:48:44 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/397188)
3 years, 8 months ago (2017-03-29 03:57:38 UTC) #46
slangley
+tkent for content/shell/test_runner/OWNERS
3 years, 8 months ago (2017-03-29 05:54:22 UTC) #49
tkent
lgtm
3 years, 8 months ago (2017-03-29 05:57:24 UTC) #50
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/2762553002/40001
3 years, 8 months ago (2017-03-29 05:58:36 UTC) #52
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 06:10:56 UTC) #56
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/1a6375e628f5405f33f9061ee256...

Powered by Google App Engine
This is Rietveld 408576698