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"
16 class nsHTMLEditorEventListener
: public nsEditorEventListener
19 nsHTMLEditorEventListener() :
20 nsEditorEventListener()
24 virtual ~nsHTMLEditorEventListener()
29 // WARNING: You must be use nsHTMLEditor or its sub class for this class.
30 virtual nsresult
Connect(nsEditor
* aEditor
);
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__