From 50d2b665017ea4a5284bbcf44fc16a890b3a1a5d Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Fri, 04 May 2007 17:51:15 +0000 Subject: Take out the HAVE_GECKO_1_9 ifdefs, we only support Gecko 1.9 now. --- (limited to 'browser') diff --git a/browser/GeckoBrowserPersist.cpp b/browser/GeckoBrowserPersist.cpp index a614e4d..0a4b7f3 100644 --- a/browser/GeckoBrowserPersist.cpp +++ b/browser/GeckoBrowserPersist.cpp @@ -1,7 +1,5 @@ #include -#ifdef HAVE_GECKO_1_9 - #include #include @@ -183,5 +181,3 @@ GeckoBrowserPersist::SaveURI(const char *uri, const char *filename) return TRUE; } - -#endif diff --git a/browser/GeckoDocumentObject.cpp b/browser/GeckoDocumentObject.cpp index 26eb13d..260b964 100644 --- a/browser/GeckoDocumentObject.cpp +++ b/browser/GeckoDocumentObject.cpp @@ -1,7 +1,5 @@ #include -#ifdef HAVE_GECKO_1_9 - #include #include @@ -237,5 +235,3 @@ GeckoDocumentObject::SaveImage(const char *filename) GeckoBrowserPersist browserPersist(mBrowser); return browserPersist.SaveURI(mImageURI.get(), filename); } - -#endif diff --git a/browser/GeckoDownload.cpp b/browser/GeckoDownload.cpp index 6f099bd..2ec1fe4 100644 --- a/browser/GeckoDownload.cpp +++ b/browser/GeckoDownload.cpp @@ -86,7 +86,6 @@ GeckoDownload::OnStateChange(nsIWebProgress *aWebProgress, mMIMEInfo->GetMIMEType(mimeType); mSource->GetSpec(url); -#ifdef HAVE_GECKO_1_9 /* If the file is application/octet-stream, look up a better mime type from the extension. */ if(mimeType.Equals(APPLICATION_OCTET_STREAM)) { @@ -106,7 +105,6 @@ GeckoDownload::OnStateChange(nsIWebProgress *aWebProgress, } } } -#endif sugar_download_manager_download_started(download_manager, url.get(), @@ -187,8 +185,6 @@ GeckoDownload::OnSecurityChange (nsIWebProgress *aWebProgress, return NS_OK; } -#ifdef HAVE_GECKO_1_9 - NS_IMETHODIMP GeckoDownload::OnRefreshAttempted (nsIWebProgress *aWebProgress, nsIURI *aRefreshURI, @@ -199,8 +195,6 @@ GeckoDownload::OnRefreshAttempted (nsIWebProgress *aWebProgress, return NS_OK; } -#endif - //***************************************************************************** // GeckoDownloadFactory //***************************************************************************** diff --git a/browser/GeckoDragDropHooks.cpp b/browser/GeckoDragDropHooks.cpp index 6439f42..995ee87 100644 --- a/browser/GeckoDragDropHooks.cpp +++ b/browser/GeckoDragDropHooks.cpp @@ -1,7 +1,5 @@ #include -#ifdef HAVE_GECKO_1_9 - #include #include @@ -214,5 +212,3 @@ GeckoDragDropHooks::OnPasteOrDrop(nsIDOMEvent *event, nsITransferable *trans, { return NS_ERROR_NOT_IMPLEMENTED; } - -#endif diff --git a/browser/sugar-browser.cpp b/browser/sugar-browser.cpp index d997fff..4afbeaa 100644 --- a/browser/sugar-browser.cpp +++ b/browser/sugar-browser.cpp @@ -23,13 +23,10 @@ #include "sugar-marshal.h" #include "GeckoContentHandler.h" #include "GeckoDownload.h" - -#ifdef HAVE_GECKO_1_9 #include "GeckoDragDropHooks.h" #include "GeckoDocumentObject.h" #include "GeckoBrowserPersist.h" #include "GeckoDirectoryProvider.h" -#endif #include #include @@ -591,7 +588,6 @@ location_cb(GtkMozEmbed *embed) static gboolean dom_mouse_click_cb(GtkMozEmbed *embed, nsIDOMMouseEvent *mouseEvent) { -#ifdef HAVE_GECKO_1_9 SugarBrowser *browser = SUGAR_BROWSER(embed); SugarBrowserEvent *event; gint return_value = FALSE; @@ -621,9 +617,6 @@ dom_mouse_click_cb(GtkMozEmbed *embed, nsIDOMMouseEvent *mouseEvent) sugar_browser_event_free(event); return return_value; -#else - return FALSE; -#endif } static void @@ -650,7 +643,6 @@ sugar_browser_scroll_pixels(SugarBrowser *browser, int dx, int dy) { -#ifndef HAVE_GECKO_1_9 nsCOMPtr webBrowser; gtk_moz_embed_get_nsIWebBrowser (GTK_MOZ_EMBED(browser), getter_AddRefs(webBrowser)); @@ -668,7 +660,6 @@ sugar_browser_scroll_pixels(SugarBrowser *browser, NS_ENSURE_TRUE (DOMWindow, ); DOMWindow->ScrollBy (dx, dy); -#endif } void @@ -690,12 +681,8 @@ sugar_browser_save_uri(SugarBrowser *browser, const char *uri, const char *filename) { -#ifdef HAVE_GECKO_1_9 GeckoBrowserPersist browserPersist(browser); return browserPersist.SaveURI(uri, filename); -#else - return FALSE; -#endif } gboolean -- cgit v0.9.1