RESOLVED FIXED 127891
WebKit2 View Gestures (Swipe): Provide a way for clients to provide views to swipe
https://bugs.webkit.org/show_bug.cgi?id=127891
Summary WebKit2 View Gestures (Swipe): Provide a way for clients to provide views to ...
Tim Horton
Reported 2014-01-30 00:03:47 PST
Sometimes, clients want to swipe to or from a custom view hierarchy. Let's provide SPI to make this work (later we can think about the right way to do this, probably involving WebKit instantiating and owning the views on navigation to a particular scheme, or some such). Implementation caveats: views must be layer backed and a contiguous, opaque rectangle. <rdar://problem/15931413>
Attachments
patch (18.09 KB, patch)
2014-01-30 00:25 PST, Tim Horton
no flags
ever so slightly more crazy (20.00 KB, patch)
2014-01-30 02:21 PST, Tim Horton
andersca: review+
Tim Horton
Comment 1 2014-01-30 00:25:43 PST
Tim Horton
Comment 2 2014-01-30 02:08:02 PST
Comment on attachment 222639 [details] patch I have some significant revisions to make, de-r?ing for now.
Tim Horton
Comment 3 2014-01-30 02:21:24 PST
Created attachment 222647 [details] ever so slightly more crazy
Anders Carlsson
Comment 4 2014-01-30 11:05:11 PST
Comment on attachment 222647 [details] ever so slightly more crazy View in context: https://bugs.webkit.org/attachment.cgi?id=222647&action=review > Source/WebKit2/UIProcess/mac/ViewGestureController.h:61 > + void setCustomSwipeViews(Vector<RetainPtr<NSView>> views) { m_customSwipeViews = views; } std::move(views). > Source/WebKit2/UIProcess/mac/ViewGestureController.h:62 > + Vector<RetainPtr<NSView>> customSwipeViews() const { return m_customSwipeViews; } You don't want to return this by reference?
Tim Horton
Comment 5 2014-01-30 11:26:19 PST
Note You need to log in before you can comment on or make changes to this bug.