зеркало из https://github.com/mozilla/pjs.git
Removed the viewSource member and the GetStringForCommand as it is no longer used.
This commit is contained in:
Родитель
26ccc8a82f
Коммит
33b3f6e837
|
@ -107,10 +107,9 @@ interface nsIURILoader : nsISupports
|
|||
|
||||
/* these are nsURILoadCommand */
|
||||
const long viewNormal = 0;
|
||||
const long viewSource = 1;
|
||||
const long viewUserClick = 2;
|
||||
const long viewNewWindow = 3;
|
||||
const long viewNormalBackground = 4;
|
||||
const long viewUserClick = 1;
|
||||
const long viewNewWindow = 2;
|
||||
const long viewNormalBackground = 3;
|
||||
|
||||
/* mscott -> I'm going to move this out into a separate private interface
|
||||
*/
|
||||
|
@ -124,9 +123,5 @@ interface nsIURILoader : nsISupports
|
|||
out string aDesiredContentType,
|
||||
out nsIURIContentListener aTargetListener,
|
||||
out boolean abortDispatch);
|
||||
/* this command should become obsolete once we get rid of the old layout "verb" command
|
||||
string and replace it with the enumerated type nsURILoaderCommand
|
||||
*/
|
||||
void getStringForCommand (in nsURILoadCommand aCommand, out string aStringVersion);
|
||||
};
|
||||
|
||||
|
|
|
@ -482,16 +482,6 @@ NS_INTERFACE_MAP_BEGIN(nsURILoader)
|
|||
NS_INTERFACE_MAP_ENTRY(nsIURILoader)
|
||||
NS_INTERFACE_MAP_END
|
||||
|
||||
NS_IMETHODIMP nsURILoader::GetStringForCommand(nsURILoadCommand aCommand, char **aStringVersion)
|
||||
{
|
||||
if (aCommand == nsIURILoader::viewSource)
|
||||
*aStringVersion = nsCRT::strdup("view-source");
|
||||
else // for now, default everything else to view normal
|
||||
*aStringVersion = nsCRT::strdup("view");
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsURILoader::RegisterContentListener(nsIURIContentListener * aContentListener)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче