widget/nsBaseClipboard.h
author Ryan VanderMeulen <ryanvm@gmail.com>
Mon, 21 Aug 2017 15:32:11 -0400
changeset 650678 86e3368b6058c3a298a6fd973de1313cfe706795
parent 402743 623c48bf36a47ba035c882b18696026c934ce0cc
child 489668 cbb8fdf1daf98a15f7d57f6b08d273bdf96aa1a0
child 693584 68590d8f05a28a2e4db57db4aa0cebb2ae0033bc
child 694109 98e2b4ee9775a2a2b5cc1bb8a390bfe901814f38
child 695222 ff72063115f7dfed4f6b79dafc4575e929f51f51
permissions -rw-r--r--
Bug 1389160 - Add missing FileUtils.h #include to fix bustage. r=rhelmer, a=bustage

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */

#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:
  virtual ~nsBaseClipboard();

  NS_IMETHOD SetNativeClipboardData ( int32_t aWhichClipboard ) = 0;
  NS_IMETHOD GetNativeClipboardData ( nsITransferable * aTransferable, int32_t aWhichClipboard ) = 0;

  bool                mEmptyingForSetData;
  bool                mIgnoreEmptyNotification;
  nsCOMPtr<nsIClipboardOwner> mClipboardOwner;
  nsCOMPtr<nsITransferable>   mTransferable;

};

#endif // nsBaseClipboard_h__