aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-single.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-06-13 04:25:09 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-06-13 04:25:09 +0800
commitb59ab61dde301128d88778045f502cc30008bf8f (patch)
tree57dd181d409b16ca5abe7d2bddac9c3c54219e95 /embed/ephy-embed-single.h
parentdecb30ea6768b634476d351f3d5f5e73e4308326 (diff)
downloadgsoc2013-epiphany-b59ab61dde301128d88778045f502cc30008bf8f.tar.gz
gsoc2013-epiphany-b59ab61dde301128d88778045f502cc30008bf8f.tar.zst
gsoc2013-epiphany-b59ab61dde301128d88778045f502cc30008bf8f.zip
Add a way to open new windows passing features and uri. Something like js
2004-06-12 Marco Pesenti Gritti <marco@gnome.org> * embed/ephy-embed-single.c: (ephy_embed_single_open_window): * embed/ephy-embed-single.h: * embed/ephy-embed.h: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/EventContext.cpp: * embed/mozilla/mozilla-embed-single.cpp: Add a way to open new windows passing features and uri. Something like js window.open. It's necessary for popup blocker.
Diffstat (limited to 'embed/ephy-embed-single.h')
-rw-r--r--embed/ephy-embed-single.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/embed/ephy-embed-single.h b/embed/ephy-embed-single.h
index f78910e90..3893a4aa8 100644
--- a/embed/ephy-embed-single.h
+++ b/embed/ephy-embed-single.h
@@ -21,8 +21,7 @@
#ifndef EPHY_EMBED_SINGLE_H
#define EPHY_EMBED_SINGLE_H
-#include <glib-object.h>
-#include <glib.h>
+#include "ephy-embed.h"
G_BEGIN_DECLS
@@ -48,6 +47,10 @@ struct _EphyEmbedSingleIface
/* Methods */
+ void (* open_window) (EphyEmbedSingle *single,
+ EphyEmbed *parent,
+ const char *address,
+ const char *features);
void (* clear_cache) (EphyEmbedSingle *shell);
void (* clear_auth_cache) (EphyEmbedSingle *shell);
void (* set_offline_mode) (EphyEmbedSingle *shell,
@@ -60,6 +63,11 @@ struct _EphyEmbedSingleIface
GType ephy_embed_single_get_type (void);
+void ephy_embed_single_open_window (EphyEmbedSingle *single,
+ EphyEmbed *parent,
+ const char *address,
+ const char *features);
+
void ephy_embed_single_clear_cache (EphyEmbedSingle *single);
void ephy_embed_single_clear_auth_cache (EphyEmbedSingle *single);