Search completed in 1.12 seconds.
6 results for "NativeWindow":
nsIPluginHost
obsolete since gecko 2.0 void deleteplugin
nativewindow(in nsplugin
nativewindowptr aplugin
nativewindow); native code only!
... void newplugin
nativewindow(out nsplugin
nativewindowptr aplugin
nativewindow); native code only!
... void createtmpfiletopost( in string apostdataurl, out string atmpfilename ); parameters apostdataurl atmpfilename native code only!deleteplugin
nativewindow deletes plugin native window object created by newplugin
nativewindow().
...And 3 more matches
Following the Android Toasts Tutorial from a JNI Perspective
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
replace '
nativewindow' with a // reference to an appropriate native resource...
... rv = basewindow->initwindow(
nativewindow, // native window nsnull, // always nsnull.
nsITaskbarTabPreview
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
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->getparent
nativewindow(&hwnd); if (ns_failed(rv)) return null; return (hwnd)hwnd; } that's it; use with caution!
Index of archived content - Archive of obsolete 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...