1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/xpwidgets/nsBaseClipboard.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,50 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef nsBaseClipboard_h__ 1.10 +#define nsBaseClipboard_h__ 1.11 + 1.12 +#include "nsIClipboard.h" 1.13 +#include "nsITransferable.h" 1.14 +#include "nsClipboardPrivacyHandler.h" 1.15 +#include "nsAutoPtr.h" 1.16 + 1.17 +class nsITransferable; 1.18 +class nsDataObj; 1.19 +class nsIClipboardOwner; 1.20 +class nsIWidget; 1.21 + 1.22 +/** 1.23 + * Native Win32 BaseClipboard wrapper 1.24 + */ 1.25 + 1.26 +class nsBaseClipboard : public nsIClipboard 1.27 +{ 1.28 + 1.29 +public: 1.30 + nsBaseClipboard(); 1.31 + virtual ~nsBaseClipboard(); 1.32 + 1.33 + //nsISupports 1.34 + NS_DECL_ISUPPORTS 1.35 + 1.36 + // nsIClipboard 1.37 + NS_DECL_NSICLIPBOARD 1.38 + 1.39 +protected: 1.40 + 1.41 + NS_IMETHOD SetNativeClipboardData ( int32_t aWhichClipboard ) = 0; 1.42 + NS_IMETHOD GetNativeClipboardData ( nsITransferable * aTransferable, int32_t aWhichClipboard ) = 0; 1.43 + 1.44 + bool mEmptyingForSetData; 1.45 + bool mIgnoreEmptyNotification; 1.46 + nsIClipboardOwner * mClipboardOwner; 1.47 + nsITransferable * mTransferable; 1.48 + nsRefPtr<nsClipboardPrivacyHandler> mPrivacyHandler; 1.49 + 1.50 +}; 1.51 + 1.52 +#endif // nsBaseClipboard_h__ 1.53 +