michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsBaseClipboard_h__ michael@0: #define nsBaseClipboard_h__ michael@0: michael@0: #include "nsIClipboard.h" michael@0: #include "nsITransferable.h" michael@0: #include "nsClipboardPrivacyHandler.h" michael@0: #include "nsAutoPtr.h" michael@0: michael@0: class nsITransferable; michael@0: class nsDataObj; michael@0: class nsIClipboardOwner; michael@0: class nsIWidget; michael@0: michael@0: /** michael@0: * Native Win32 BaseClipboard wrapper michael@0: */ michael@0: michael@0: class nsBaseClipboard : public nsIClipboard michael@0: { michael@0: michael@0: public: michael@0: nsBaseClipboard(); michael@0: virtual ~nsBaseClipboard(); michael@0: michael@0: //nsISupports michael@0: NS_DECL_ISUPPORTS michael@0: michael@0: // nsIClipboard michael@0: NS_DECL_NSICLIPBOARD michael@0: michael@0: protected: michael@0: michael@0: NS_IMETHOD SetNativeClipboardData ( int32_t aWhichClipboard ) = 0; michael@0: NS_IMETHOD GetNativeClipboardData ( nsITransferable * aTransferable, int32_t aWhichClipboard ) = 0; michael@0: michael@0: bool mEmptyingForSetData; michael@0: bool mIgnoreEmptyNotification; michael@0: nsIClipboardOwner * mClipboardOwner; michael@0: nsITransferable * mTransferable; michael@0: nsRefPtr mPrivacyHandler; michael@0: michael@0: }; michael@0: michael@0: #endif // nsBaseClipboard_h__ michael@0: