aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EventContext.h
diff options
context:
space:
mode:
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 97e190437..0dbef5339 100644
--- a/embed/mozilla/EventContext.h
+++ b/embed/mozilla/EventContext.h
@@ -21,28 +21,21 @@
#ifndef EVENT_CONTEXT_H
#define EVENT_CONTEXT_H
-#include "EphyBrowser.h"
-
#include "ephy-embed.h"
#include "mozilla-embed-event.h"
-#include <nsIDOMEventTarget.h>
-#include <nsIDOMMouseEvent.h>
-#include <nsIDOMKeyEvent.h>
-#include <nsIDOMEvent.h>
-#include <nsIDOMNode.h>
-#include <nsIDOMHTMLAnchorElement.h>
-#include <nsIDOMHTMLAreaElement.h>
-#include <nsIDOMHTMLBodyElement.h>
-#include <nsIDOMDocument.h>
-#include <nsIURI.h>
-#undef MOZILLA_INTERNAL_API
-#include <nsEmbedString.h>
-#define MOZILLA_INTERNAL_API 1
-
-#ifdef ALLOW_PRIVATE_API
-#include <nsIDOMViewCSS.h>
-#endif
+class EphyBrowser;
+class nsIDOMDocument;
+class nsIDOMEvent;
+class nsIDOMEventTarget;
+class nsIDOMHTMLAnchorElement;
+class nsIDOMHTMLAreaElement;
+class nsIDOMHTMLBodyElement;
+class nsIDOMKeyEvent;
+class nsIDOMMouseEvent;
+class nsIDOMNode;
+class nsIDOMViewCSS;
+class nsIURI;
class EventContext
{
@@ -63,7 +56,7 @@ private:
nsCOMPtr<nsIDOMDocument> mDOMDocument;
nsCOMPtr<nsIDOMViewCSS> mViewCSS;
nsCOMPtr<nsIURI> mBaseURI;
- nsEmbedCString mCharset;
+ nsCString mCharset;
nsresult GetTargetCoords (nsIDOMEventTarget *aTarget, PRInt32 *aX, PRInt32 *aY);
nsresult GatherTextUnder (nsIDOMNode* aNode, nsAString& aResult);