Changeset 24395 in webkit


Ignore:
Timestamp:
Jul 17, 2007 7:39:03 PM (17 years ago)
Author:
beidson
Message:

WebCore: 2007-07-17 Brady Eidson <beidson@apple.com>

Reviewed by Steve

Required for <rdar://problem/4516185> - FTP Directory Listings

  • WebCore.vcproj/WebCore.vcproj: Added SharedBufferWin


  • platform/SharedBuffer.cpp: Windows doesn't get the default empty resource anymore
  • platform/win/SharedBufferWin.cpp: Added. (WebCore::SharedBuffer::createWithContentsOfFile):


WebKit/win: 2007-07-17 Brady Eidson <beidson@apple.com>

Reviewed by Steve


<rdar://problem/4516185> - FTP Directory Listings

  • Interfaces/IWebUIDelegate.idl: Add IWebUIDelegate2 method for getting the path to the template


  • WebView.cpp: (WebView::initWithFrame): Set the preference for the template path in WebCore when the first WebView is initialized


Location:
trunk
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r24384 r24395  
     12007-07-17  Brady Eidson  <beidson@apple.com>
     2
     3        Reviewed by Steve
     4
     5        Required for <rdar://problem/4516185> - FTP Directory Listings
     6
     7        * WebCore.vcproj/WebCore.vcproj: Added SharedBufferWin
     8       
     9        * platform/SharedBuffer.cpp: Windows doesn't get the default empty resource anymore
     10        * platform/win/SharedBufferWin.cpp: Added.
     11        (WebCore::SharedBuffer::createWithContentsOfFile):
     12
    1132007-07-17  Brady Eidson  <beidson@apple.com>
    214
  • trunk/WebCore/WebCore.vcproj/WebCore.vcproj

    r24293 r24395  
    35533553                                        >
    35543554                                </File>
    3555                                 <File
     3555                <File
     3556                                        RelativePath="..\platform\win\SharedBufferWin.cpp"
     3557                                        >
     3558                </File>
     3559                <File
    35563560                                        RelativePath="..\platform\win\SharedTimerWin.cpp"
    35573561                                        >
  • trunk/WebCore/platform/SharedBuffer.cpp

    r24289 r24395  
    6969
    7070#if !PLATFORM(MAC)
     71
    7172inline void SharedBuffer::clearPlatformData()
    7273{
     
    9697}
    9798
     99#endif
     100
     101#if !PLATFORM(MAC) && !PLATFORM(WIN)
     102
    98103PassRefPtr<SharedBuffer> SharedBuffer::createWithContentsOfFile(const String& filePath)
    99104{
  • trunk/WebKit/win/ChangeLog

    r24389 r24395  
     12007-07-17  Brady Eidson  <beidson@apple.com>
     2
     3        Reviewed by Steve
     4       
     5        <rdar://problem/4516185> - FTP Directory Listings
     6
     7        * Interfaces/IWebUIDelegate.idl: Add IWebUIDelegate2 method for getting the path to the template
     8       
     9        * WebView.cpp:
     10          (WebView::initWithFrame): Set the preference for the template path in WebCore when the first
     11          WebView is initialized
     12
    1132007-07-17  Ada Chan  <adachan@apple.com>
    214
  • trunk/WebKit/win/Interfaces/IWebUIDelegate.idl

    r24331 r24395  
    727727    HRESULT printFrame([in] IWebView* webView, [in] IWebFrame* frame);
    728728
     729/*!
     730    @method webView:ftpDirectoryTemplatePath
     731    @abstract Returns the path to the FTP directory listing template document
     732    @param webView The WebView sending the delegate method
     733    @param path The path to the template document
     734    @discussion This method is called when an FTP directory listing is viewed in a webView. 
     735    In practice, all WebViews show the same template document data that was loaded for the very
     736    first WebView that displayed a directory listing, so this will only be called once.
     737*/
     738    HRESULT ftpDirectoryTemplatePath([in] IWebView* webView, [out, retval] BSTR* path);
    729739}
  • trunk/WebKit/win/WebView.cpp

    r24378 r24395  
    17701770    m_page->settings()->setUsesPageCache(false);
    17711771
     1772    // Try to set the FTP Directory template path in WebCore when the first WebView is initialized
     1773    static bool setFTPDirectoryTemplatePathOnce = false;
     1774
     1775    if (!setFTPDirectoryTemplatePathOnce && m_uiDelegate) {
     1776        COMPtr<IWebUIDelegate2> uiDelegate2;
     1777        if (SUCCEEDED(m_uiDelegate->QueryInterface(IID_IWebUIDelegate2, (void**)&uiDelegate2))) {
     1778            BString path;       
     1779            if (SUCCEEDED(uiDelegate2->ftpDirectoryTemplatePath(this, &path))) {
     1780                m_page->settings()->setFTPDirectoryTemplatePath(String(path, SysStringLen(path)));
     1781                SysFreeString(path);
     1782                setFTPDirectoryTemplatePathOnce = true;
     1783            }
     1784        }
     1785    }
     1786
    17721787    WebFrame* webFrame = WebFrame::createInstance();
    17731788    webFrame->initWithWebFrameView(0 /*FIXME*/, this, m_page, 0);
Note: See TracChangeset for help on using the changeset viewer.