Bumping manifests a=b2g-bump
[gecko.git] / editor / libeditor / nsHTMLEditorEventListener.h
blob40f7ca78f17ff89c4a77d0fd94b35095e66e0c9b
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsHTMLEditorEventListener_h__
7 #define nsHTMLEditorEventListener_h__
9 #include "nsEditorEventListener.h"
10 #include "nscore.h"
12 class nsEditor;
13 class nsHTMLEditor;
14 class nsIDOMEvent;
16 class nsHTMLEditorEventListener : public nsEditorEventListener
18 public:
19 nsHTMLEditorEventListener() :
20 nsEditorEventListener()
24 virtual ~nsHTMLEditorEventListener()
28 #ifdef DEBUG
29 // WARNING: You must be use nsHTMLEditor or its sub class for this class.
30 virtual nsresult Connect(nsEditor* aEditor);
31 #endif
33 protected:
34 virtual nsresult MouseDown(nsIDOMMouseEvent* aMouseEvent) MOZ_OVERRIDE;
35 virtual nsresult MouseUp(nsIDOMMouseEvent* aMouseEvent) MOZ_OVERRIDE;
36 virtual nsresult MouseClick(nsIDOMMouseEvent* aMouseEvent) MOZ_OVERRIDE;
38 inline nsHTMLEditor* GetHTMLEditor();
41 #endif // nsHTMLEditorEventListener_h__