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

Unified Diff: cc/surfaces/surface_hittest.h

Issue 1265013003: Adds support for hittesting points on surface quads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing component build Created 5 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
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_

Powered by Google App Engine
This is Rietveld 408576698