WebKit2 swipe gesture should report the position of the snapshot to the client
[WebKit-https.git] / Source / WebKit2 / UIProcess / mac / ViewGestureController.h
index 8435754..b3906dd 100644 (file)
@@ -100,6 +100,7 @@ public:
     void setCustomSwipeViews(Vector<RetainPtr<NSView>> views) { m_customSwipeViews = WTF::move(views); }
     void setCustomSwipeViewsTopContentInset(float topContentInset) { m_customSwipeViewsTopContentInset = topContentInset; }
     WebCore::FloatRect windowRelativeBoundsForCustomSwipeViews() const;
+    void setDidMoveSwipeSnapshotCallback(void(^)(CGRect));
 
     void endActiveGesture();
 
@@ -148,6 +149,7 @@ private:
     CALayer *determineSnapshotLayerParent() const;
     CALayer *determineLayerAdjacentToSnapshotForParent(SwipeDirection, CALayer *snapshotLayerParent) const;
     void applyDebuggingPropertiesToSwipeViews();
+    void didMoveSwipeSnapshotLayer();
 #endif
 
     WebPageProxy& m_webPageProxy;
@@ -189,6 +191,8 @@ private:
     SwipeDirection m_pendingSwipeDirection;
     WebCore::FloatSize m_cumulativeDeltaForPendingSwipe;
 
+    void (^m_didMoveSwipeSnapshotCallback)(CGRect);
+
     bool m_shouldIgnorePinnedState;
 
     bool m_swipeWaitingForVisuallyNonEmptyLayout;