2011-04-01 Jer Noble <jer.noble@apple.com>
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Apr 2011 22:53:02 +0000 (22:53 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Apr 2011 22:53:02 +0000 (22:53 +0000)
commitcad6d9dba6d26204db8e9b66acc8036496994132
tree1d82e15b0ecf77f5c5998dc5bed95874d19c3868
parent104c1fefe3ff7ac8cca0f10688e2bfa99f2105fe
2011-04-01  Jer Noble  <jer.noble@apple.com>

        Reviewed by Darin Adler.

        WebKit2: Link from PDF opens in a new tab instead of in the same tab
        https://bugs.webkit.org/show_bug.cgi?id=57528

        * WebCore.exp.in: Export MouseEvent::create().
2011-04-01  Jer Noble  <jer.noble@apple.com>

        Reviewed by Darin Adler.

        WebKit2: Link from PDF opens in a new tab instead of in the same tab
        https://bugs.webkit.org/show_bug.cgi?id=57528

        Notify the WebProcess that a link has been clicked so that the normal policy
        lookup can occur.

        * Shared/WebEvent.cpp:
        (WebKit::WebEvent::WebEvent): Initialize ivars in the default constructor.
        * Shared/WebEvent.h: Add WebEvent::NoType to Type enum.
        * Shared/WebMouseEvent.cpp:
        (WebKit::WebMouseEvent::WebMouseEvent): Ditto.
        * UIProcess/API/mac/PDFViewController.mm:
        (-[WKPDFView PDFViewWillClickOnLink:withURL:]): Handle the delegate
            function and override the PDFView default behavior.
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::didReceiveEvent): Handle the new WebEvent::NoType enum.
        (WebKit::WebPageProxy::linkClicked): Added.  Send event through to WebPage.
        * UIProcess/WebPageProxy.h:
        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::linkClicked): Added.  Call loadFrameRequest().
        * WebProcess/WebPage/WebPage.h:
        * WebProcess/WebPage/WebPage.messages.in: Added LinkClicked.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@82733 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
Source/WebCore/ChangeLog
Source/WebCore/WebCore.exp.in
Source/WebKit2/ChangeLog
Source/WebKit2/Shared/WebEvent.cpp
Source/WebKit2/Shared/WebEvent.h
Source/WebKit2/Shared/WebMouseEvent.cpp
Source/WebKit2/UIProcess/API/mac/PDFViewController.h
Source/WebKit2/UIProcess/API/mac/PDFViewController.mm
Source/WebKit2/UIProcess/WebPageProxy.cpp
Source/WebKit2/UIProcess/WebPageProxy.h
Source/WebKit2/WebProcess/WebPage/WebPage.cpp
Source/WebKit2/WebProcess/WebPage/WebPage.h
Source/WebKit2/WebProcess/WebPage/WebPage.messages.in