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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.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/core/html/HTMLCanvasElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
index d6f413b18f3fc9de81c825da7bc780f84329d7b6..a36a95aff7563c69c284bc13d98b7a9f99fa71e7 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
@@ -57,6 +57,7 @@ class CanvasContextCreationAttributes;
class CanvasRenderingContext;
class CanvasRenderingContextFactory;
class GraphicsContext;
+class HitTestCanvasResult;
class HTMLCanvasElement;
class Image;
class ImageBitmapOptions;
@@ -200,7 +201,7 @@ public:
// For Canvas HitRegions
bool isSupportedInteractiveCanvasFallback(const Element&);
- std::pair<Element*, String> getControlAndIdIfHitRegionExists(const LayoutPoint&);
+ HitTestCanvasResult* getControlAndIdIfHitRegionExists(const LayoutPoint&);
String getIdFromControl(const Element*);
// For OffscreenCanvas that controls this html canvas element
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698