diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-05-11 02:07:03 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-05-11 02:07:03 +0800 |
commit | 24b71aa8ac7de8dd140092705bb7cc439f6b3309 (patch) | |
tree | 65631a3c5c3b28414788e1f9ef060962b95de9a1 /embed/mozilla/EphyUtils.cpp | |
parent | c3a7867c638dd105405fa2078b2de828a318b909 (diff) | |
download | gsoc2013-epiphany-24b71aa8ac7de8dd140092705bb7cc439f6b3309.tar gsoc2013-epiphany-24b71aa8ac7de8dd140092705bb7cc439f6b3309.tar.gz gsoc2013-epiphany-24b71aa8ac7de8dd140092705bb7cc439f6b3309.tar.bz2 gsoc2013-epiphany-24b71aa8ac7de8dd140092705bb7cc439f6b3309.tar.lz gsoc2013-epiphany-24b71aa8ac7de8dd140092705bb7cc439f6b3309.tar.xz gsoc2013-epiphany-24b71aa8ac7de8dd140092705bb7cc439f6b3309.tar.zst gsoc2013-epiphany-24b71aa8ac7de8dd140092705bb7cc439f6b3309.zip |
Drop support for gecko 1.7.
2006-05-10 Christian Persch <chpe@cvs.gnome.org>
* configure.ac:
* data/glade/prefs-dialog.glade:
* embed/ephy-favicon-cache.c: (ephy_favicon_cache_get):
* embed/mozilla/AutoJSContextStack.cpp:
* embed/mozilla/ContentHandler.cpp:
* embed/mozilla/ContentHandler.h:
* embed/mozilla/EphyAboutModule.cpp:
* embed/mozilla/EphyAboutModule.h:
* embed/mozilla/EphyBrowser.cpp:
* embed/mozilla/EphyBrowser.h:
* embed/mozilla/EphyContentPolicy.cpp:
* embed/mozilla/EphyContentPolicy.h:
* embed/mozilla/EphyDirectoryProvider.cpp:
* embed/mozilla/EphyFind.cpp:
* embed/mozilla/EphyFind.h:
* embed/mozilla/EphyHeaderSniffer.cpp:
* embed/mozilla/EphyHeaderSniffer.h:
* embed/mozilla/EphyHistoryListener.cpp:
* embed/mozilla/EphyHistoryListener.h:
* embed/mozilla/EphyPromptService.cpp:
* embed/mozilla/EphySidebar.cpp:
* embed/mozilla/EphySidebar.h:
* embed/mozilla/EphySingle.cpp:
* embed/mozilla/EphySingle.h:
* embed/mozilla/EphyUtils.cpp:
* embed/mozilla/EphyUtils.h:
* embed/mozilla/EventContext.cpp:
* embed/mozilla/EventContext.h:
* embed/mozilla/FilePicker.cpp:
* embed/mozilla/FilePicker.h:
* embed/mozilla/GlobalHistory.cpp:
* embed/mozilla/GlobalHistory.h:
* embed/mozilla/GtkNSSClientAuthDialogs.cpp:
* embed/mozilla/GtkNSSDialogs.cpp:
* embed/mozilla/GtkNSSKeyPairDialogs.cpp:
* embed/mozilla/GtkNSSSecurityWarningDialogs.cpp:
* embed/mozilla/GtkNSSSecurityWarningDialogs.h:
* embed/mozilla/Makefile.am:
* embed/mozilla/MozDownload.cpp:
* embed/mozilla/MozDownload.h:
* embed/mozilla/MozRegisterComponents.cpp:
* embed/mozilla/MozRegisterComponents.h:
* embed/mozilla/MozillaPrivate.cpp:
* embed/mozilla/MozillaPrivate.h:
* embed/mozilla/PrintingPromptService.cpp:
* embed/mozilla/PrintingPromptService.h:
* embed/mozilla/mozilla-download.cpp:
* embed/mozilla/mozilla-download.h:
* embed/mozilla/mozilla-embed-event.cpp:
* embed/mozilla/mozilla-embed-event.h:
* embed/mozilla/mozilla-embed-find.cpp:
* embed/mozilla/mozilla-embed-find.h:
* embed/mozilla/mozilla-embed-persist.cpp:
* embed/mozilla/mozilla-embed-persist.h:
* embed/mozilla/mozilla-embed-single.cpp:
* embed/mozilla/mozilla-embed.cpp:
* embed/mozilla/mozilla-embed.h:
* embed/mozilla/mozilla-notifiers.cpp:
* embed/mozilla/mozilla-notifiers.h:
* embed/mozilla/mozilla-x509-cert.cpp:
* embed/mozilla/mozilla-x509-cert.h:
* lib/ephy-gui.c:
* lib/ephy-gui.h:
* lib/ephy-langs.c:
* m4/gecko.m4:
* src/ephy-window.c: (sync_tab_security):
* src/prefs-dialog.c: (prefs_dialog_init):
Drop support for gecko 1.7.
Diffstat (limited to 'embed/mozilla/EphyUtils.cpp')
-rw-r--r-- | embed/mozilla/EphyUtils.cpp | 55 |
1 files changed, 28 insertions, 27 deletions
diff --git a/embed/mozilla/EphyUtils.cpp b/embed/mozilla/EphyUtils.cpp index a043b7e66..28286990a 100644 --- a/embed/mozilla/EphyUtils.cpp +++ b/embed/mozilla/EphyUtils.cpp @@ -19,28 +19,29 @@ */ #include "mozilla-config.h" - #include "config.h" -#include "EphyUtils.h" +#include <gtkmozembed.h> +#include <nsCOMPtr.h> +#include <nsIDOMWindow.h> +#include <nsIEmbeddingSiteWindow.h> +#include <nsIFile.h> +#include <nsIIOService.h> +#include <nsIPrintSettings.h> +#include <nsIServiceManager.h> +#include <nsIURI.h> +#include <nsIWebBrowserChrome.h> +#include <nsIWindowWatcher.h> +#include <nsServiceManagerUtils.h> +#include <nsStringAPI.h> +#include <nsXPCOM.h> + #include "ephy-embed-shell.h" #include "ephy-embed-single.h" -#include "print-dialog.h" #include "ephy-file-helpers.h" +#include "print-dialog.h" -#include <nsIIOService.h> -#include <nsIURI.h> -#include <nsIFile.h> -#include <nsIDOMWindow.h> -#include <nsIServiceManager.h> -#undef MOZILLA_INTERNAL_API -#include <nsEmbedString.h> -#define MOZILLA_INTERNAL_API 1 -#include <nsIWindowWatcher.h> -#include <nsIEmbeddingSiteWindow.h> -#include <nsIWebBrowserChrome.h> -#include <gtkmozembed.h> -#include <nsIPrintSettings.h> +#include "EphyUtils.h" nsresult EphyUtils::GetIOService (nsIIOService **ioService) @@ -63,7 +64,7 @@ EphyUtils::NewURI (nsIURI **result, const char *charset, nsIURI *baseURI) { - nsEmbedCString cSpec; + nsCString cSpec; NS_UTF16ToCString (spec, NS_CSTRING_ENCODING_UTF8, cSpec); return NewURI (result, cSpec, charset, baseURI); @@ -147,7 +148,7 @@ EphyUtils::CollatePrintSettings (EmbedPrintInfo *info, /* FIXME: for CUPS printers, print directly instead of to a tmp file? */ const static PRUnichar pName[] = { 'P', 'o', 's', 't', 'S', 'c', 'r', 'i', 'p', 't', '/', 'd', 'e', 'f', 'a', 'u', 'l', 't', '\0' }; - options->SetPrinterName(nsEmbedString(pName).get()); + options->SetPrinterName(nsString(pName).get()); const static int frame_types[] = { nsIPrintSettings::kFramesAsIs, @@ -216,29 +217,29 @@ EphyUtils::CollatePrintSettings (EmbedPrintInfo *info, } - nsEmbedString tmp; + nsString tmp; - NS_CStringToUTF16 (nsEmbedCString(info->header_left_string), + NS_CStringToUTF16 (nsCString(info->header_left_string), NS_CSTRING_ENCODING_UTF8, tmp); options->SetHeaderStrLeft (tmp.get()); - NS_CStringToUTF16 (nsEmbedCString(info->header_center_string), + NS_CStringToUTF16 (nsCString(info->header_center_string), NS_CSTRING_ENCODING_UTF8, tmp); options->SetHeaderStrCenter (tmp.get()); - NS_CStringToUTF16 (nsEmbedCString(info->header_right_string), + NS_CStringToUTF16 (nsCString(info->header_right_string), NS_CSTRING_ENCODING_UTF8, tmp); options->SetHeaderStrRight (tmp.get()); - NS_CStringToUTF16 (nsEmbedCString(info->footer_left_string), + NS_CStringToUTF16 (nsCString(info->footer_left_string), NS_CSTRING_ENCODING_UTF8, tmp); options->SetFooterStrLeft (tmp.get()); - NS_CStringToUTF16 (nsEmbedCString(info->footer_center_string), + NS_CStringToUTF16 (nsCString(info->footer_center_string), NS_CSTRING_ENCODING_UTF8, tmp); options->SetFooterStrCenter(tmp.get()); - NS_CStringToUTF16 (nsEmbedCString(info->footer_right_string), + NS_CStringToUTF16 (nsCString(info->footer_right_string), NS_CSTRING_ENCODING_UTF8, tmp); options->SetFooterStrRight(tmp.get()); @@ -260,7 +261,7 @@ EphyUtils::CollatePrintSettings (EmbedPrintInfo *info, if (info->tempfile == NULL) return NS_ERROR_FAILURE; - NS_CStringToUTF16 (nsEmbedCString(info->tempfile), + NS_CStringToUTF16 (nsCString(info->tempfile), NS_CSTRING_ENCODING_UTF8, tmp); options->SetPrintToFile (PR_TRUE); options->SetToFileName (tmp.get()); @@ -321,7 +322,7 @@ EphyUtils::CollatePrintSettings (EmbedPrintInfo *info, } #endif /* !HAVE_GECKO_1_9 */ - NS_CStringToUTF16 (nsEmbedCString(paper), + NS_CStringToUTF16 (nsCString(paper), NS_CSTRING_ENCODING_UTF8, tmp); options->SetPaperName (tmp.get()); g_free (string); |