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

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, 6 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: Source/core/platform/graphics/GraphicsLayer.h
diff --git a/Source/core/platform/graphics/GraphicsLayer.h b/Source/core/platform/graphics/GraphicsLayer.h
index 3324a54e4f0f981246cae02ea48dbff5a8d1ae8e..1f81466f62edacbb6d3dda61ed464c2d047128cd 100644
--- a/Source/core/platform/graphics/GraphicsLayer.h
+++ b/Source/core/platform/graphics/GraphicsLayer.h
@@ -41,6 +41,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"
@@ -430,9 +431,10 @@ public:
return false;
}
- void setLinkHighlight(LinkHighlightClient*);
+ void addLinkHighlight(LinkHighlightClient*);
+ void removeLinkHighlight(LinkHighlightClient*);
// Exposed for tests
- LinkHighlightClient* linkHighlight() { return m_linkHighlight; }
+ LinkHighlightClient* linkHighlight(int i) { return m_linkHighlights[i]; }
void setScrollableArea(ScrollableArea* scrollableArea) { m_scrollableArea = scrollableArea; }
ScrollableArea* scrollableArea() const { return m_scrollableArea; }
@@ -566,7 +568,7 @@ protected:
// on.
int m_contentsLayerId;
- LinkHighlightClient* m_linkHighlight;
+ Vector<LinkHighlightClient*> m_linkHighlights;
OwnPtr<OpaqueRectTrackingContentLayerDelegate> m_opaqueRectTrackingContentLayerDelegate;

Powered by Google App Engine
This is Rietveld 408576698