From c84af0839782820ff42a8cf08c3b76d830f77757 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Wed, 13 Jun 2007 12:16:03 +0000 Subject: Implement get_doc_shell in python. --- (limited to 'src') diff --git a/src/hulahop-web-view.cpp b/src/hulahop-web-view.cpp index bd6f14e..2eeebc6 100644 --- a/src/hulahop-web-view.cpp +++ b/src/hulahop-web-view.cpp @@ -27,7 +27,6 @@ #include #include #include -#include #include #include @@ -275,18 +274,6 @@ hulahop_web_view_get_window_root(HulahopWebView *web_view) NS_GET_IID(nsIDOMEventTarget)); } -PyObject * -hulahop_web_view_get_doc_shell(HulahopWebView *web_view) -{ - nsresult rv; - - nsCOMPtr docShell(do_GetInterface(web_view->browser, &rv)); - NS_ENSURE_SUCCESS (rv, NULL); - - return PyObject_FromNSInterface(docShell, - NS_GET_IID(nsIDocShell)); -} - void hulahop_web_view_create_window(HulahopWebView *web_view) { diff --git a/src/hulahop-web-view.h b/src/hulahop-web-view.h index d90a46f..7f56a63 100644 --- a/src/hulahop-web-view.h +++ b/src/hulahop-web-view.h @@ -41,7 +41,6 @@ void hulahop_web_view_grab_focus (HulahopWebView *web_view); void hulahop_web_view_create_window (HulahopWebView *web_view); PyObject *hulahop_web_view_get_browser (HulahopWebView *web_view); PyObject *hulahop_web_view_get_window_root (HulahopWebView *web_view); -PyObject *hulahop_web_view_get_doc_shell (HulahopWebView *web_view); G_END_DECLS -- cgit v0.9.1