*** empty log message ***

kmeleon10_branch
doozan 21 years ago
parent f3027e6218
commit 15de308ead
  1. 146
      k-meleon/BrowserImplContentLstnr.cpp
  2. 22
      k-meleon/KMeleon.dsp

@ -1,146 +0,0 @@
/*
* Copyright (C) 2001 Jeff Doozan
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// The current ContentListener implementation only calls OnStartURIOpen and IsPreferred
#include "stdafx.h"
#include "BrowserImpl.h"
#include "IBrowserFrameGlue.h"
NS_IMETHODIMP CBrowserImpl::OnStartURIOpen(nsIURI* aURI, PRBool* aAbortOpen)
{
nsresult rv;
nsXPIDLCString specString;
rv = aURI->GetSpec(getter_Copies(specString));
if (NS_FAILED(rv))
return rv;
*aAbortOpen = PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP
CBrowserImpl::GetProtocolHandler(nsIURI * aURI, nsIProtocolHandler **aProtocolHandler)
{
/*
NS_ENSURE_ARG_POINTER(aProtocolHandler);
*aProtocolHandler = nsnull;
return NS_OK;
*/
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
CBrowserImpl::DoContent(const char *aContentType, nsURILoadCommand aCommand,
nsIRequest *request, nsIStreamListener **aContentHandler, PRBool *aAbortProcess)
{
/*
NS_ENSURE_ARG_POINTER(aContentHandler);
NS_ENSURE_ARG_POINTER(aAbortProcess);
*aContentHandler = nsnull;
*aAbortProcess = PR_FALSE;
return NS_OK;
*/
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
CBrowserImpl::IsPreferred(const char * aContentType,
nsURILoadCommand aCommand,
char ** aDesiredContentType,
PRBool * aCanHandleContent)
{
NS_ENSURE_ARG_POINTER(aDesiredContentType);
NS_ENSURE_ARG_POINTER(aCanHandleContent);
*aDesiredContentType = nsnull;
// nsCOMPtr<nsIURI> currentURI;
// rv = mWebBrowser->GetCurrentURI(getter_AddRefs(currentURI));
// claim that we can handle everything
*aCanHandleContent = PR_TRUE;
return NS_OK;
}
NS_IMETHODIMP
CBrowserImpl::CanHandleContent(const char * aContentType,
nsURILoadCommand aCommand,
char ** aDesiredContentType,
PRBool * aCanHandleContent)
{
NS_ENSURE_ARG_POINTER(aDesiredContentType);
NS_ENSURE_ARG_POINTER(aCanHandleContent);
*aDesiredContentType = nsnull;
*aCanHandleContent = PR_FALSE;
return NS_OK;
// return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
CBrowserImpl::GetParentContentListener(nsIURIContentListener** aParentContentListener)
{
/*
NS_ENSURE_ARG_POINTER(aParentContentListener);
*aParentContentListener = nsnull;
return NS_OK;
*/
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
CBrowserImpl::SetParentContentListener(nsIURIContentListener* aParentContentListener)
{
/*
return NS_OK;
*/
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
CBrowserImpl::GetLoadCookie(nsISupports ** aLoadCookie)
{
/*
NS_ENSURE_ARG_POINTER(aLoadCookie);
*aLoadCookie = nsnull;
return NS_OK;
*/
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
CBrowserImpl::SetLoadCookie(nsISupports * aLoadCookie)
{
/*
return NS_OK;
*/
return NS_ERROR_NOT_IMPLEMENTED;
}

@ -43,7 +43,7 @@ RSC=rc.exe
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\mozilla\mozilla\nsprpub\pr\include" /I "..\mozilla\mozilla\nsprpub\_o.obj\include" /I "..\mozilla\mozilla\include" /I "..\mozilla\mozilla\xpcom\components" /I "..\mozilla\mozilla\dist\include" /I "..\mozilla\mozilla\dist\WIN32_O.OBJ\include" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "HW_THREADS" /D "XP_PC" /D "XP_WIN" /D "XP_WIN32" /D WINVER=0x400 /D _WIN32_IE=0x0500 /D "_AFXDLL" /Fr /Yu"stdafx.h" /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /I "\projects\mozilla\mozilla\dist\include" /I "\projects\mozilla\mozilla\dist\WIN32_O.OBJ\include" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "HW_THREADS" /D "XP_PC" /D "XP_WIN" /D "XP_WIN32" /D WINVER=0x400 /D _WIN32_IE=0x0500 /D "_AFXDLL" /Fr /Yu"stdafx.h" /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
@ -53,7 +53,11 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /subsystem:windows /machine:I386
<<<<<<< KMeleon.dsp
# ADD LINK32 xpcom.lib baseembed_s.lib plc4.lib /nologo /subsystem:windows /machine:I386 /out:"..\mozilla\mozilla\dist\WIN32_o.OBJ\Embed\k-meleon.exe" /libpath:"\projects\mozilla\mozilla\dist\WIN32_o.OBJ\lib"
=======
# ADD LINK32 xpcom.lib baseembed_s.lib plc4.lib nspr4.lib /nologo /subsystem:windows /machine:I386 /out:"..\mozilla\mozilla\dist\WIN32_o.OBJ\Embed\k-meleon.exe" /libpath:"c:\projects\mozilla\mozilla\dist\win32_o.obj\lib" /libpath:"..\mozilla\mozilla\dist\WIN32_o.OBJ\lib"
>>>>>>> 1.27
# SUBTRACT LINK32 /pdb:none
# Begin Special Build Tool
SOURCE="$(InputPath)"
@ -85,7 +89,11 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
<<<<<<< KMeleon.dsp
# ADD LINK32 xpcom.lib baseembed_s.lib /nologo /subsystem:windows /map /debug /machine:I386 /nodefaultlib:"MSVCRT" /out:"..\mozilla\mozilla\dist\WIN32_o.OBJ\Embed\k-meleon.exe" /pdbtype:sept /libpath:"..\mozilla\mozilla\dist\WIN32_o.OBJ\lib"
=======
# ADD LINK32 xpcom.lib baseembed_s.lib nspr4.lib /nologo /subsystem:windows /map /debug /machine:I386 /out:"..\mozilla\mozilla\dist\WIN32_o.OBJ\Embed\k-meleon.exe" /pdbtype:sept /libpath:"..\mozilla\mozilla\dist\WIN32_o.OBJ\lib"
>>>>>>> 1.27
# SUBTRACT LINK32 /profile /pdb:none /nodefaultlib
# Begin Special Build Tool
SOURCE="$(InputPath)"
@ -133,10 +141,6 @@ SOURCE=.\BrowserImpl.cpp
# End Source File
# Begin Source File
SOURCE=.\BrowserImplContentLstnr.cpp
# End Source File
# Begin Source File
SOURCE=.\BrowserImplCtxMenuLstnr.cpp
# End Source File
# Begin Source File
@ -257,6 +261,10 @@ SOURCE=.\Dialogs.h
# End Source File
# Begin Source File
SOURCE=.\HiddenWnd.h
# End Source File
# Begin Source File
SOURCE=.\IBrowserFrameGlue.h
# End Source File
# Begin Source File
@ -321,6 +329,10 @@ SOURCE=.\ToolBarWrapper.h
# End Source File
# Begin Source File
SOURCE=.\UnknownContentTypeHandler.h
# End Source File
# Begin Source File
SOURCE=.\Utils.h
# End Source File
# Begin Source File

Loading…
Cancel
Save