Bumping manifests a=b2g-bump
[gecko.git] / editor / libeditor / nsHTMLObjectResizer.h
bloba47dc0d3609e2ee21289db7996326605c9f8a3b1
1 /* -*- Mode: C++; tab-width: 2; 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 _nshtmlobjectresizer__h
7 #define _nshtmlobjectresizer__h
9 #include "nsIDOMEventListener.h"
10 #include "nsISelectionListener.h"
11 #include "nsISupportsImpl.h"
12 #include "nsIWeakReferenceUtils.h"
13 #include "nsLiteralString.h"
15 class nsIHTMLEditor;
17 #define kTopLeft NS_LITERAL_STRING("nw")
18 #define kTop NS_LITERAL_STRING("n")
19 #define kTopRight NS_LITERAL_STRING("ne")
20 #define kLeft NS_LITERAL_STRING("w")
21 #define kRight NS_LITERAL_STRING("e")
22 #define kBottomLeft NS_LITERAL_STRING("sw")
23 #define kBottom NS_LITERAL_STRING("s")
24 #define kBottomRight NS_LITERAL_STRING("se")
26 // ==================================================================
27 // ResizerSelectionListener
28 // ==================================================================
30 class ResizerSelectionListener : public nsISelectionListener
32 public:
34 explicit ResizerSelectionListener(nsIHTMLEditor * aEditor);
35 void Reset();
37 /*interfaces for addref and release and queryinterface*/
38 NS_DECL_ISUPPORTS
40 NS_DECL_NSISELECTIONLISTENER
42 protected:
43 virtual ~ResizerSelectionListener();
45 nsWeakPtr mEditor;
48 // ==================================================================
49 // ResizerMouseMotionListener
50 // ==================================================================
52 class ResizerMouseMotionListener : public nsIDOMEventListener
54 public:
55 explicit ResizerMouseMotionListener(nsIHTMLEditor * aEditor);
57 /*interfaces for addref and release and queryinterface*/
58 NS_DECL_ISUPPORTS
60 NS_DECL_NSIDOMEVENTLISTENER
62 protected:
63 virtual ~ResizerMouseMotionListener();
65 nsWeakPtr mEditor;
69 // ==================================================================
70 // DocumentResizeEventListener
71 // ==================================================================
73 class DocumentResizeEventListener: public nsIDOMEventListener
75 public:
76 explicit DocumentResizeEventListener(nsIHTMLEditor * aEditor);
78 /*interfaces for addref and release and queryinterface*/
79 NS_DECL_ISUPPORTS
81 NS_DECL_NSIDOMEVENTLISTENER
83 protected:
84 virtual ~DocumentResizeEventListener();
85 nsWeakPtr mEditor;
89 #endif /* _nshtmlobjectresizer__h */