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

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

Issue 2908783002: WIP Hittest Component.
Patch Set: surface observer and test setup 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 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,
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698