WebCore:
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Mar 2008 21:00:48 +0000 (21:00 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Mar 2008 21:00:48 +0000 (21:00 +0000)
commit1ebc269d026280fcec6bf675982f5568705f7b2d
treeaa44cecd6eca5d509d508231d9b7acb3d2b031fe
parent5f131178b51e5c90caa533125fc5096886a41a87
WebCore:

        Reviewed by Adam.

        - eliminated WebCoreFrameBridge runOpenPanel

        * page/ChromeClient.h: Added runOpenPanel function.
        * page/mac/ChromeMac.mm:
        (WebCore::ChromeClient::runOpenPanel): Added.
        * platform/FileChooser.cpp:
        (WebCore::FileChooser::FileChooser): Moved this here. It's no longer platform-specific.
        Also start the refcount at 1.
        (WebCore::FileChooser::create): Added adoptRef since the refcount no starts at one.
        (WebCore::FileChooser::~FileChooser): Moved here. No longer platform-specific.
        * platform/FileChooser.h: Removed m_controller, which was Macintosh-specific.
        * platform/gtk/FileChooserGtk.cpp: Removed FileChooser constructor and destructor,
        since they are no longer platform-specific.
        * platform/qt/FileChooserQt.cpp: Ditto.
        * platform/win/FileChooserWin.cpp: Ditto.
        * platform/wx/TemporaryLinkStubs.cpp: Ditto.
        * platform/mac/FileChooserMac.mm:
        (WebCore::FileChooser::openFileChooser): Call the chrome client instead of the
        bridge to run the open panel. Allows us to get rid of the WebCoreOpenPanelController
        class and m_controller data member and move the cosntrutor/destructor to platform-
        independent code.

WebKit/mac:

        Reviewed by Adam.

        - eliminated WebCoreFrameBridge runOpenPanel

        * WebCoreSupport/WebChromeClient.h: Added runOpenPanel.
        * WebCoreSupport/WebChromeClient.mm:
        (WebChromeClient::runOpenPanel): Added.
        (-[WebOpenPanelResultListener initWithChooser:]): Added. Used to wrap the
        FileChooser so it can get a result from the UI delegate.
        (-[WebOpenPanelResultListener dealloc]): Added.
        (-[WebOpenPanelResultListener finalize]): Added.
        (-[WebOpenPanelResultListener cancel]): Added.
        (-[WebOpenPanelResultListener chooseFilename:]): Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@30875 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
WebCore/ChangeLog
WebCore/page/ChromeClient.h
WebCore/page/mac/ChromeMac.mm
WebCore/platform/FileChooser.cpp
WebCore/platform/FileChooser.h
WebCore/platform/gtk/FileChooserGtk.cpp
WebCore/platform/mac/FileChooserMac.mm
WebCore/platform/qt/FileChooserQt.cpp
WebCore/platform/win/FileChooserWin.cpp
WebCore/platform/wx/TemporaryLinkStubs.cpp
WebKit/mac/ChangeLog
WebKit/mac/WebCoreSupport/WebChromeClient.h
WebKit/mac/WebCoreSupport/WebChromeClient.mm