Chromium Code Reviews| Index: cc/surfaces/surface_hittest.h |
| diff --git a/cc/surfaces/surface_hittest.h b/cc/surfaces/surface_hittest.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..eeaed1fc8275a1acc564c962d5ae176f0cba1901 |
| --- /dev/null |
| +++ b/cc/surfaces/surface_hittest.h |
| @@ -0,0 +1,30 @@ |
| +// Copyright 2015 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 CC_SURFACES_SURFACE_HITTEST_H_ |
| +#define CC_SURFACES_SURFACE_HITTEST_H_ |
| + |
| +#include "cc/surfaces/surface_id.h" |
| +#include "cc/surfaces/surfaces_export.h" |
| + |
| +namespace gfx { |
| +class Point; |
| +} |
| + |
| +namespace cc { |
| +class CC_SURFACES_EXPORT SurfaceManager; |
| + |
| +class SurfaceHittest { |
| + public: |
| + explicit SurfaceHittest(SurfaceManager* manager); |
| + ~SurfaceHittest(); |
| + |
| + SurfaceId Hittest(SurfaceId surface_id, const gfx::Point& point); |
|
jbauman
2015/07/31 22:49:27
You might also need to return the transformed loca
lfg
2015/08/04 21:21:42
Indeed, you're right. For some context, today this
|
| + |
| + private: |
| + SurfaceManager* manager_; |
|
dcheng
2015/08/01 00:48:47
Nit: SurfaceManager* const, since it can't change
lfg
2015/08/04 21:21:42
Done.
|
| +}; |
| +} // namespace cc |
| + |
| +#endif // CC_SURFACES_SURFACE_HITTEST_H_ |