|
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/. */ |
|
5 |
|
6 #ifndef mozilla_dom_mobilemessage_MobileMessageCursorCallback_h |
|
7 #define mozilla_dom_mobilemessage_MobileMessageCursorCallback_h |
|
8 |
|
9 #include "nsIMobileMessageCursorCallback.h" |
|
10 #include "nsCycleCollectionParticipant.h" |
|
11 #include "nsCOMPtr.h" |
|
12 #include "nsAutoPtr.h" |
|
13 |
|
14 class nsICursorContinueCallback; |
|
15 |
|
16 namespace mozilla { |
|
17 namespace dom { |
|
18 |
|
19 class DOMCursor; |
|
20 class MobileMessageManager; |
|
21 |
|
22 namespace mobilemessage { |
|
23 |
|
24 class MobileMessageCursorCallback : public nsIMobileMessageCursorCallback |
|
25 { |
|
26 friend class mozilla::dom::MobileMessageManager; |
|
27 |
|
28 public: |
|
29 NS_DECL_CYCLE_COLLECTING_ISUPPORTS |
|
30 NS_DECL_NSIMOBILEMESSAGECURSORCALLBACK |
|
31 |
|
32 NS_DECL_CYCLE_COLLECTION_CLASS(MobileMessageCursorCallback) |
|
33 |
|
34 MobileMessageCursorCallback() |
|
35 { |
|
36 MOZ_COUNT_CTOR(MobileMessageCursorCallback); |
|
37 } |
|
38 |
|
39 private: |
|
40 virtual ~MobileMessageCursorCallback() |
|
41 { |
|
42 MOZ_COUNT_DTOR(MobileMessageCursorCallback); |
|
43 } |
|
44 |
|
45 nsRefPtr<DOMCursor> mDOMCursor; |
|
46 }; |
|
47 |
|
48 } // namespace mobilemessage |
|
49 } // namespace dom |
|
50 } // namespace mozilla |
|
51 |
|
52 #endif // mozilla_dom_mobilemessage_MobileMessageCursorCallback_h |
|
53 |