Index: components/viz/hittest/public/interfaces/hittest_data.mojom |
diff --git a/components/viz/hittest/public/interfaces/hittest_data.mojom b/components/viz/hittest/public/interfaces/hittest_data.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7f658c8520e2ae12270023e750b5a7873c27b894 |
--- /dev/null |
+++ b/components/viz/hittest/public/interfaces/hittest_data.mojom |
@@ -0,0 +1,37 @@ |
+// Copyright 2016 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.hittest.mojom; |
+ |
+import "cc/ipc/surface_id.mojom"; |
+import "ui/gfx/geometry/mojo/geometry.mojom"; |
+import "ui/gfx/mojo/transform.mojom"; |
+ |
+enum HittestRegionFlags { |
+ HITTEST_NONE = 0, |
+ HITTEST_ASK, |
+ HITTEST_NO_TOUCH_EVENT_HANDLER, |
+ HITTEST_IGNORE |
+}; |
+ |
+struct HittestRegion { |
+ HittestRegionFlags flags; |
+ gfx.mojom.Rect rect; |
+ gfx.mojom.Transform transform; |
+}; |
+ |
+struct HittestChildRegion { |
+ cc.mojom.SurfaceId surfaceId; |
+ HittestRegionFlags flags; |
+ gfx.mojom.Rect rect; |
+ gfx.mojom.Transform transform; |
+}; |
+ |
+struct HittestData { |
+ cc.mojom.SurfaceId surfaceId; |
+ gfx.mojom.RectF rect; |
+ uint32 flags; |
+ array<HittestRegion> regions; |
+ array<HittestChildRegion> child_regions; |
+}; |