This checkin enables MouseListener functionality. You can add a
MouseListener to the EventRegistration or BrowserControlCanvas and be notified of events on the browser canvas. You can snoop for onMouseOver information such as links. Next step is to cvs remove unused classes relating to mouse events, for example WCMouseListenerImpl and WCEventListenerWrapper. A webclient/test/automated/src/classes/org/mozilla/webclient/MouseListenerTest.java - exercise mouseListener added to BrowserControlCanvas and to EventRegistration. M webclient/build-tests.xml - hook up new test M webclient/classes_spec/org/mozilla/webclient/BrowserControlCanvas.java - enable adding the MouseListener from here. M webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/EventRegistrationImpl.java - absorb the functionality of WCMouseListenerImpl. Also need to remove WCEventListenerWrapper. - deal with MouseEvents. - refactor BrowserToJavaEventPump.run() to handle mouse listeners M webclient/src_moz/EmbedEventListener.cpp M webclient/src_moz/EmbedEventListener.h - absorb functionality from CBrowserContainer relating to mouse events. M webclient/src_moz/NativeBrowserControl.cpp - set the EventRegistration into the EmbedEventListener instance. M webclient/test/manual/src/classes/org/mozilla/webclient/test/TestBrowser.java - add mouseover url updating to status bar. git-svn-id: svn://10.0.0.236/trunk@164481 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -162,6 +162,7 @@ NativeBrowserControl::Realize(jobject javaBrowserControl,
|
||||
this->QueryInterfaceJava(EVENT_REGISTRATION_INDEX);
|
||||
if (nsnull != eventRegistration) {
|
||||
mProgress->SetEventRegistration(eventRegistration);
|
||||
mEventListener->SetEventRegistration(eventRegistration);
|
||||
}
|
||||
else {
|
||||
JNIEnv *env = (JNIEnv *) JNU_GetEnv(gVm, JNI_VERSION);
|
||||
@@ -252,6 +253,7 @@ NativeBrowserControl::Destroy(void)
|
||||
// object
|
||||
mProgressGuard = nsnull;
|
||||
mProgress = nsnull;
|
||||
fflush(stdout);
|
||||
|
||||
parentHWnd = nsnull;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user