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

Side by Side Diff: components/viz/hittest/public/interfaces/hittest_data.mojom

Issue 2908783002: WIP Hittest Component.
Patch Set: resolve presubmit checks 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module viz.hittest.mojom;
6
7 import "cc/ipc/surface_id.mojom";
8 import "ui/gfx/geometry/mojo/geometry.mojom";
9 import "ui/gfx/mojo/transform.mojom";
10
11 enum HittestRegionFlags {
12 HITTEST_NONE = 0,
13 HITTEST_ASK,
14 HITTEST_NO_TOUCH_EVENT_HANDLER,
15 HITTEST_IGNORE
16 };
17
18 struct HittestRegion {
19 HittestRegionFlags flags;
20 gfx.mojom.Rect rect;
21 gfx.mojom.Transform transform;
22 };
23
24 struct HittestChildRegion {
25 cc.mojom.SurfaceId surfaceId;
26 HittestRegionFlags flags;
27 gfx.mojom.Rect rect;
28 gfx.mojom.Transform transform;
29 };
30
31 struct HittestData {
32 cc.mojom.SurfaceId surfaceId;
33 gfx.mojom.RectF rect;
34 uint32 flags;
35 array<HittestRegion> regions;
rjkroege 2017/05/29 15:58:03 this doesn't not preserve Z order. HittestChildReg
36 array<HittestChildRegion> child_regions;
37 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698