Issue: 369376
Use the nsIClipboardDragDropHooks mechanism to manually copy over data from the nsITransferable to java, so that java can manualy fabricate a Transferable instance and put it on the clipboard. M src_moz/CurrentPageImpl.cpp - Pass the java instance to EmbedWindow::CopySelection(). M src_moz/EmbedWindow.cpp M src_moz/EmbedWindow.h - Modify CopySelection to take the java object instance - Make this implement nsIClipboardDragDropHooks. Use the nsICommandManager to get informed of the copy event. - Implement ::OnCopyOrDrag() to copy the data from the nsITransferable over to Java. M src_moz/Makefile.in - declare dependency on commandhandler git-svn-id: svn://10.0.0.236/trunk@220060 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -67,7 +67,7 @@ JNIEXPORT void JNICALL Java_org_mozilla_webclient_impl_wrapper_1native_CurrentPa
|
||||
return;
|
||||
}
|
||||
|
||||
nsresult rv = nativeBrowserControl->mWindow->CopySelection();
|
||||
nsresult rv = nativeBrowserControl->mWindow->CopySelection(obj);
|
||||
if (NS_FAILED(rv)) {
|
||||
::util_ThrowExceptionToJava(env, "Exception: Can't get Selection from browser");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user