Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/hulahop-web-view.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-05-21 20:50:53 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-05-21 20:50:53 (GMT)
commit2022177e42224f24d1350d7bdebe4d6badc3d821 (patch)
tree723708ab61b39cc2ca3ee46cc97104ad8cb438a2 /src/hulahop-web-view.cpp
parentc52e22c9e072ebc249fc1e0f4773daa120034839 (diff)
Expose some more properties
Diffstat (limited to 'src/hulahop-web-view.cpp')
-rw-r--r--src/hulahop-web-view.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/hulahop-web-view.cpp b/src/hulahop-web-view.cpp
index 1ee6da4..3fcc3a7 100644
--- a/src/hulahop-web-view.cpp
+++ b/src/hulahop-web-view.cpp
@@ -25,6 +25,8 @@
#include <nsIDOMWindow2.h>
#include <nsIDOMEventTarget.h>
#include <nsIBaseWindow.h>
+#include <nsIDocShell.h>
+#include <nsIInterfaceRequestorUtils.h>
#include <PyXPCOM.h>
#include <gtk/gtkfixed.h>
@@ -252,3 +254,15 @@ hulahop_web_view_get_window_root(HulahopWebView *web_view)
return PyObject_FromNSInterface(eventTarget,
NS_GET_IID(nsIDOMEventTarget));
}
+
+PyObject *
+hulahop_web_view_get_doc_shell(HulahopWebView *web_view)
+{
+ nsresult rv;
+
+ nsCOMPtr<nsIDocShell> docShell(do_GetInterface(web_view->browser, &rv));
+ NS_ENSURE_SUCCESS (rv, NULL);
+
+ return PyObject_FromNSInterface(docShell,
+ NS_GET_IID(nsIDocShell));
+}