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

Unified Diff: Source/core/platform/graphics/GraphicsLayer.h

Issue 15663005: Expand tap highlight to allow multiple highlights for touch disambiguation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 | « Source/core/page/TouchDisambiguation.cpp ('k') | Source/core/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/GraphicsLayer.h
diff --git a/Source/core/platform/graphics/GraphicsLayer.h b/Source/core/platform/graphics/GraphicsLayer.h
index 7572b3c497513d32f94d81351005fc0eac501019..ddd26099d6b618785f91e051be3772484ab30734 100644
--- a/Source/core/platform/graphics/GraphicsLayer.h
+++ b/Source/core/platform/graphics/GraphicsLayer.h
@@ -42,6 +42,7 @@
#include "wtf/HashMap.h"
#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
+#include "wtf/Vector.h"
#include "public/platform/WebAnimationDelegate.h"
#include "public/platform/WebCompositingReasons.h"
@@ -288,9 +289,11 @@ public:
return false;
}
- void setLinkHighlight(LinkHighlightClient*);
+ void addLinkHighlight(LinkHighlightClient*);
+ void removeLinkHighlight(LinkHighlightClient*);
// Exposed for tests
- LinkHighlightClient* linkHighlight() { return m_linkHighlight; }
+ unsigned numLinkHighlights() { return m_linkHighlights.size(); }
+ LinkHighlightClient* linkHighlight(int i) { return m_linkHighlights[i]; }
void setScrollableArea(ScrollableArea*, bool isMainFrame);
ScrollableArea* scrollableArea() const { return m_scrollableArea; }
@@ -401,7 +404,7 @@ private:
// on.
int m_contentsLayerId;
- LinkHighlightClient* m_linkHighlight;
+ Vector<LinkHighlightClient*> m_linkHighlights;
OwnPtr<OpaqueRectTrackingContentLayerDelegate> m_opaqueRectTrackingContentLayerDelegate;
« no previous file with comments | « Source/core/page/TouchDisambiguation.cpp ('k') | Source/core/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698