aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyBrowser.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-01-04 20:52:05 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-04 20:52:05 +0800
commit753b29514d19fd54d51c2346bc6bb08ff1093cac (patch)
treee15206e10a0f54f52bcd5c2fd245d0d21f8750ee /embed/mozilla/EphyBrowser.h
parent1fe471d0ab202613f6802751f5604420e23727d1 (diff)
downloadgsoc2013-epiphany-753b29514d19fd54d51c2346bc6bb08ff1093cac.tar
gsoc2013-epiphany-753b29514d19fd54d51c2346bc6bb08ff1093cac.tar.gz
gsoc2013-epiphany-753b29514d19fd54d51c2346bc6bb08ff1093cac.tar.bz2
gsoc2013-epiphany-753b29514d19fd54d51c2346bc6bb08ff1093cac.tar.lz
gsoc2013-epiphany-753b29514d19fd54d51c2346bc6bb08ff1093cac.tar.xz
gsoc2013-epiphany-753b29514d19fd54d51c2346bc6bb08ff1093cac.tar.zst
gsoc2013-epiphany-753b29514d19fd54d51c2346bc6bb08ff1093cac.zip
Add API to check if an EphyEmbed has forms with user input in them.
2004-01-04 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed.c: (ephy_embed_has_modified_forms): * embed/ephy-embed.h: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/mozilla-embed.cpp: Add API to check if an EphyEmbed has forms with user input in them. Currently it required one modified textarea, or two modified text fields. * src/ephy-notebook.c: (ephy_notebook_class_init), (close_button_clicked_cb): * src/ephy-notebook.h: * src/ephy-window.c: (confirm_close_with_modified_forms), (ephy_window_delete_event_cb), (tab_delete_cb), (setup_notebook), (ephy_window_init), (ephy_window_remove_tab): When closing a window or tab, check if there is unsubmitted user input in form fields, and if so, warn the user before closing. Fixes bug #119857.
Diffstat (limited to 'embed/mozilla/EphyBrowser.h')
-rw-r--r--embed/mozilla/EphyBrowser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/embed/mozilla/EphyBrowser.h b/embed/mozilla/EphyBrowser.h
index e5ed2e5f5..40101ce44 100644
--- a/embed/mozilla/EphyBrowser.h
+++ b/embed/mozilla/EphyBrowser.h
@@ -119,6 +119,8 @@ public:
nsresult GetDocumentUrl (nsCString &url);
nsresult GetTargetDocumentUrl (nsCString &url);
+ nsresult GetHasModifiedForms (PRBool *modified);
+
nsCOMPtr<nsIWebBrowser> mWebBrowser;
private:
@@ -135,6 +137,7 @@ private:
nsresult SetZoomOnDocshell (float aZoom, nsIDocShell *DocShell);
nsresult GetSHistory (nsISHistory **aSHistory);
nsresult GetContentViewer (nsIContentViewer **aViewer);
+ nsresult GetDocumentHasModifiedForms (nsIDOMDocument *aDomDoc, PRUint32 *aNumTextFields, PRBool *aHasTextArea);
};
#endif