aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/ContentHandler.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-11-14 05:38:40 +0800
committerChristian Persch <chpe@src.gnome.org>2004-11-14 05:38:40 +0800
commit24664b3b9a56643eb383e3db7aa24f7a18bd5979 (patch)
tree4030e0305d3868104eaafceb3d109a34ef8851a8 /embed/mozilla/ContentHandler.h
parent14fb72aeb0cc6a75d7326298607887dbc7d9fdd7 (diff)
downloadgsoc2013-epiphany-24664b3b9a56643eb383e3db7aa24f7a18bd5979.tar
gsoc2013-epiphany-24664b3b9a56643eb383e3db7aa24f7a18bd5979.tar.gz
gsoc2013-epiphany-24664b3b9a56643eb383e3db7aa24f7a18bd5979.tar.bz2
gsoc2013-epiphany-24664b3b9a56643eb383e3db7aa24f7a18bd5979.tar.lz
gsoc2013-epiphany-24664b3b9a56643eb383e3db7aa24f7a18bd5979.tar.xz
gsoc2013-epiphany-24664b3b9a56643eb383e3db7aa24f7a18bd5979.tar.zst
gsoc2013-epiphany-24664b3b9a56643eb383e3db7aa24f7a18bd5979.zip
No need to make the content handler dialogue modal.
2004-11-13 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/ContentHandler.cpp: * embed/mozilla/ContentHandler.h: No need to make the content handler dialogue modal.
Diffstat (limited to 'embed/mozilla/ContentHandler.h')
-rw-r--r--embed/mozilla/ContentHandler.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/embed/mozilla/ContentHandler.h b/embed/mozilla/ContentHandler.h
index 95ba1aa4d..92612653b 100644
--- a/embed/mozilla/ContentHandler.h
+++ b/embed/mozilla/ContentHandler.h
@@ -1,5 +1,6 @@
/*
- * Copyright (C) 2000-2003 Marco Pesenti Gritti, Xan Lopez
+ * Copyright (C) 2000-2003 Marco Pesenti Gritti,
+ * Copyright (C) 2003 Xan Lopez
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,27 +19,25 @@
* $Id$
*/
-#ifndef __ContentHandler_h
-#define __ContentHandler_h
+#ifndef CONTENT_HANDLER_H
+#define CONTENT_HANDLER_H
#include "config.h"
-#include "ephy-embed-shell.h"
-
#include <libgnomevfs/gnome-vfs-mime-handlers.h>
+#define MOZILLA_STRICT_API
+#include <nsEmbedString.h>
+#undef MOZILLA_STRICT_API
#include <nsCOMPtr.h>
#include <nsISupports.h>
#include <nsIURI.h>
#include <nsIFile.h>
-#define MOZILLA_STRICT_API
-#include <nsEmbedString.h>
-#undef MOZILLA_STRICT_API
#include <nsIHelperAppLauncherDialog.h>
typedef enum
{
- CONTENT_ACTION_OPEN,
+ CONTENT_ACTION_OPEN = 1,
CONTENT_ACTION_OPEN_TMP,
CONTENT_ACTION_DOWNLOAD,
CONTENT_ACTION_SAVEAS,
@@ -62,23 +61,22 @@ class GContentHandler : public nsIHelperAppLauncherDialog
GContentHandler();
virtual ~GContentHandler();
+ NS_METHOD MIMEDoAction ();
+ ContentAction mAction;
private:
NS_METHOD Init ();
NS_METHOD LaunchHelperApp ();
+ NS_METHOD MIMEInitiateAction ();
NS_METHOD MIMEConfirmAction ();
- NS_METHOD MIMEDoAction ();
- NS_METHOD CheckAppSupportScheme ();
nsCOMPtr<nsIHelperAppLauncher> mLauncher;
nsCOMPtr<nsIURI> mUri;
nsCOMPtr<nsIFile> mTempFile;
nsCOMPtr<nsISupports> mContext;
- PRBool mAppSupportScheme;
GnomeVFSMimeApplication *mHelperApp;
- ContentAction mAction;
EphyMimePermission mPermission;
nsEmbedCString mUrl;
@@ -90,4 +88,4 @@ class GContentHandler : public nsIHelperAppLauncherDialog
#endif
};
-#endif /* __ContentHandler_h */
+#endif /* CONTENT_HANDLER_H */