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

Unified Diff: components/viz/hit_test/display_hit_test_data_factory.h

Issue 2908783002: WIP Hittest Component.
Patch Set: change HitTestFlags to constants so we can mix and match and convert to struct naming convention 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/hit_test/display_hit_test_data_factory.h
diff --git a/components/viz/hit_test/display_hit_test_data_factory.h b/components/viz/hit_test/display_hit_test_data_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..b0ea8fef45ca4850aaa53767517f9071a73da637
--- /dev/null
+++ b/components/viz/hit_test/display_hit_test_data_factory.h
@@ -0,0 +1,33 @@
+// 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_HIT_TEST_DISPLAY_HIT_TEST_DATA_FACTORY_H_
+#define COMPONENTS_VIZ_HIT_TEST_DISPLAY_HIT_TEST_DATA_FACTORY_H_
+
+#include <stdint.h>
+
+#include <map>
+#include <memory>
+
+#include "components/viz/hit_test/display_hit_test_data.h"
+#include "components/viz/hit_test/hit_test_export.h"
+
+namespace viz {
+namespace hit_test {
+
+class DisplayHitTestDataFactory {
+ public:
+ virtual ~DisplayHitTestDataFactory() = default;
+
+ // Creates the memory required for a DisplayHitTestData structure.
+ // This may use an implementation that allocates local heap memory
+ // when viz and browser are in the same process and must use an
+ // implementation that allocates shared memory when they are not.
+ virtual DisplayHitTestData* Create(int byte_count) = 0;
+};
+
+} // namespace hit_test
+} // namespace viz
+
+#endif // COMPONENTS_VIZ_HIT_TEST_DISPLAY_HIT_TEST_DATA_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698