This checkin is the next step for getting DocumentLoadListener to work.
I now have the new architecture for pumping events from mozilla back into java. I've added a sequence diagram to <http://www.mozilla.org/projects/blackwood/webclient/design/20040306-webclient-2_0.zargo> and updated the private API class diagram. The next step will be to have the EmbedProgress::On* methods call back to EventRegistration.nativeEventOccured. M src_moz/EmbedProgress.cpp M src_moz/EmbedProgress.h - make this class maintain a reference to the java EventRegistration instance for this BrowserControl M src_moz/NativeBrowserControl.cpp M src_moz/NativeBrowserControl.h - make this class maintain a reference to the java BrowserControl instance. M src_moz/WindowControlImpl.cpp - push the java BrowserControl to the NativeBrowserControl on Realize(). M src_moz/WrapperFactoryImpl.cpp M src_moz/ns_globals.h - expose gImplementedInterfaces in ns_globals.h git-svn-id: svn://10.0.0.236/trunk@157781 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -50,9 +50,23 @@ nsresult
|
||||
EmbedProgress::Init(NativeBrowserControl *aOwner)
|
||||
{
|
||||
mOwner = aOwner;
|
||||
|
||||
if (-1 == DocumentLoader_maskValues[0]) {
|
||||
util_InitializeEventMaskValuesFromClass("org/mozilla/webclient/DocumentLoadEvent",
|
||||
DocumentLoader_maskNames,
|
||||
DocumentLoader_maskValues);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
EmbedProgress::SetEventRegistration(jobject yourEventRegistration)
|
||||
{
|
||||
mEventRegistration = yourEventRegistration;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
EmbedProgress::OnStateChange(nsIWebProgress *aWebProgress,
|
||||
nsIRequest *aRequest,
|
||||
|
||||
Reference in New Issue
Block a user