aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EventContext.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@src.gnome.org>2004-06-04 02:51:32 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-06-04 02:51:32 +0800
commitb774b547788b74884b9eb690c548a6016e714023 (patch)
tree72b9df09c0fc257169b3e9b9cbdc349e56a63101 /embed/mozilla/EventContext.h
parentb699b40d663955560655271f7645ae277e6076c8 (diff)
downloadgsoc2013-epiphany-b774b547788b74884b9eb690c548a6016e714023.tar
gsoc2013-epiphany-b774b547788b74884b9eb690c548a6016e714023.tar.gz
gsoc2013-epiphany-b774b547788b74884b9eb690c548a6016e714023.tar.bz2
gsoc2013-epiphany-b774b547788b74884b9eb690c548a6016e714023.tar.lz
gsoc2013-epiphany-b774b547788b74884b9eb690c548a6016e714023.tar.xz
gsoc2013-epiphany-b774b547788b74884b9eb690c548a6016e714023.tar.zst
gsoc2013-epiphany-b774b547788b74884b9eb690c548a6016e714023.zip
merge mozilla-embed-strings branch
Diffstat (limited to 'embed/mozilla/EventContext.h')
-rw-r--r--embed/mozilla/EventContext.h33
1 files changed, 13 insertions, 20 deletions
diff --git a/embed/mozilla/EventContext.h b/embed/mozilla/EventContext.h
index 41fc1dfcb..efc05322b 100644
--- a/embed/mozilla/EventContext.h
+++ b/embed/mozilla/EventContext.h
@@ -35,39 +35,32 @@
#include <nsIDOMHTMLBodyElement.h>
#include <nsIDOMDocument.h>
-#ifdef ALLOW_PRIVATE_API
-#include <nsIDocument.h>
-#include <nsString.h>
-#endif
-
class EventContext
{
public:
EventContext();
~EventContext();
- nsresult Init (EphyBrowser *wrapper);
-
+ nsresult Init (EphyBrowser *wrapper);
nsresult GetMouseEventInfo (nsIDOMMouseEvent *event, MozillaEmbedEvent *info);
- nsresult GetKeyEventInfo (nsIDOMKeyEvent *event, MozillaEmbedEvent *info);
+ nsresult GetKeyEventInfo (nsIDOMKeyEvent *event, MozillaEmbedEvent *info);
nsresult GetTargetDocument (nsIDOMDocument **domDoc);
private:
EphyBrowser *mBrowser;
+ MozillaEmbedEvent *mEmbedEvent;
nsCOMPtr<nsIDOMDocument> mDOMDocument;
- nsresult GatherTextUnder (nsIDOMNode* aNode, nsString& aResult);
- nsresult ResolveBaseURL (nsIDocument *doc, const nsAString &relurl, nsACString &url);
- nsresult ResolveDocumentURL (nsIDocument *doc, const nsAString &relurl, nsACString &url);
- nsresult GetEventContext (nsIDOMEventTarget *EventTarget,
- MozillaEmbedEvent *info);
- nsresult GetCSSBackground (nsIDOMNode *node, nsAutoString& url);
- nsresult IsPageFramed (nsIDOMNode *node, PRBool *Framed);
- nsresult CheckLinkScheme (const nsAString &link);
- nsresult SetIntProperty (const char *name, int value);
- nsresult SetStringProperty (const char *name, const char *value);
- nsresult SetStringProperty (const char *name, const nsAString &value);
- MozillaEmbedEvent *mEmbedEvent;
+ nsresult GatherTextUnder (nsIDOMNode* aNode, nsAString& aResult);
+ nsresult ResolveBaseURL (const nsAString &relurl, nsACString &url);
+ nsresult GetEventContext (nsIDOMEventTarget *EventTarget,
+ MozillaEmbedEvent *info);
+ nsresult GetCSSBackground (nsIDOMNode *node, nsAString& url);
+ nsresult IsPageFramed (nsIDOMNode *node, PRBool *Framed);
+ nsresult CheckLinkScheme (const nsAString &link);
+ nsresult SetIntProperty (const char *name, int value);
+ nsresult SetStringProperty (const char *name, const char *value);
+ nsresult SetStringProperty (const char *name, const nsAString &value);
};
#endif