Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CC_SURFACES_SURFACE_HITTEST_H_ | |
| 6 #define CC_SURFACES_SURFACE_HITTEST_H_ | |
| 7 | |
| 8 #include "cc/surfaces/surface_id.h" | |
| 9 #include "cc/surfaces/surfaces_export.h" | |
| 10 | |
| 11 namespace gfx { | |
| 12 class Point; | |
| 13 } | |
| 14 | |
| 15 namespace cc { | |
| 16 class CC_SURFACES_EXPORT SurfaceManager; | |
| 17 | |
| 18 class SurfaceHittest { | |
| 19 public: | |
| 20 explicit SurfaceHittest(SurfaceManager* manager); | |
| 21 ~SurfaceHittest(); | |
| 22 | |
| 23 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
| |
| 24 | |
| 25 private: | |
| 26 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.
| |
| 27 }; | |
| 28 } // namespace cc | |
| 29 | |
| 30 #endif // CC_SURFACES_SURFACE_HITTEST_H_ | |
| OLD | NEW |