Line data Source code
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/. */
5 :
6 : #ifndef HTMLEditorEventListener_h
7 : #define HTMLEditorEventListener_h
8 :
9 : #include "EditorEventListener.h"
10 : #include "nscore.h"
11 :
12 : namespace mozilla {
13 :
14 : class EditorBase;
15 : class HTMLEditor;
16 :
17 : class HTMLEditorEventListener final : public EditorEventListener
18 : {
19 : public:
20 0 : HTMLEditorEventListener()
21 0 : {
22 0 : }
23 :
24 0 : virtual ~HTMLEditorEventListener()
25 0 : {
26 0 : }
27 :
28 : /**
29 : * Connect() fails if aEditorBase isn't an HTMLEditor instance.
30 : */
31 : virtual nsresult Connect(EditorBase* aEditorBase) override;
32 :
33 : protected:
34 : virtual nsresult MouseDown(nsIDOMMouseEvent* aMouseEvent) override;
35 : virtual nsresult MouseUp(nsIDOMMouseEvent* aMouseEvent) override;
36 : virtual nsresult MouseClick(nsIDOMMouseEvent* aMouseEvent) override;
37 : };
38 :
39 : } // namespace mozilla
40 :
41 : #endif // #ifndef HTMLEditorEventListener_h
|