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

Unified Diff: third_party/WebKit/Source/core/layout/HitTestResult.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: 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/layout/HitTestResult.h
diff --git a/third_party/WebKit/Source/core/layout/HitTestResult.h b/third_party/WebKit/Source/core/layout/HitTestResult.h
index 9e616bf82357a38172f3a496064d0e0a6a4e30f5..ae38618b2696fd826235635938b19d9f8560dd1e 100644
--- a/third_party/WebKit/Source/core/layout/HitTestResult.h
+++ b/third_party/WebKit/Source/core/layout/HitTestResult.h
@@ -24,6 +24,7 @@
#include "core/CoreExport.h"
#include "core/editing/PositionWithAffinity.h"
+#include "core/layout/HitTestCanvasResult.h"
#include "core/layout/HitTestLocation.h"
#include "core/layout/HitTestRequest.h"
#include "platform/geometry/FloatQuad.h"
@@ -117,12 +118,14 @@ public:
const HitTestLocation& hitTestLocation() const { return m_hitTestLocation; }
const HitTestRequest& hitTestRequest() const { return m_hitTestRequest; }
+ HitTestCanvasResult* hitTestCanvasResult() const { return m_hitTestCanvasResult.get(); }
void setInnerNode(Node*);
HTMLAreaElement* imageAreaForImage() const;
void setURLElement(Element*);
void setScrollbar(Scrollbar*);
void setIsOverWidget(bool b) { m_isOverWidget = b; }
+ void setHitCanvasRegion(HitTestCanvasResult*);
bool isSelected() const;
String title(TextDirection&) const;
@@ -165,6 +168,7 @@ private:
HitTestLocation m_hitTestLocation;
HitTestRequest m_hitTestRequest;
+ Member<HitTestCanvasResult> m_hitTestCanvasResult;
bool m_cacheable;
Member<Node> m_innerNode;

Powered by Google App Engine
This is Rietveld 408576698