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

Unified Diff: components/viz/client/hit_test_data_provider.h

Issue 2972963002: [mus+ash] Implements hit-test client in Aura (Closed)
Patch Set: [mus ash] Implements hit-test client in Aura (rebased) Created 3 years, 5 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/client/hit_test_data_provider.h
diff --git a/components/viz/client/hit_test_data_provider.h b/components/viz/client/hit_test_data_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..882a8831bac69e6fb54b945e2962d10ca0127e3e
--- /dev/null
+++ b/components/viz/client/hit_test_data_provider.h
@@ -0,0 +1,32 @@
+// 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_CLIENT_HIT_TEST_DATA_PROVIDER_H_
+#define COMPONENTS_VIZ_CLIENT_HIT_TEST_DATA_PROVIDER_H_
+
+#include <memory>
+#include <vector>
+
+#include "base/macros.h"
+#include "components/viz/common/display_hit_test_region.h"
+
+namespace viz {
+
+class HitTestDataProvider {
+ public:
+ using HitTestRegionList = std::vector<DisplayHitTestRegion>;
+
+ HitTestDataProvider() = default;
+ virtual ~HitTestDataProvider() = default;
+
+ // Returns an array of hit-test regions.
+ virtual std::unique_ptr<HitTestRegionList> GetHitTestData() = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(HitTestDataProvider);
+};
+
+} // namespace viz
+
+#endif // COMPONENTS_VIZ_CLIENT_HIT_TEST_DATA_PROVIDER_H_
« no previous file with comments | « components/viz/client/client_layer_tree_frame_sink.cc ('k') | components/viz/common/display_hit_test_region.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698