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

Unified Diff: components/viz/hit_test/public/interfaces/hit_test_data.mojom

Issue 2938953002: Implement HitTestAggregator (Closed)
Patch Set: rebase Created 3 years, 6 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/hit_test/public/interfaces/hit_test_data.mojom
diff --git a/components/viz/hit_test/public/interfaces/hit_test_data.mojom b/components/viz/hit_test/public/interfaces/hit_test_data.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..90accf29784ad42a810b027e96bc0830fcd31155
--- /dev/null
+++ b/components/viz/hit_test/public/interfaces/hit_test_data.mojom
@@ -0,0 +1,48 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module viz.hit_test.mojom;
+
+import "cc/ipc/surface_id.mojom";
+import "ui/gfx/geometry/mojo/geometry.mojom";
+import "ui/gfx/mojo/transform.mojom";
+
+// Region maps to this surface ( me ).
+const uint32 kHitTestMine = 0x01;
+
+// Region ignored for hit testing ( transparent backgrounds & hover:none ).
+const uint32 kHitTestIgnore = 0x02;
+
+// Region maps to child surface ( OOPIF ).
+const uint32 kHitTestChildSurface = 0x04;
+
+// Irregular boundary - send HitTestRequest to resolve.
+const uint32 kHitTestAsk = 0x08;
+
+// No touch event handler exists - no need to send touch events.
+const uint32 kHitTestNoTouchEventHandler = 0x10;
+
+struct HitTestRegion {
+
+ // Flags to indicate the type of HitTestRegion.
+ uint32 flags;
+
+ // SurfaceId is required when flags = kHitTestChildSurface.
+ cc.mojom.SurfaceId surface_id;
+
+ // The rect of the region in the coordinate space of the embedder.
+ gfx.mojom.Rect rect;
+
+ // The transform applied to the child region.
+ gfx.mojom.Transform transform;
+};
+
+struct HitTestData {
+
+ // SurfaceId corresponding to this HitTestData.
+ cc.mojom.SurfaceId surface_id;
+
+ // The list of sub-regions in this surface.
+ array<HitTestRegion> regions; // in front to back z-order
+};

Powered by Google App Engine
This is Rietveld 408576698