diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-10-27 23:18:14 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-10-27 23:18:14 +0800 |
commit | 0c602edff1de6eaf85746201f94e2b1c4d815da0 (patch) | |
tree | f8eec8899ad045851561fb66b1967d930e1db813 /embed/mozilla/EphyWrapper.h | |
parent | 21f69a6461a12704c97fad51d7ac709faab90cdc (diff) | |
download | gsoc2013-epiphany-0c602edff1de6eaf85746201f94e2b1c4d815da0.tar gsoc2013-epiphany-0c602edff1de6eaf85746201f94e2b1c4d815da0.tar.gz gsoc2013-epiphany-0c602edff1de6eaf85746201f94e2b1c4d815da0.tar.bz2 gsoc2013-epiphany-0c602edff1de6eaf85746201f94e2b1c4d815da0.tar.lz gsoc2013-epiphany-0c602edff1de6eaf85746201f94e2b1c4d815da0.tar.xz gsoc2013-epiphany-0c602edff1de6eaf85746201f94e2b1c4d815da0.tar.zst gsoc2013-epiphany-0c602edff1de6eaf85746201f94e2b1c4d815da0.zip |
Solving the wrapper mess Episode 1.
2003-10-27 Marco Pesenti Gritti <marco@gnome.org>
* embed/ephy-embed.c:
* embed/ephy-embed.h:
* embed/mozilla/EphyWrapper.cpp:
* embed/mozilla/EphyWrapper.h:
* embed/mozilla/EventContext.cpp:
* embed/mozilla/mozilla-embed-persist.cpp:
* embed/mozilla/mozilla-embed.cpp:
Solving the wrapper mess Episode 1.
Cleanup EphyWrapper to use higher level apis.
Do not set docshell history explicitly, it seem
to pickup the registered one nicely.
Diffstat (limited to 'embed/mozilla/EphyWrapper.h')
-rw-r--r-- | embed/mozilla/EphyWrapper.h | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/embed/mozilla/EphyWrapper.h b/embed/mozilla/EphyWrapper.h index 3867d053d..6178c21a3 100644 --- a/embed/mozilla/EphyWrapper.h +++ b/embed/mozilla/EphyWrapper.h @@ -65,35 +65,28 @@ public: nsresult Find (PRBool bacwards, PRBool *didFind); - nsresult GetMainDocumentUrl (nsCString &url); - nsresult GetDocumentUrl (nsCString &url); - nsresult LoadDocument(nsISupports *aPageDescriptor, PRUint32 aDisplayType); nsresult GetPageDescriptor(nsISupports **aPageDescriptor); nsresult GetSHInfo (PRInt32 *count, PRInt32 *index); nsresult GetSHTitleAtIndex (PRInt32 index, PRUnichar **title); nsresult GetSHUrlAtIndex (PRInt32 index, nsCString &url); - - nsresult CopyHistoryTo (EphyWrapper *embed); - nsresult GoToHistoryIndex (PRInt16 index); nsresult ForceEncoding (const char *encoding); nsresult GetEncodingInfo (EphyEncodingInfo **infoptr); - nsresult GetMainDOMDocument (nsIDOMDocument **aDOMDocument); - nsresult PushTargetDocument (nsIDOMDocument *domDoc); nsresult PopTargetDocument (); - nsresult GetDOMDocument (nsIDOMDocument **aDOMDocument); - nsresult GetDOMWindow (nsIDOMWindow **aDOMWindow); - - nsCOMPtr<nsIWebBrowser> mWebBrowser; + nsresult GetDocument (nsIDOMDocument **aDOMDocument); + nsresult GetTargetDocument (nsIDOMDocument **aDOMDocument); + nsresult GetDocumentUrl (nsCString &url); + nsresult GetTargetDocumentUrl (nsCString &url); - nsCOMPtr<nsIWebNavigation> mChromeNav; + nsCOMPtr<nsIWebBrowser> mWebBrowser; + nsCOMPtr<nsIDOMWindow> mDOMWindow; GtkMozEmbed *mGtkMozEmbed; private: @@ -108,10 +101,10 @@ private: nsresult SetZoomOnDocshell (float aZoom, nsIDocShell *DocShell); nsresult GetDocShell (nsIDocShell **aDocShell); nsresult GetCSSBackground (nsIDOMNode *node, nsAutoString& url); - nsresult GetFocusedDOMWindow (nsIDOMWindow **aDOMWindow); nsresult GetSHistory (nsISHistory **aSHistory); nsresult GetPIDOMWindow(nsPIDOMWindow **aPIWin); nsresult GetWebNavigation(nsIWebNavigation **aWebNavigation); + nsresult GetContentViewer (nsIContentViewer **aViewer); }; #endif |