OLD | NEW |
---|---|
(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, | |
rjkroege
2017/06/02 22:45:46
say what they are.
gklassen
2017/06/05 21:32:14
Done.
| |
13 HITTEST_SURFACE, | |
14 HITTEST_ASK, | |
15 HITTEST_NO_TOUCH_EVENT_HANDLER, | |
16 HITTEST_IGNORE | |
17 }; | |
18 | |
19 struct HittestRegion { | |
20 cc.mojom.SurfaceId surface_id_; | |
21 HittestRegionFlags flags_; | |
22 gfx.mojom.Rect rect_; | |
23 gfx.mojom.Transform transform_; | |
24 }; | |
25 | |
26 struct HittestData { | |
27 cc.mojom.SurfaceId surface_id_; | |
rjkroege
2017/06/02 22:45:46
conceivably this should be the FrameSink ID instea
gklassen
2017/06/05 21:32:14
Using FrameSink ID would make things simpler - her
| |
28 gfx.mojom.Rect rect_; | |
29 HittestRegionFlags flags_; | |
30 array<HittestRegion> regions_; // in z-order | |
rjkroege
2017/06/02 22:45:46
ascending or descending
| |
31 }; | |
OLD | NEW |