Changeset 166612 in webkit


Ignore:
Timestamp:
Apr 1, 2014, 2:29:48 PM (11 years ago)
Author:
aestes@apple.com
Message:

[Cocoa] Add SPI to determine if a WKWebView is displaying a PDF
https://bugs.webkit.org/show_bug.cgi?id=131063

Reviewed by Tim Horton.

  • UIProcess/API/Cocoa/WKWebView.mm:

(-[WKWebView _isDisplayingPDF]):

  • UIProcess/API/Cocoa/WKWebViewPrivate.h:
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r166611 r166612  
     12014-04-01  Andy Estes  <aestes@apple.com>
     2
     3        [Cocoa] Add SPI to determine if a WKWebView is displaying a PDF
     4        https://bugs.webkit.org/show_bug.cgi?id=131063
     5
     6        Reviewed by Tim Horton.
     7
     8        * UIProcess/API/Cocoa/WKWebView.mm:
     9        (-[WKWebView _isDisplayingPDF]):
     10        * UIProcess/API/Cocoa/WKWebViewPrivate.h:
     11
    1122014-04-01  Simon Fraser  <simon.fraser@apple.com>
    213
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm

    r166598 r166612  
    6060
    6161#if PLATFORM(IOS)
     62#import "WKPDFView.h"
    6263#import "WKScrollView.h"
    6364#import "WKWebViewContentProviderRegistry.h"
     
    11791180}
    11801181
     1182- (BOOL)_isDisplayingPDF
     1183{
     1184    return [_customContentView isKindOfClass:[WKPDFView class]];
     1185}
     1186
    11811187#else
    11821188
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewPrivate.h

    r166598 r166612  
    9191@property (readonly) UIColor *_pageExtendedBackgroundColor;
    9292
     93@property (nonatomic, readonly, getter=_isDisplayingPDF) BOOL _displayingPDF;
     94
    9395- (void)_beginInteractiveObscuredInsetsChange;
    9496- (void)_endInteractiveObscuredInsetsChange;
Note: See TracChangeset for help on using the changeset viewer.