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

Issue 2101663002: Send synthetic GestureTapDown to focus BrowserPlugin (Closed)

Created:
4 years, 5 months ago by wjmaclean
Modified:
4 years, 5 months ago
Reviewers:
Charlie Reis, tdresser
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, Jay Lee
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Send synthetic GestureTapDown to focus BrowserPlugin Since we now route Gesture events directly to the guest renderer, there is no longer any event to focus the BrowserPlugin in the embedder renderer, meaning that even though touch/gesture events work properly, the guest may not receive keyboard input. This CL provides a temporary fix by sending a synthetic GestureTapDown to the embedder on TouchStarti, in parallel with sending the TouchStart directly to the guest. The synthetic event focuses the BrowserPlugin. This CL also fixes two tests that were still sending Gestures to the embedder. When BrowserPlugin is removed, this code will disappear along with RenderWidgetHostViewGuest. BUG=619906 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/347f2466211ae7ebbbc0a01f0f564274dc5fa3c2 Cr-Commit-Position: refs/heads/master@{#403308}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix coordinate conversions for focusing gestures. #

Total comments: 6

Patch Set 3 : Address suggestions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -12 lines) Patch
M chrome/browser/apps/guest_view/web_view_browsertest.cc View 4 chunks +6 lines, -10 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 36 (13 generated)
wjmaclean
creis@ - small CL, please take a look? This is to fix a regression that ...
4 years, 5 months ago (2016-06-27 17:14:56 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2101663002/1
4 years, 5 months ago (2016-06-27 17:15:28 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-27 19:27:48 UTC) #7
Charlie Reis
Happy to rubber stamp once an input reviewer approves, since I don't have the background ...
4 years, 5 months ago (2016-06-27 21:05:06 UTC) #8
Rick Byers
On 2016/06/27 17:14:56, wjmaclean wrote: > creis@ - small CL, please take a look? This ...
4 years, 5 months ago (2016-06-27 21:24:48 UTC) #9
wjmaclean
On 2016/06/28 14:22:36, tdresser wrote: > I'm holding off on review until you've fixed the ...
4 years, 5 months ago (2016-06-28 18:30:23 UTC) #10
wjmaclean
Ok, I think this works properly now. It seems that before the BrowserPlugin is focused, ...
4 years, 5 months ago (2016-06-28 23:06:50 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2101663002/20001
4 years, 5 months ago (2016-06-28 23:08:08 UTC) #13
wjmaclean
On 2016/06/28 23:06:50, wjmaclean wrote: > Ok, I think this works properly now. It seems ...
4 years, 5 months ago (2016-06-28 23:30:33 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-29 01:45:59 UTC) #16
tdresser
LGTM https://codereview.chromium.org/2101663002/diff/20001/content/browser/frame_host/render_widget_host_view_guest.cc File content/browser/frame_host/render_widget_host_view_guest.cc (right): https://codereview.chromium.org/2101663002/diff/20001/content/browser/frame_host/render_widget_host_view_guest.cc#newcode188 content/browser/frame_host/render_widget_host_view_guest.cc:188: GetOwnerRenderWidgetHostView()->GetBoundsInRootWindow(); I think using an explicit type here ...
4 years, 5 months ago (2016-06-30 13:20:57 UTC) #17
Charlie Reis
LGTM, but please do add a test for this if possible (either here or in ...
4 years, 5 months ago (2016-06-30 18:35:17 UTC) #18
wjmaclean
On 2016/06/30 18:35:17, Charlie Reis wrote: > LGTM, but please do add a test for ...
4 years, 5 months ago (2016-06-30 18:42:26 UTC) #19
wjmaclean
I'll give this a dry-run before putting in the CQ. https://codereview.chromium.org/2101663002/diff/20001/content/browser/frame_host/render_widget_host_view_guest.cc File content/browser/frame_host/render_widget_host_view_guest.cc (right): https://codereview.chromium.org/2101663002/diff/20001/content/browser/frame_host/render_widget_host_view_guest.cc#newcode188 ...
4 years, 5 months ago (2016-06-30 20:33:47 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2101663002/20001
4 years, 5 months ago (2016-06-30 20:34:31 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2101663002/40001
4 years, 5 months ago (2016-06-30 20:44:35 UTC) #24
wjmaclean
On 2016/06/30 20:33:47, wjmaclean wrote: > I'll give this a dry-run before putting in the ...
4 years, 5 months ago (2016-06-30 20:44:45 UTC) #25
wjmaclean
Test in separate CL at https://codereview.chromium.org/2116663002
4 years, 5 months ago (2016-06-30 20:58:45 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-30 21:58:54 UTC) #28
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/2101663002/40001
4 years, 5 months ago (2016-06-30 22:00:35 UTC) #31
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-06-30 22:06:39 UTC) #33
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 22:06:52 UTC) #34
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 22:08:49 UTC) #36
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/347f2466211ae7ebbbc0a01f0f564274dc5fa3c2
Cr-Commit-Position: refs/heads/master@{#403308}

Powered by Google App Engine
This is Rietveld 408576698