Changeset 24395 in webkit
- Timestamp:
- Jul 17, 2007 7:39:03 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r24384 r24395 1 2007-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 1 13 2007-07-17 Brady Eidson <beidson@apple.com> 2 14 -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r24293 r24395 3553 3553 > 3554 3554 </File> 3555 <File 3555 <File 3556 RelativePath="..\platform\win\SharedBufferWin.cpp" 3557 > 3558 </File> 3559 <File 3556 3560 RelativePath="..\platform\win\SharedTimerWin.cpp" 3557 3561 > -
trunk/WebCore/platform/SharedBuffer.cpp
r24289 r24395 69 69 70 70 #if !PLATFORM(MAC) 71 71 72 inline void SharedBuffer::clearPlatformData() 72 73 { … … 96 97 } 97 98 99 #endif 100 101 #if !PLATFORM(MAC) && !PLATFORM(WIN) 102 98 103 PassRefPtr<SharedBuffer> SharedBuffer::createWithContentsOfFile(const String& filePath) 99 104 { -
trunk/WebKit/win/ChangeLog
r24389 r24395 1 2007-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 1 13 2007-07-17 Ada Chan <adachan@apple.com> 2 14 -
trunk/WebKit/win/Interfaces/IWebUIDelegate.idl
r24331 r24395 727 727 HRESULT printFrame([in] IWebView* webView, [in] IWebFrame* frame); 728 728 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); 729 739 } -
trunk/WebKit/win/WebView.cpp
r24378 r24395 1770 1770 m_page->settings()->setUsesPageCache(false); 1771 1771 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 1772 1787 WebFrame* webFrame = WebFrame::createInstance(); 1773 1788 webFrame->initWithWebFrameView(0 /*FIXME*/, this, m_page, 0);
Note: See TracChangeset
for help on using the changeset viewer.