First cut at dirt simple PDF support. This feature
authorrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Aug 2004 00:30:27 +0000 (00:30 +0000)
committerrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Aug 2004 00:30:27 +0000 (00:30 +0000)
commit9b37115961bf646c59c152baf21c91a5af7332b1
treec8db0afb58ac97ef80508eff923e74f1e294b571
parentf00ba21d3dcab77c75f9886d395e13ed56bcf88c
    First cut at dirt simple PDF support.  This feature
        depends on Quartz.framework (parent of PDFKit), which only exists
        on Tiger.  So, we "weak" link against Quartz.

        We do very basic PDF rendering.  Coming up are support for
        "Find..." and linearized PDF (incremental).  Linearized PDF
        support will require API changes in PDFKit.

        No UI is added to Safari, yet.

        Reviewed by John.

        * WebKit.pbproj/project.pbxproj:
        * WebView.subproj/WebDataSource.m:
        (+[WebDataSource _repTypesAllowImageTypeOmission:]):
        * WebView.subproj/WebFrameView.m:
        (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
        * WebView.subproj/WebPDFRepresentation.h: Added.
        * WebView.subproj/WebPDFRepresentation.m: Added.
        (-[WebPDFRepresentation finishedLoadingWithDataSource:]):
        (-[WebPDFRepresentation canProvideDocumentSource]):
        (-[WebPDFRepresentation documentSource]):
        (-[WebPDFRepresentation title]):
        * WebView.subproj/WebPDFView.h: Added.
        * WebView.subproj/WebPDFView.m: Added.
        (-[WebPDFView initWithFrame:]):
        (-[WebPDFView setDataSource:]):
        (-[WebPDFView dataSourceUpdated:]):
        (-[WebPDFView setNeedsLayout:]):
        (-[WebPDFView layout]):
        (-[WebPDFView viewWillMoveToHostWindow:]):
        (-[WebPDFView viewDidMoveToHostWindow]):

        Copied fix from Jaguar carbon/cocoa work.

        Reviewed by Darin (Jaguar version)

        * Carbon.subproj/CarbonWindowAdapter.h:
        * Carbon.subproj/CarbonWindowAdapter.m:
        (-[CarbonWindowAdapter relinquishFocus]):
        * Carbon.subproj/HIWebView.m:
        (Click):
        (OwningWindowChanged):
        (WindowHandler):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7189 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit/Carbon.subproj/CarbonWindowAdapter.h
WebKit/Carbon.subproj/CarbonWindowAdapter.m
WebKit/Carbon.subproj/HIWebView.m
WebKit/ChangeLog
WebKit/WebKit.pbproj/project.pbxproj
WebKit/WebView.subproj/WebDataSource.m
WebKit/WebView.subproj/WebFrameView.m
WebKit/WebView.subproj/WebPDFRepresentation.h [new file with mode: 0644]
WebKit/WebView.subproj/WebPDFRepresentation.m [new file with mode: 0644]
WebKit/WebView.subproj/WebPDFView.h [new file with mode: 0644]
WebKit/WebView.subproj/WebPDFView.m [new file with mode: 0644]