dom/mobilemessage/src/MobileMessageCursorCallback.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial