aboutsummaryrefslogtreecommitdiffstats
path: root/embed/xulrunner/components/GlobalHistory.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2007-09-14 04:35:29 +0800
committerChristian Persch <chpe@src.gnome.org>2007-09-14 04:35:29 +0800
commitc7751489980a228c7b0270fcec2823b030d2ac77 (patch)
treef917652803a9982032923d51fe46873ce8127163 /embed/xulrunner/components/GlobalHistory.h
parentaa53ef8dd2c8174a2428b2aa360c8dd0e045543e (diff)
downloadgsoc2013-epiphany-c7751489980a228c7b0270fcec2823b030d2ac77.tar
gsoc2013-epiphany-c7751489980a228c7b0270fcec2823b030d2ac77.tar.gz
gsoc2013-epiphany-c7751489980a228c7b0270fcec2823b030d2ac77.tar.bz2
gsoc2013-epiphany-c7751489980a228c7b0270fcec2823b030d2ac77.tar.lz
gsoc2013-epiphany-c7751489980a228c7b0270fcec2823b030d2ac77.tar.xz
gsoc2013-epiphany-c7751489980a228c7b0270fcec2823b030d2ac77.tar.zst
gsoc2013-epiphany-c7751489980a228c7b0270fcec2823b030d2ac77.zip
Move components from embed/ to components/ and fix the build.
svn path=/trunk/; revision=7431
Diffstat (limited to 'embed/xulrunner/components/GlobalHistory.h')
-rw-r--r--embed/xulrunner/components/GlobalHistory.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/embed/xulrunner/components/GlobalHistory.h b/embed/xulrunner/components/GlobalHistory.h
new file mode 100644
index 000000000..8397874a0
--- /dev/null
+++ b/embed/xulrunner/components/GlobalHistory.h
@@ -0,0 +1,68 @@
+/*
+ * Copyright © 2001, 2004 Philip Langdale
+ * Copyright © 2004 Christian Persch
+ *
+ * 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
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $Id$
+ */
+
+#ifndef EPHY_GLOBAL_HISTORY_H
+#define EPHY_GLOBAL_HISTORY_H
+
+#ifdef HAVE_NSIGLOBALHISTORY3_H
+#include <nsIGlobalHistory3.h>
+#else
+#include <nsIGlobalHistory2.h>
+#endif /* HAVE_NSIGLOBALHISTORY3_H */
+
+#include <nsAutoPtr.h>
+#include <nsCOMPtr.h>
+
+#include "ephy-history.h"
+
+#include "EphyHistoryListener.h"
+
+#define EPHY_GLOBALHISTORY_CLASSNAME "Epiphany Global History Implementation"
+
+#define EPHY_GLOBALHISTORY_CID \
+{ 0xbe0c42c1, \
+ 0x39d4, \
+ 0x4271, \
+ { 0xb7, 0x9e, 0xf7, 0xaa, 0x49, 0xeb, 0x6a, 0x15} \
+}
+
+#ifdef HAVE_NSIGLOBALHISTORY3_H
+class MozGlobalHistory: public nsIGlobalHistory3
+#else
+class MozGlobalHistory: public nsIGlobalHistory2
+#endif /* HAVE_NSIGLOBALHISTORY3_H */
+{
+ public:
+ MozGlobalHistory ();
+ virtual ~MozGlobalHistory();
+
+ NS_DECL_ISUPPORTS
+ NS_DECL_NSIGLOBALHISTORY2
+#ifdef HAVE_NSIGLOBALHISTORY3_H
+ NS_DECL_NSIGLOBALHISTORY3
+#endif /* HAVE_NSIGLOBALHISTORY3_H */
+
+ private:
+ EphyHistory *mGlobalHistory;
+ nsRefPtr<EphyHistoryListener> mHistoryListener;
+};
+
+#endif /* EPHY_GLOBAL_HISTORY_H */