mac:
authortristan <tristan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Nov 2007 22:54:56 +0000 (22:54 +0000)
committertristan <tristan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Nov 2007 22:54:56 +0000 (22:54 +0000)
commitf18fa33ea1922c84ea61169f736626357229919c
tree7c0713d7931fef8b68427914a02d5f5ffcb7bd17
parent7c2336e7e0a45b02b731b751384e56d691df6e63
mac:

        Reviewed by Timothy Hatcher.

        This patch is for the WebKit side of <rdar://problem/5591115>.
        We need a way to tell context menu navigations, such as "Open in New Window"
        to override any sort of browser preference for tab based navigation.

        * WebCoreSupport/WebChromeClient.mm:
        (WebChromeClient::createWindow):
        Pass up the new preferredType parameter as a string.

WebCore:

        Reviewed by Timothy Hatcher.

        This patch is for the WebKit side of <rdar://problem/5591115>.
        We need a way to tell context menu navigations, such as "Open in New Window"
        to override any sort of browser preference for tab based navigation.

        * bridge/WindowFeatures.h:
        (WebCore::WindowFeatures::WindowFeatures):
        Added a new struct member var, preferredType
        and an accompanying enum type PreferredType
        to send a window type recommendation up to the Chrome.

        * page/ContextMenuController.cpp:
        (WebCore::openNewWindow):
        Set the window features to recommend a new Window for
        "Open in New Window" context menu action.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27654 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/bridge/WindowFeatures.h
WebCore/page/ContextMenuController.cpp
WebKit/mac/ChangeLog
WebKit/mac/WebCoreSupport/WebChromeClient.mm