You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
boisso cc620cfe72 Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
..
Install Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
JSBridge Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
bmp_menu Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
chrome Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
components Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
crash Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
default Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
external Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
fullscreen Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
gestures Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
history Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
ie_favorites Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
kmeleon_winamp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
layers Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
loader Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
macros Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
macros2 Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
ns_bookmarks Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
op_hotlist Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
privacy Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
rebar_menu Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
res Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
sessions Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
toolbars Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
utils Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
weasel Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
About.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
About.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
AccelParser.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
AccelParser.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserFrameGlue.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserFrm.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserFrm.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserFrmTab.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserFrmTab.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserGlue.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserImpl.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserImpl.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserImplCtxMenuLstnr.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserImplWebPrgrsLstnr.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserView.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserView.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserViewFind.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserViewPanning.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserViewUtils.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserWindow.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
BrowserWindow.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
CmdLine.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
CmdLine.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Components.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
CookiePromptService.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
CookiePromptService.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Cookies.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
CookiesViewerDlg.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
CookiesViewerDlg.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
DialogEx.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
DialogUtils.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
DialogUtils.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Dialogs.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Dialogs.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
FavIconList.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
FavIconList.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
FontPackageHandler.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
FontPackageHandler.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
GenKeyPairDialogs.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
GenKeyPairDialogs.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
GenericDlg.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
GenericDlg.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
HiddenWnd.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
HiddenWnd.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
IBrowserFrameGlue.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
KMeleon.dsp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
KMeleon.dsw Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
KMeleon.sln Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
KMeleon.vcproj Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
KMeleonConst.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
KmMenu.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
KmMenu.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
LangParser.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
LangParser.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
LocalesUtils.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Log.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
MenuParser.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
MenuParser.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
MfcEmbed.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
MfcEmbed.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
MfcEmbed.rc Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
MostRecentUrls.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
MostRecentUrls.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
MozUtils.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
MozUtils.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
NSSDialogs.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
NSSDialogs.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Parser.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Parser.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
PasswordViewerDlg.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
PasswordViewerDlg.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Permissions.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Permissions.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Plugins.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Plugins.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Preferences.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Preferences.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
PreferencesDlg.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
PrintProgressDialog.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
PrintProgressDialog.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
PrintSetupDialog.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
PrintSetupDialog.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
ProfileMgr.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
ProfileMgr.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
ProfilesDlg.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
ProfilesDlg.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
PromptService.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
PromptService.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
README.TXT Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
ReBarEx.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
ReBarEx.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
SaveAsHandler.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
SaveAsHandler.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
SideBar.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
SideBar.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
StdAfx.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
StdAfx.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
TabReBar.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
TabReBar.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
ToolBarEx.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
ToolBarEx.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Tooltips.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Tooltips.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
TooltipsProvider.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
TooltipsProvider.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
UnknownContentTypeHandler.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
UnknownContentTypeHandler.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Utils.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
Utils.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
defineMap.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
findskin.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
kmeleon_plugin.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
nsGenericFactory.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
nsPrintSettingsImpl.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
nsPrintSettingsImpl.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
qsort.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
resource.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
strconv.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
stristr.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
urlbar.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
urlbar.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
utf.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
version.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
winEmbedFileLocProvider.cpp Bug 966: kmeleon.display.maximized ignored at startup 15 years ago
winEmbedFileLocProvider.h Bug 966: kmeleon.display.maximized ignored at startup 15 years ago

README.TXT

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Chak Nanga <chak@netscape.com>
*/

This sample shows how to embed Mozilla from within
an MFC Windows application

Mainly demonstrates the use of the following interfaces:

nsIWebBrowserChrome
nsIWebBrowserSiteWindow
nsIWebProgressListener
nsIContextMenuListener
nsIPrompt

General Overview:
-----------------

1. The MfcEmbedApp creates BrowserFrames

2. BrowserFrame creates the toolbar, statusbar, URLbar
BrowserView etc.
BrowserFrames implement the IBrowserFrameGlue interface
using which new BrowserFrames can be created, statusbar
updated etc.

3. BrowserView creates the embeddable browser instance and
manages user interaction such as URL navigation etc.
BrowserView connects the BrowserImpl with the BrowserFrame
via the IBrowserFrameGlue interface

4. BrowserImpl implements the set of required/optional Gecko
embedding interfaces


Start by first looking at MfcEmbed.cpp

Files:

StdAfx.h
- Includes the required Mozilla header files

MfcEmbed.cpp
- CWinApp derived class
- Creates the browser's main frame window etc
using the CreateNewBrowserFrame() and loads
the HomePage
- Makes the required NS_InitEmbedding() and the
NS_TermEmbedding() calls in the app's InitInstance()
and ExitInstance() functions
- Keeps track of the list of new BrowserFrames created
which it cleans up properly in ExitInstance()

BrowserFrm.cpp
- This is the browser's Frame window i.e. the one with the
"chrome" - with the toolbar, urlbar etc.
- Creates the toolbar, URLbar, statusbar, progressbar
also the browser's view window.

BrowserFrameGlue.cpp
- Implements the IBrowserFrameGlue interface. This interface
contains platform specific implementations of functions to
update the statusbar, creating new browser frames etc. Embedded
browser's callbacks use this interface when needed

BrowserView.cpp
- Creates the embedded browser object and handles most aspects
of the embedded browser interactions - like URL navigation,
clipboard interactions etc
- Also has code to keep the menu/toolbar/statusbar UI items up
to date
- It's the view which conntects the BrowserFrame to the BrowserImpl
(see below) by passing it the pointer to IBrowserFrameGlue

BrowserImpl*.cpp
- Implements the required and/or optional embedded browser
interfaces
(BrowserImpl.cpp implements the set of interfaces which
are required by Gecko of all embedding apps. The other
interfaces implemented in the BrowserImpl*.cpp files are
optional)

- Calls on the statusbar/progressbar update functions exposed
via the IBrowserFrameGlue in response to the nsIProgressListener
interface callbacks

Dialogs.cpp
- Contains dialog box code for displaying Prompts, getting
passwords, getting username/passwords etc

winEmbedFileLocProvider.cpp, ProfilesDlg.cpp, ProfileMgr.cpp
- Profile management related code (by Conrad Carlen)

MfcEmbed.htm
- This is a simple test harness for excercising some of the
implemented interfaces . For ex, the nsIWebBrowserChrome.
- Open the file in mfcemed by typing the following in it's
location bar. For ex:

file:///c:/tmp/mfcembed.htm
- Read/Click on the links on that page more info
- This test page is just a start and will add more test
case to it over time


makefile.win
- We define "_AFXDLL" and for the compiler and specify
"-SUBSYSTEM:windows" for the linker using LCFLAGS and
LLFLAGS, respectively

mfcembed.dsp and mfcembed.dsw
- These VisualStudio workspace/project files can be used
to open/build this sample inside of the VC++ IDE