Changeset 47060 in webkit
- Timestamp:
- Aug 11, 2009 2:04:00 PM (15 years ago)
- Location:
- trunk/WebKit/win
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/win/ChangeLog
r47058 r47060 1 2009-08-11 Brian Weinstein <bweinstein@apple.com> 2 3 Reviewed by Steve Falkenburg. 4 5 Refactored MIMETypeforExtension to be a member of IWebViewPrivate 6 instead of IWebView. 7 8 * Interfaces/IWebView.idl: 9 * Interfaces/IWebViewPrivate.idl: 10 * WebView.cpp: 11 (WebView::MIMETypeForExtension): 12 * WebView.h: 13 1 14 2009-08-11 Drew Wilson <atwilson@google.com> 2 15 -
trunk/WebKit/win/Interfaces/IWebView.idl
r47044 r47060 736 736 */ 737 737 HRESULT close(); 738 739 /*!740 @method MIMETypeForExtension:741 @abstract Returns the mime type for a certian file extension.742 @param path The extension of the file to check.743 @result The mime type of the specified extension.744 + (BSTR)MIMETypeForPath:(NSString *)path;745 */746 HRESULT MIMETypeForExtension([in] BSTR extension, [out, retval] BSTR* mimeType);747 738 } 748 739 -
trunk/WebKit/win/Interfaces/IWebViewPrivate.idl
r46649 r47060 162 162 163 163 HRESULT setCanStartPlugins([in] BOOL canStartPlugins); 164 165 /*! 166 @method MIMETypeForExtension: 167 @abstract Returns the mime type for a certian file extension. 168 @param path The extension of the file to check. 169 @result The mime type of the specified extension. 170 + (BSTR)MIMETypeForPath:(NSString *)path; 171 */ 172 HRESULT MIMETypeForExtension([in] BSTR extension, [out, retval] BSTR* mimeType); 164 173 } -
trunk/WebKit/win/WebView.cpp
r47044 r47060 2200 2200 // IWebView -------------------------------------------------------------------- 2201 2201 2202 HRESULT STDMETHODCALLTYPE WebView::MIMETypeForExtension(2203 /* [in] */ BSTR extension,2204 /* [retval][out] */ BSTR* mimeType)2205 {2206 if (!mimeType)2207 return E_POINTER;2208 2209 String extensionStr(extension, SysStringLen(extension));2210 2211 *mimeType = BString(MIMETypeRegistry::getMIMETypeForExtension(extensionStr)).release();2212 2213 return S_OK;2214 }2215 2216 2202 HRESULT STDMETHODCALLTYPE WebView::canShowMIMEType( 2217 2203 /* [in] */ BSTR mimeType, … … 4406 4392 4407 4393 // IWebViewPrivate ------------------------------------------------------------ 4394 4395 HRESULT STDMETHODCALLTYPE WebView::MIMETypeForExtension( 4396 /* [in] */ BSTR extension, 4397 /* [retval][out] */ BSTR* mimeType) 4398 { 4399 if (!mimeType) 4400 return E_POINTER; 4401 4402 String extensionStr(extension, SysStringLen(extension)); 4403 4404 *mimeType = BString(MIMETypeRegistry::getMIMETypeForExtension(extensionStr)).release(); 4405 4406 return S_OK; 4407 } 4408 4408 4409 4409 HRESULT STDMETHODCALLTYPE WebView::setCustomDropTarget( -
trunk/WebKit/win/WebView.h
r47044 r47060 74 74 // IWebView 75 75 76 virtual HRESULT STDMETHODCALLTYPE MIMETypeForExtension(77 /* [in] */ BSTR extension,78 /* [retval][out] */ BSTR *mimeType);79 80 76 virtual HRESULT STDMETHODCALLTYPE canShowMIMEType( 81 77 /* [in] */ BSTR mimeType, … … 573 569 574 570 // IWebViewPrivate 571 572 virtual HRESULT STDMETHODCALLTYPE MIMETypeForExtension( 573 /* [in] */ BSTR extension, 574 /* [retval][out] */ BSTR *mimeType); 575 575 576 virtual HRESULT STDMETHODCALLTYPE setCustomDropTarget( 576 577 /* [in] */ IDropTarget* dt);
Note: See TracChangeset
for help on using the changeset viewer.