Thanks for your help Boris

FYI
I use nsIDocShell :-

1)To load a page from stream using LoadStream, probably nsIWebNavigation
should have it.
2)To get nsIChromeEventHandler from which use EventReceiver

I use nsPIDOMWindow :-

To get nsIFocusController, which is use to call activate/deactive and
moveFocus.
 ( I am not sure of any alternate way i can get nsIFocusController or achive
the same result).

Thanks
+Medappa


"Boris Zbarsky" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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