2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifndef nsBaseClipboard_h__
|
|
|
|
#define nsBaseClipboard_h__
|
|
|
|
|
|
|
|
#include "nsIClipboard.h"
|
|
|
|
#include "nsITransferable.h"
|
|
|
|
|
|
|
|
class nsITransferable;
|
|
|
|
class nsIClipboardOwner;
|
|
|
|
class nsIWidget;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Native Win32 BaseClipboard wrapper
|
|
|
|
*/
|
|
|
|
|
|
|
|
class nsBaseClipboard : public nsIClipboard
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
nsBaseClipboard();
|
|
|
|
|
|
|
|
//nsISupports
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
|
|
|
// nsIClipboard
|
|
|
|
NS_DECL_NSICLIPBOARD
|
|
|
|
|
|
|
|
protected:
|
2014-07-05 13:35:35 -07:00
|
|
|
virtual ~nsBaseClipboard();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
NS_IMETHOD SetNativeClipboardData ( int32_t aWhichClipboard ) = 0;
|
|
|
|
NS_IMETHOD GetNativeClipboardData ( nsITransferable * aTransferable, int32_t aWhichClipboard ) = 0;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-07-09 11:39:46 -07:00
|
|
|
bool mEmptyingForSetData;
|
2011-09-28 23:19:26 -07:00
|
|
|
bool mIgnoreEmptyNotification;
|
2016-01-20 05:45:00 -08:00
|
|
|
nsCOMPtr<nsIClipboardOwner> mClipboardOwner;
|
|
|
|
nsCOMPtr<nsITransferable> mTransferable;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsBaseClipboard_h__
|
|
|
|
|