Hi,

       I have embedded mozilla in my gtk application using
gtkmozembed. I am using spatial navigation for navigating through the
web pages. Here are the few queries i have regarding spatial
navigation.....
1. Is there any way to find out that i have reached the last link in
the web page.
2. Is there any way to find out that i have reached the first link in
the web page.

Also,
I want to shift focus in and out from the browser on keypresses. I am
doing it using nsIWebBrowserFocus. Is that the correct way of doing
it?

nsCOMPtr<nsIWebBrowser> webBrowser;
gtk_moz_embed_get_nsIWebBrowser((GtkMozEmbed*)mozEmbed,
getter_AddRefs(webBrowser));
nsCOMPtr<nsIWebBrowserFocus> focus(do_GetInterface(webBrowser));
if (focus)
{
    focus->Activate();
}

Thanks in Advance
Vineeth

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to