Search completed in 1.13 seconds.
6 results for "nativewindow":
nsIPluginHost
le Please add a summary to this article. ...
...y to this article. ...
...nherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) Method overview nsIFile createTempFileToPost(in string aPostDataURL); Native code only! void createTmpFileToPost(in string aPostDataURL, out string aTmpFileName); Native code only! Obsolete since Gecko 2.0 void deletePlugin
NativeWindow(in nsPlugin
NativeWindowPtr aPlugin
NativeWindow); Native code only! void destroy(); Native code only! void findProxyForURL(in string aURL, out string aResult); Native code only! nsIPlugin getPlugin(in string aMimeType); Native code only! void getPluginCount(out unsigned long aPluginCount); Obsolete since Gecko 1.8 nsIPlugin getPluginFactory(in string aMimeType); Native code only! Obsolete since G...
...And 4 more matches
Following the Android Toasts Tutorial from a JNI Perspective
n in a small popup. It only fills the amount of space required for the message, and the current activity remains visible and interactive. For example, navigating away from an email before you send it triggers a "Draft saved" toast to let you know that you can continue editing later. Toasts automatically disappear after a timeout. ...
...ed with JNI; they are exposed by the
NativeWindow feature on Firefox for Android, see toast documentation. Java code Let's start with the following Java code, which invokes a toast and says "Hello, Firefox!". 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. ...
...n = 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. In the toast code we have the following: Types - Context, CharSequence, int, Toast, and void Methods - makeText, show Fields - LENGTH_SHORT No constructors are used. Declare the types We wi...
nsITaskbarTabPreview
be prevented. When there are no more tab previews left for a window, the window preview is automatically made visible again. An application may have as many tab previews as memory allows. You can't directly instantiate this interface; instead, call the nsIWinTaskbar.createTaskbarTabPreview(). 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. This is null by default. title DOMString The title displayed above the thumbnail. By default, this is an empty string. Methods ...
...t the taskbar knows about this preview. If a preview is not registered, the API call to set its sibling (via the move() method) will fail silently. This method is only invoked when it's safe to make taskbar API calls. void EnsureRegistration(); Parameters None. Violates the XPCOM interface guidelines GetHWND() Used internally to obtain the handle to the proxy window for the preview.
nativeWindow GetHWND(); Parameters None. Return value The HWND for the preview's proxy window. move() Relocates the preview relative to another tab preview from the same window. void move( in nsITaskbarTabPreview aNext ); Parameters aNext The preview that this preview should be placed to the left of. A value of null indicates that this preview should be the rightmost one. See also nsITask...
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...
Overview of Mozilla embedding APIs
nter to the embedding component which // implements the callback interfaces. Replace 'this' with // an appropriate object... rv = webBrowser->SetContainerWindow((nsIWebBrowserChrome*)this); if (NS_FAILED(rv)) return rv; baseWindow = do_QueryInterface(webBrowser); // Initialize the WebBrowser with a native parent window // (ie. HWND on Win32). Replace '
nativeWindow' with a // reference to an appropriate native resource... rv = baseWindow->InitWindow(
nativeWindow, // Native window nsnull, // Always nsnull. x, y, cx, cy); // Initial dimensions... if (NS_FAILED(rv)) return rv; // Create the child window for the WebBrowser. rv = baseWindow->Create(); ...