Search completed in 1.12 seconds.
6 results for "NativeWindow":
nsIPluginHost
MozillaTechXPCOMReferenceInterfacensIPluginHost
obsolete since gecko 2.0 void deletepluginnativewindow(in nspluginnativewindowptr apluginnativewindow); native code only!
... void newpluginnativewindow(out nspluginnativewindowptr apluginnativewindow); native code only!
... void createtmpfiletopost( in string apostdataurl, out string atmpfilename ); parameters apostdataurl atmpfilename native code only!deletepluginnativewindow deletes plugin native window object created by newpluginnativewindow().
...And 3 more matches
Following the Android Toasts Tutorial from a JNI Perspective
MozillaJavaScript code modulesJNI.jsmPort Java code to JNI.jsm
toasts do not have to be created with jni; they are exposed by the nativewindow feature on firefox for android, see toast documentation.
... context context = getapplicationcontext(); charsequence text = "hello, firefox!"; int duration = toast.length_short; toast toast = toast.maketext(context, text, duration); toast.show(); nativewindow code as mentioned earlier, toasts are a very popular feature, so mozilla developers chose to bring it to the privileged javascript scope via the nativewindow object.
... the java code example above can be done with privileged javascript from firefox for android with the following code: window.nativewindow.toast.show("hello, firefox!", "short"); converting java to jni.jsm the first step is to look at the java code and see all the different types, methods, constructors, and fields that are being used.
Overview of Mozilla embedding APIs
MozillaGeckoEmbedding MozillaAPI overview
replace 'nativewindow' with a // reference to an appropriate native resource...
... rv = basewindow->initwindow(nativewindow, // native window nsnull, // always nsnull.
nsITaskbarTabPreview
MozillaTechXPCOMReferenceInterfacensITaskbarTabPreview
method overview void ensureregistration(); violates the xpcom interface guidelines nativewindow gethwnd(); violates the xpcom interface guidelines void move(in nsitaskbartabpreview anext); attributes attribute type description icon imgicontainer the icon displayed next to the title in the preview.
... nativewindow gethwnd(); parameters none.
Finding window handles - Archive of obsolete content
ArchiveAdd-onsCode snippetsFinding Window Handles
vigation) .queryinterface(components.interfaces.nsidocshelltreeitem) .treeowner .queryinterface(components.interfaces.nsiinterfacerequestor) .getinterface(components.interfaces.nsibasewindow); then in c++ part, a function take nsibasewindow as param hwnd getparentwindowhwnd(nsibasewindow *window) { nativewindow hwnd; nsresult rv = window->getparentnativewindow(&hwnd); if (ns_failed(rv)) return null; return (hwnd)hwnd; } that's it; use with caution!
Index of archived content - Archive of obsolete content
ArchiveIndex of archived content
quit selecttab tabs helperapps.jsm home.jsm banner panels homeprovider.jsm homestorage nativewindow contextmenus doorhanger menu toast notifications.jsm pageactions.jsm prompt.jsm runtimepermissions.jsm snackbars.jsm sound.jsm tab addons developer gui...