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

Unified Diff: components/viz/host/host_frame_sink_manager.cc

Issue 2951053005: Add Mojo API for Blink hit testing (Closed)
Patch Set: Make the hit test API accesible by viz component Created 3 years, 4 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: components/viz/host/host_frame_sink_manager.cc
diff --git a/components/viz/host/host_frame_sink_manager.cc b/components/viz/host/host_frame_sink_manager.cc
index aba1a37903ea0139bea3963379d7004a87eb4712..9f227becf1e3674d609aa6640df04a390ef9fc5a 100644
--- a/components/viz/host/host_frame_sink_manager.cc
+++ b/components/viz/host/host_frame_sink_manager.cc
@@ -11,6 +11,7 @@
#include "components/viz/service/frame_sinks/compositor_frame_sink_support.h"
#include "components/viz/service/frame_sinks/compositor_frame_sink_support_client.h"
#include "components/viz/service/frame_sinks/frame_sink_manager_impl.h"
+#include "services/viz/public/interfaces/hit_test/input_hit_test.mojom.h"
namespace viz {
@@ -113,6 +114,7 @@ void HostFrameSinkManager::UnregisterFrameSinkHierarchy(
std::unique_ptr<CompositorFrameSinkSupport>
HostFrameSinkManager::CreateCompositorFrameSinkSupport(
CompositorFrameSinkSupportClient* client,
+ mojom::FrameInputHitTest* frame_input_hit_test,
const FrameSinkId& frame_sink_id,
bool is_root,
bool handles_frame_sink_id_invalidation,
@@ -131,6 +133,7 @@ HostFrameSinkManager::CreateCompositorFrameSinkSupport(
data.support = support.get();
data.is_root = is_root;
+ data.frame_hit_test = frame_input_hit_test;
return support;
}

Powered by Google App Engine
This is Rietveld 408576698