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

Unified Diff: cc/surfaces/surface_hittest.h

Issue 2184033003: Refactor browser process coordinate transformation methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed problematic DCHECK Created 4 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
« no previous file with comments | « no previous file | cc/surfaces/surface_hittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_hittest.h
diff --git a/cc/surfaces/surface_hittest.h b/cc/surfaces/surface_hittest.h
index 14f08455ec32e6cde9872bbbb6c614ebbee86cde..f934ad65db2f539bc2d146f7f1b098c3b3b88a3c 100644
--- a/cc/surfaces/surface_hittest.h
+++ b/cc/surfaces/surface_hittest.h
@@ -44,6 +44,14 @@ class CC_SURFACES_EXPORT SurfaceHittest {
const SurfaceId& target_surface_id,
gfx::Transform* transform);
+ // Attempts to transform a point from the coordinate space of one surface to
+ // that of another, where one is surface is embedded within the other.
+ // Returns true if the transform is successfully applied, and false if
+ // neither surface is contained with the other.
+ bool TransformPointToTargetSurface(const SurfaceId& original_surface_id,
+ const SurfaceId& target_surface_id,
+ gfx::Point* point);
+
private:
bool GetTargetSurfaceAtPointInternal(
const SurfaceId& surface_id,
« no previous file with comments | « no previous file | cc/surfaces/surface_hittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698