Changeset 231814 in webkit


Ignore:
Timestamp:
May 15, 2018 1:38:01 PM (6 years ago)
Author:
dino@apple.com
Message:

Provide UIView and UIImage for zoom transition
https://bugs.webkit.org/show_bug.cgi?id=185655
<rdar://problem/40267224>

Reviewed by Antoine Quint.

Provide a UIView* for the frameForPreviewItem to use as a source view.
Also implement the transitionImageForPreviewItem delegate, even though
we're returning nil.

  • UIProcess/Cocoa/SystemPreviewControllerCocoa.mm:

(-[_WKPreviewControllerDelegate previewController:frameForPreviewItem:inSourceView:]):
(-[_WKPreviewControllerDelegate previewController:transitionImageForPreviewItem:contentRect:]):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r231811 r231814  
     12018-05-15  Dean Jackson  <dino@apple.com>
     2
     3        Provide UIView and UIImage for zoom transition
     4        https://bugs.webkit.org/show_bug.cgi?id=185655
     5        <rdar://problem/40267224>
     6
     7        Reviewed by Antoine Quint.
     8
     9        Provide a UIView* for the frameForPreviewItem to use as a source view.
     10        Also implement the transitionImageForPreviewItem delegate, even though
     11        we're returning nil.
     12
     13        * UIProcess/Cocoa/SystemPreviewControllerCocoa.mm:
     14        (-[_WKPreviewControllerDelegate previewController:frameForPreviewItem:inSourceView:]):
     15        (-[_WKPreviewControllerDelegate previewController:transitionImageForPreviewItem:contentRect:]):
     16
    1172018-05-15  Daniel Bates  <dabates@apple.com>
    218
  • trunk/Source/WebKit/UIProcess/Cocoa/SystemPreviewControllerCocoa.mm

    r231797 r231814  
    138138        return CGRectZero;
    139139
     140    *view = presentingViewController.view;
    140141    CGRect frame = presentingViewController.view.frame;
    141142    // Create a smaller rectangle centered in the frame.
     
    146147}
    147148
     149- (UIImage *)previewController:(QLPreviewController *)controller transitionImageForPreviewItem:(id <QLPreviewItem>)item contentRect:(CGRect *)contentRect
     150{
     151    return nil;
     152}
     153
    148154@end
    149155
Note: See TracChangeset for help on using the changeset viewer.