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

Unified Diff: services/gfx/compositor/graph/snapshot.h

Issue 1774373002: Mozart: Implement hit testing. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-4
Patch Set: Created 4 years, 9 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: services/gfx/compositor/graph/snapshot.h
diff --git a/services/gfx/compositor/graph/snapshot.h b/services/gfx/compositor/graph/snapshot.h
index 3e4ccd466328b4c3655b093c4202399db5498f8c..174a8270cf39dfe061fa8de76096c852d14624dd 100644
--- a/services/gfx/compositor/graph/snapshot.h
+++ b/services/gfx/compositor/graph/snapshot.h
@@ -13,6 +13,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "mojo/services/geometry/interfaces/geometry.mojom.h"
+#include "mojo/services/gfx/composition/interfaces/hit_tests.mojom.h"
#include "mojo/services/gfx/composition/interfaces/scheduling.mojom.h"
namespace compositor {
@@ -69,6 +70,11 @@ class Snapshot : public base::RefCounted<Snapshot> {
const mojo::Rect& viewport,
const mojo::gfx::composition::FrameInfo& frame_info) const;
+ // Performs a hit test at the specified point.
+ // Only valid if |!is_blocked()|.
+ void HitTest(const mojo::Point& point,
+ mojo::gfx::composition::HitTestResult* result) const;
+
// Returns true if the specified node was blocked from rendering.
// Only valid if |!is_blocked()|.
bool IsNodeBlocked(const NodeDef* node) const;

Powered by Google App Engine
This is Rietveld 408576698