| 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_
|
|
|