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

Unified Diff: components/viz/common/hit_test/display_hit_test_data.h

Issue 2933493003: Add viz-host HitTestQuery. (Closed)
Patch Set: recursion; comment#10 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 side-by-side diff with in-line comments
Download patch
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..2ecf19f99aeeca0b8f9e39d9245bba76391d475d
--- /dev/null
+++ b/components/viz/common/hit_test/display_hit_test_data.h
@@ -0,0 +1,30 @@
+// 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_
rjkroege 2017/06/27 00:10:52 flatten out the subdir. i.e. this goes in componen
riajiang 2017/06/27 15:51:44 Done.
+#define COMPONENTS_VIZ_COMMON_HIT_TEST_DISPLAY_HIT_TEST_DATA_H_
+
+#include <vector>
+
+#include "cc/surfaces/frame_sink_id.h"
+#include "ui/gfx/geometry/rect.h"
+#include "ui/gfx/transform.h"
+
+namespace viz {
+namespace hit_test {
+
+struct DisplayHitTestDataRegion {
+ cc::FrameSinkId id;
+ gfx::Rect bounds;
+ gfx::Transform transform;
+ uint32_t flags;
+ uint32_t child_count;
+};
+
+using DisplayHitTestData = std::vector<DisplayHitTestDataRegion>;
sadrul 2017/06/27 03:37:54 If you follow the general convention in most chrom
riajiang 2017/06/27 15:51:44 I see, changed to DisplayHitTestData and DisplayHi
+
+} // namespace hit_test
+} // namespace viz
+
+#endif // COMPONENTS_VIZ_COMMON_HIT_TEST_DISPLAY_HIT_TEST_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698