Search completed in 1.89 seconds.
6 results for "nsIWidget":
IME handling guide
MozillaIME handling guide
it depends on the result of nsiwidget::getimeupdatepreference() what is observed.
... notifications to ime xp part of gecko uses nsiwidget::notifyime() for notifying widget of something useful to handle ime.
... note that some of them are notified only when nsiwidget::getimeupdatepreference() returns flags which request the notifications.
...And 11 more matches
nsIWindowMediator
MozillaTechXPCOMReferenceInterfacensIWindowMediator
ed by: @mozilla.org/appshell/window-mediator;1 as a service: var windowmediator = components.classes["@mozilla.org/appshell/window-mediator;1"] .getservice(components.interfaces.nsiwindowmediator); method overview void addlistener(in nsiwindowmediatorlistener alistener); boolean calculatezposition(in nsixulwindow inwindow, in unsigned long inposition, in nsiwidget inbelow, out unsigned long outposition, out nsiwidget outbelow); native code only!
... note: it compares the nsixulwindow to nsiwidgets.
...they are expected to hand us comparison values which are pulled from general storage in the native widget, and may not correspond to an nsiwidget at all.
...And 2 more matches
nsIDOMWindowUtils
MozillaTechXPCOMReferenceInterfacensIDOMWindowUtils
methods activatenativemenuitemat() see nsiwidget.activatenativemenuitemat().
... forceupdatenativemenuat() see nsiwidget.forceupdatenativemenuat().
...this delivers the key to the currently-focused widget by calling its see nsiwidget.synthesizenativekeyevent() method.
... acharacters aunmodifiedcharacters sendnativemouseevent() see nsiwidget.synthesizenativemouseevent().
Finding window handles - Archive of obsolete content
ArchiveAdd-onsCode snippetsFinding Window Handles
like this hwnd gethwnd(nsibasewindow *window) { nscomptr< nsiwidget > widget; window->getmainwidget(getter_addrefs(widget)); if (widget) return (hwnd) widget->getnativedata(ns_native_window); } yet another way to find a window handle (parent window handle) this method is for people who want to get the top level window hwnd from the window object in javascript.
... comparing to the method above, by using this method, you don't have to compile your component with nsiwidget.h and other bunchs of h files that should not be exposed to outside, and could change every time firefox updates, all you need is nsibasewindow.idl(it's not in gecko_sdk, get this from the latest firefox source, or http://mxr.mozilla.org/mozilla/sourc...basewindow.idl), and use xpidl to compile it to .h file, although that's stll a unfrozen interface, but it should be a lot better.
nsIContentViewer
MozillaTechXPCOMReferenceInterfacensIContentViewer
[noscript,notxpcom] nsidocumentptr getdocument(); void hide(); void init(in nsiwidgetptr aparentwidget, [const] in nsintrectref abounds); native code only!
...void init( in nsiwidgetptr aparentwidget, [const] in nsintrectref abounds ); parameters aparentwidget missing description abounds missing description loadcomplete() void loadcomplete( in unsigned long astatus ); parameters astatus missing description exceptions thrown missing exception missing description loadstart() void loadstart( in nsisupports adoc ); parameters ad...
Mozilla accessibility architecture
MozillaAccessibilityAccessibility architecture
there must be a document for the current widget (nswindow/nsiwidget) for the pres shell to create a doc accessible for it.