Chromium Code Reviews| Index: components/viz/common/hit_test/display_hit_test_data.h |
| diff --git a/components/viz/common/hit_test/display_hit_test_data.h b/components/viz/common/hit_test/display_hit_test_data.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..44b0acbcf3ebb19bfb1499658280416c14a1a215 |
| --- /dev/null |
| +++ b/components/viz/common/hit_test/display_hit_test_data.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2017 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. |
| + |
| +#ifndef COMPONENTS_VIZ_COMMON_HIT_TEST_DISPLAY_HIT_TEST_DATA_H_ |
| +#define COMPONENTS_VIZ_COMMON_HIT_TEST_DISPLAY_HIT_TEST_DATA_H_ |
| + |
| +#include "cc/surfaces/frame_sink_id.h" |
| +#include "ui/gfx/geometry/rect.h" |
| +#include "ui/gfx/transform.h" |
| + |
| +namespace viz { |
| +namespace hit_test { |
| + |
| +// TODO(riajiang): Integrate with https://codereview.chromium.org/2908783002/. |
| +struct DisplayHitTestData { |
|
rjkroege
2017/06/15 19:58:35
I'd call this a DisplayHitTestDataRegion where the
riajiang
2017/06/16 02:56:54
Done. Changed DisplayHitTestData to be a vector of
|
| + cc::FrameSinkId id; |
| + gfx::Rect bounds; |
| + gfx::Transform transform; |
| + int flags; |
| + uint32_t child_count; |
| +}; |
| + |
| +} // namespace hit_test |
| +} // namespace viz |
| + |
| +#endif // COMPONENTS_VIZ_COMMON_HIT_TEST_DISPLAY_HIT_TEST_DATA_H_ |