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

Unified Diff: components/viz/hittest/public/interfaces/hittest_data.mojom

Issue 2908783002: WIP Hittest Component.
Patch Set: format Created 3 years, 7 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/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;
+};

Powered by Google App Engine
This is Rietveld 408576698