C.N.Medappa wrote:
1) nsIDOMWindowInternal to get nsPIDOMWindow ,

Yeah, nsPIDOMWindow is a private "interface" (hence the "P").


2) nsPIDOMWindow is used to get nsIDocShell and nsIChromeEventHandler

Because you need to set the nsIChromeEventHandler and the only way to do it is via nsIDocShell?


Or something else?

Ideally, nsIDocShell would get cleaned up and split into public (freezable) parts and a private (most of it, actually) non-COM interface.... In fact, we're hoping to start working on that soon, so feedback on what parts of the interfaces are needed by embeddors right now and why would be much appreciated.

Is there any other way i can reach nsIChromeEventHandler and nsIDocShell
without nsPIDOMWindow

Yeah. You can QI the window to nsIInterfaceRequestor and ask for an nsIWebNavigation, then QI that to an nsIDocShell.


A little silly (and very opaque!), but again, nsIDocShell is not really supposed to be a "public" api... :(

-Boris
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to