зеркало из https://github.com/mozilla/gecko-dev.git
change from strings to URIs r=pavlov
This commit is contained in:
Родитель
a25a8c01f1
Коммит
c8bad066a0
|
@ -27,8 +27,8 @@
|
|||
interface nsIChromeRegistry : nsISupports
|
||||
{
|
||||
void convertChromeURL(in nsIURI aChromeURL);
|
||||
long getOverlayCount(in wstring aChromeURL);
|
||||
wstring getOverlayAt(in wstring aChromeURL, in long aIndex);
|
||||
long getOverlayCount(in nsIURI aChromeURL);
|
||||
nsIURI getOverlayAt(in nsIURI aChromeURL, in long aIndex);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -352,13 +352,22 @@ nsChromeRegistry::ConvertChromeURL(nsIURI* aChromeURL)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsChromeRegistry::GetOverlayCount(const PRUnichar *aChromeURL, PRInt32 *aResult)
|
||||
NS_IMETHODIMP nsChromeRegistry::GetOverlayCount(nsIURI *aChromeURL, PRInt32 *aResult)
|
||||
{
|
||||
if (!mDataSourceTable)
|
||||
{
|
||||
*aResult = 0;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsChromeRegistry::GetOverlayAt(const PRUnichar *aChromeURL, PRInt32 aIndex, PRUnichar **aResult)
|
||||
NS_IMETHODIMP nsChromeRegistry::GetOverlayAt(nsIURI *aChromeURL, PRInt32 aIndex, nsIURI **aResult)
|
||||
{
|
||||
if (!mDataSourceTable)
|
||||
return NS_OK;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,24 +25,24 @@ class nsIChromeRegistry : public nsISupports {
|
|||
/* void convertChromeURL (in nsIURI aChromeURL); */
|
||||
NS_IMETHOD ConvertChromeURL(nsIURI *aChromeURL) = 0;
|
||||
|
||||
/* long getOverlayCount (in wstring aChromeURL); */
|
||||
NS_IMETHOD GetOverlayCount(const PRUnichar *aChromeURL, PRInt32 *_retval) = 0;
|
||||
/* long getOverlayCount (in nsIURI aChromeURL); */
|
||||
NS_IMETHOD GetOverlayCount(nsIURI *aChromeURL, PRInt32 *_retval) = 0;
|
||||
|
||||
/* wstring getOverlayAt (in wstring aChromeURL, in long aIndex); */
|
||||
NS_IMETHOD GetOverlayAt(const PRUnichar *aChromeURL, PRInt32 aIndex, PRUnichar **_retval) = 0;
|
||||
/* nsIURI getOverlayAt (in nsIURI aChromeURL, in long aIndex); */
|
||||
NS_IMETHOD GetOverlayAt(nsIURI *aChromeURL, PRInt32 aIndex, nsIURI **_retval) = 0;
|
||||
};
|
||||
|
||||
/* Use this macro when declaring classes that implement this interface. */
|
||||
#define NS_DECL_NSICHROMEREGISTRY \
|
||||
NS_IMETHOD ConvertChromeURL(nsIURI *aChromeURL); \
|
||||
NS_IMETHOD GetOverlayCount(const PRUnichar *aChromeURL, PRInt32 *_retval); \
|
||||
NS_IMETHOD GetOverlayAt(const PRUnichar *aChromeURL, PRInt32 aIndex, PRUnichar **_retval);
|
||||
NS_IMETHOD GetOverlayCount(nsIURI *aChromeURL, PRInt32 *_retval); \
|
||||
NS_IMETHOD GetOverlayAt(nsIURI *aChromeURL, PRInt32 aIndex, nsIURI **_retval);
|
||||
|
||||
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
|
||||
#define NS_FORWARD_NSICHROMEREGISTRY(_to) \
|
||||
NS_IMETHOD ConvertChromeURL(nsIURI *aChromeURL) { return _to ## ConvertChromeURL(aChromeURL); } \
|
||||
NS_IMETHOD GetOverlayCount(const PRUnichar *aChromeURL, PRInt32 *_retval) { return _to ## GetOverlayCount(aChromeURL, _retval); } \
|
||||
NS_IMETHOD GetOverlayAt(const PRUnichar *aChromeURL, PRInt32 aIndex, PRUnichar **_retval) { return _to ## GetOverlayAt(aChromeURL, aIndex, _retval); }
|
||||
NS_IMETHOD GetOverlayCount(nsIURI *aChromeURL, PRInt32 *_retval) { return _to ## GetOverlayCount(aChromeURL, _retval); } \
|
||||
NS_IMETHOD GetOverlayAt(nsIURI *aChromeURL, PRInt32 aIndex, nsIURI **_retval) { return _to ## GetOverlayAt(aChromeURL, aIndex, _retval); }
|
||||
|
||||
// for component registration
|
||||
// {D8C7D8A2-E84C-11d2-BF87-00105A1B0627}
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
interface nsIChromeRegistry : nsISupports
|
||||
{
|
||||
void convertChromeURL(in nsIURI aChromeURL);
|
||||
long getOverlayCount(in wstring aChromeURL);
|
||||
wstring getOverlayAt(in wstring aChromeURL, in long aIndex);
|
||||
long getOverlayCount(in nsIURI aChromeURL);
|
||||
nsIURI getOverlayAt(in nsIURI aChromeURL, in long aIndex);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -352,13 +352,22 @@ nsChromeRegistry::ConvertChromeURL(nsIURI* aChromeURL)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsChromeRegistry::GetOverlayCount(const PRUnichar *aChromeURL, PRInt32 *aResult)
|
||||
NS_IMETHODIMP nsChromeRegistry::GetOverlayCount(nsIURI *aChromeURL, PRInt32 *aResult)
|
||||
{
|
||||
if (!mDataSourceTable)
|
||||
{
|
||||
*aResult = 0;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsChromeRegistry::GetOverlayAt(const PRUnichar *aChromeURL, PRInt32 aIndex, PRUnichar **aResult)
|
||||
NS_IMETHODIMP nsChromeRegistry::GetOverlayAt(nsIURI *aChromeURL, PRInt32 aIndex, nsIURI **aResult)
|
||||
{
|
||||
if (!mDataSourceTable)
|
||||
return NS_OK;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче