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

Issue 2951053005: Add Mojo API for Blink hit testing (Closed)

Created:
3 years, 6 months ago by Navid Zolghadr
Modified:
3 years, 3 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, qsr+mojo_chromium.org, kinuko+watch, viettrungluu+watch_chromium.org, nasko+codewatch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, dglazkov+blink, darin-cc_chromium.org, dtapuska+chromiumwatch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, darin (slow to review), blink-reviews-frames_chromium.org, platform-architecture-syd+reviews-web_chromium.org, gklassen, bokan
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Mojo API for Blink hit testing Add Mojo API in the same place as other input mojo APIs. So to be able to have this API enabled kMojoInputMessages as the hit testing will also go through the same path. BUG=732405 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation

Patch Set 1 #

Total comments: 10

Patch Set 2 : Make the hit test API accesible by viz component #

Total comments: 6

Patch Set 3 : Address Rob's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -50 lines) Patch
M components/viz/host/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/viz/host/host_frame_sink_manager.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M components/viz/host/host_frame_sink_manager.cc View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M components/viz/service/frame_sinks/compositor_frame_sink_support_manager.h View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M components/viz/service/frame_sinks/direct_layer_tree_frame_sink.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.h View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 2 3 chunks +7 lines, -5 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/delegated_frame_host.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/delegated_frame_host.cc View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M content/browser/renderer_host/frame_sink_provider_impl.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/frame_sink_provider_impl.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 2 chunks +9 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 chunks +20 lines, -0 lines 0 comments Download
M content/common/frame_sink_provider.mojom View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/input/frame_input_handler_impl.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/input/frame_input_handler_impl.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/input/render_widget_input_handler.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/input/render_widget_input_handler.cc View 1 3 chunks +10 lines, -0 lines 0 comments Download
A content/renderer/input/target_frame_for_input_impl.h View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A content/renderer/input/target_frame_for_input_impl.cc View 1 2 1 chunk +98 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 4 chunks +10 lines, -3 lines 0 comments Download
M content/renderer/render_widget.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/test/test_render_view_host.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/test_render_view_host.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M services/viz/public/interfaces/hit_test/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A services/viz/public/interfaces/hit_test/target_frame_for_input_delegate.mojom View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/exported/WebNode.cpp View 1 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/exported/WebViewImpl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/exported/WebViewImpl.cpp View 1 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/WebViewFrameWidget.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/WebViewFrameWidget.cpp View 1 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebNode.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebView.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebWidget.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
M ui/aura/local/layer_tree_frame_sink_local.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (8 generated)
rjkroege
3 years, 5 months ago (2017-06-26 17:46:42 UTC) #3
rjkroege
also: shouldn't this CL include some code in content/renderer/mus so that ws can directly interrogate ...
3 years, 5 months ago (2017-06-26 18:29:52 UTC) #4
dcheng
How does the new Blink API interact with the browser-side hit testing for OOPIFs?
3 years, 5 months ago (2017-06-26 20:56:38 UTC) #6
Navid Zolghadr
On 2017/06/26 20:56:38, dcheng (OOO Jun 25 - Jul 1) wrote: > How does the ...
3 years, 5 months ago (2017-06-26 20:58:18 UTC) #7
riajiang
https://codereview.chromium.org/2951053005/diff/1/content/common/input/input_handler.mojom File content/common/input/input_handler.mojom (right): https://codereview.chromium.org/2951053005/diff/1/content/common/input/input_handler.mojom#newcode62 content/common/input/input_handler.mojom:62: HitTestFrameAt(gfx.mojom.PointF point) => (int32 frame_id); On 2017/06/26 18:29:52, rjkroege ...
3 years, 5 months ago (2017-06-27 16:37:28 UTC) #9
rjkroege
On 2017/06/26 20:58:18, Navid Zolghadr wrote: > On 2017/06/26 20:56:38, dcheng (OOO Jun 25 - ...
3 years, 5 months ago (2017-06-28 18:37:15 UTC) #10
rjkroege
https://codereview.chromium.org/2951053005/diff/1/content/common/input/input_handler.mojom File content/common/input/input_handler.mojom (right): https://codereview.chromium.org/2951053005/diff/1/content/common/input/input_handler.mojom#newcode62 content/common/input/input_handler.mojom:62: HitTestFrameAt(gfx.mojom.PointF point) => (int32 frame_id); On 2017/06/27 16:37:28, riajiang ...
3 years, 5 months ago (2017-06-28 18:40:19 UTC) #11
riajiang
On 2017/06/28 18:37:15, rjkroege wrote: > On 2017/06/26 20:58:18, Navid Zolghadr wrote: > > On ...
3 years, 5 months ago (2017-06-28 19:05:03 UTC) #12
Navid Zolghadr
https://codereview.chromium.org/2951053005/diff/1/content/common/input/input_handler.mojom File content/common/input/input_handler.mojom (right): https://codereview.chromium.org/2951053005/diff/1/content/common/input/input_handler.mojom#newcode62 content/common/input/input_handler.mojom:62: HitTestFrameAt(gfx.mojom.PointF point) => (int32 frame_id); On 2017/06/28 18:40:19, rjkroege ...
3 years, 5 months ago (2017-06-28 19:25:06 UTC) #13
Navid Zolghadr
https://codereview.chromium.org/2951053005/diff/1/content/common/input/input_handler.mojom File content/common/input/input_handler.mojom (right): https://codereview.chromium.org/2951053005/diff/1/content/common/input/input_handler.mojom#newcode61 content/common/input/input_handler.mojom:61: // Returns the hit-tested remote frame id for the ...
3 years, 5 months ago (2017-07-17 18:54:46 UTC) #15
riajiang
On 2017/07/17 18:54:46, Navid Zolghadr wrote: > https://codereview.chromium.org/2951053005/diff/1/content/common/input/input_handler.mojom > File content/common/input/input_handler.mojom (right): > > https://codereview.chromium.org/2951053005/diff/1/content/common/input/input_handler.mojom#newcode61 ...
3 years, 5 months ago (2017-07-18 18:18:28 UTC) #16
bokan
https://codereview.chromium.org/2951053005/diff/1/third_party/WebKit/public/web/WebWidget.h File third_party/WebKit/public/web/WebWidget.h (right): https://codereview.chromium.org/2951053005/diff/1/third_party/WebKit/public/web/WebWidget.h#newcode125 third_party/WebKit/public/web/WebWidget.h:125: virtual WebFrame* HitTestFrameAt(const WebFloatPoint& point) { Would we generalise ...
3 years, 5 months ago (2017-07-18 19:26:35 UTC) #18
Navid Zolghadr
https://codereview.chromium.org/2951053005/diff/1/third_party/WebKit/public/web/WebWidget.h File third_party/WebKit/public/web/WebWidget.h (right): https://codereview.chromium.org/2951053005/diff/1/third_party/WebKit/public/web/WebWidget.h#newcode125 third_party/WebKit/public/web/WebWidget.h:125: virtual WebFrame* HitTestFrameAt(const WebFloatPoint& point) { On 2017/07/18 19:26:35, ...
3 years, 5 months ago (2017-07-18 19:34:14 UTC) #19
bokan
https://codereview.chromium.org/2951053005/diff/1/third_party/WebKit/public/web/WebWidget.h File third_party/WebKit/public/web/WebWidget.h (right): https://codereview.chromium.org/2951053005/diff/1/third_party/WebKit/public/web/WebWidget.h#newcode125 third_party/WebKit/public/web/WebWidget.h:125: virtual WebFrame* HitTestFrameAt(const WebFloatPoint& point) { On 2017/07/18 19:34:14, ...
3 years, 5 months ago (2017-07-18 19:39:43 UTC) #20
Navid Zolghadr
ptal https://codereview.chromium.org/2951053005/diff/20001/components/viz/service/frame_sinks/direct_layer_tree_frame_sink.cc File components/viz/service/frame_sinks/direct_layer_tree_frame_sink.cc (right): https://codereview.chromium.org/2951053005/diff/20001/components/viz/service/frame_sinks/direct_layer_tree_frame_sink.cc#newcode78 components/viz/service/frame_sinks/direct_layer_tree_frame_sink.cc:78: this, nullptr, frame_sink_id_, is_root, There are some places ...
3 years, 4 months ago (2017-08-09 16:08:23 UTC) #22
Navid Zolghadr
On 2017/08/09 16:08:23, Navid Zolghadr wrote: > ptal > > https://codereview.chromium.org/2951053005/diff/20001/components/viz/service/frame_sinks/direct_layer_tree_frame_sink.cc > File components/viz/service/frame_sinks/direct_layer_tree_frame_sink.cc (right): ...
3 years, 4 months ago (2017-08-14 15:14:54 UTC) #23
rjkroege
On 2017/08/14 15:14:54, Navid Zolghadr wrote: > On 2017/08/09 16:08:23, Navid Zolghadr wrote: > > ...
3 years, 4 months ago (2017-08-14 18:25:27 UTC) #24
rjkroege
You don't plumb this into services/ui in a way that I'd expect? Or is that ...
3 years, 4 months ago (2017-08-14 18:26:58 UTC) #25
Navid Zolghadr
3 years, 4 months ago (2017-08-14 19:20:04 UTC) #27
Navid Zolghadr
ptal. https://codereview.chromium.org/2951053005/diff/20001/services/viz/public/interfaces/hit_test/input_hit_test.mojom File services/viz/public/interfaces/hit_test/input_hit_test.mojom (right): https://codereview.chromium.org/2951053005/diff/20001/services/viz/public/interfaces/hit_test/input_hit_test.mojom#newcode1 services/viz/public/interfaces/hit_test/input_hit_test.mojom:1: module viz.mojom; On 2017/08/14 18:26:58, rjkroege wrote: > ...
3 years, 4 months ago (2017-08-18 15:29:49 UTC) #28
Navid Zolghadr
3 years, 3 months ago (2017-08-25 19:26:35 UTC) #29
ping.

I can certainly push the whole change to Gerrit if it is easier for people and
if you don't care about previous comments on this review.

Powered by Google App Engine
This is Rietveld 408576698