<rdar://problem/
5636865>
WebKit needs API to allow registering a protocol as local (RSS feeds appear unstyled)
* Interfaces/IWebView.idl:
* WebView.cpp:
(WebView::registerURLSchemeAsLocal):
* WebView.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28633
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-12-10 Anders Carlsson <andersca@apple.com>
+
+ Reviewed by Darin.
+
+ <rdar://problem/5636865>
+ WebKit needs API to allow registering a protocol as local (RSS feeds appear unstyled)
+
+ * Interfaces/IWebView.idl:
+ * WebView.cpp:
+ (WebView::registerURLSchemeAsLocal):
+ * WebView.h:
+
2007-12-11 Ada Chan <adachan@apple.com>
Updated the database SPI to take in IWebFrame.
- (NSImage *)mainFrameIcon;
*/
HRESULT mainFrameIcon([out, retval] OLE_HANDLE* hBitmap);
+
+ /*!
+ @method registerURLSchemeAsLocal
+ @discussion Adds the scheme to the list of schemes to be treated as local.
+ @param scheme The scheme to register.
+ + (void)registerURLSchemeAsLocal:(NSString *)scheme;
+ */
+ HRESULT registerURLSchemeAsLocal([in] BSTR scheme);
}
/*
return E_NOTIMPL;
}
+HRESULT STDMETHODCALLTYPE WebView::registerURLSchemeAsLocal(
+ /* [in] */ BSTR scheme)
+{
+ if (!scheme)
+ return E_POINTER;
+
+ FrameLoader::registerURLSchemeAsLocal(String(scheme, ::SysStringLen(scheme)));
+
+ return S_OK;
+}
+
// IWebIBActions ---------------------------------------------------------------
HRESULT STDMETHODCALLTYPE WebView::takeStringURLFrom(
virtual HRESULT STDMETHODCALLTYPE mainFrameIcon(
/* [retval][out] */ OLE_HANDLE *hBitmap);
+ virtual HRESULT STDMETHODCALLTYPE registerURLSchemeAsLocal(
+ /* [in] */ BSTR scheme);
+
// IWebIBActions
virtual HRESULT STDMETHODCALLTYPE takeStringURLFrom(