OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 #ifndef COMPONENTS_VIZ_COMMON_HIT_TEST_DISPLAY_HIT_TEST_DATA_H_ |
| 6 #define COMPONENTS_VIZ_COMMON_HIT_TEST_DISPLAY_HIT_TEST_DATA_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "cc/surfaces/frame_sink_id.h" |
| 11 #include "ui/gfx/geometry/rect.h" |
| 12 #include "ui/gfx/transform.h" |
| 13 |
| 14 namespace viz { |
| 15 namespace hit_test { |
| 16 |
| 17 // TODO(riajiang): Integrate with https://codereview.chromium.org/2908783002/. |
| 18 struct DisplayHitTestDataRegion { |
| 19 cc::FrameSinkId id; |
| 20 gfx::Rect bounds; |
| 21 gfx::Transform transform; |
| 22 uint32_t flags; |
| 23 uint32_t child_count; |
| 24 }; |
| 25 |
| 26 using DisplayHitTestData = std::vector<DisplayHitTestDataRegion>; |
| 27 |
| 28 } // namespace hit_test |
| 29 } // namespace viz |
| 30 |
| 31 #endif // COMPONENTS_VIZ_COMMON_HIT_TEST_DISPLAY_HIT_TEST_DATA_H_ |
OLD | NEW |