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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h

Issue 2229743003: add HitTestCanvasResult Class instend of std::pair<Element*, String> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add HitTestCanvasResult Class instend of std::pair<Element*, String> Created 4 years, 4 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: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
index b1df36e9ee47acf7441c013f1d178ff28f2932e0..f6477ffe7a401224596b03f0a02c54d75dd4b951 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
@@ -55,6 +55,7 @@ class FontMetrics;
class HitRegion;
class HitRegionOptions;
class HitRegionManager;
+class HitTestCanvasResult;
class Path2D;
class SVGMatrixTearOff;
class TextMetrics;
@@ -134,7 +135,7 @@ public:
void willProcessTask() override { }
void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newStyle) override;
- std::pair<Element*, String> getControlAndIdIfHitRegionExists(const LayoutPoint& location) override;
+ HitTestCanvasResult* getControlAndIdIfHitRegionExists(const LayoutPoint& location) override;
String getIdFromControl(const Element*) override;
// SVGResourceClient implementation

Powered by Google App Engine
This is Rietveld 408576698