editor/txmgr/src/nsTransactionList.h
author Tim Abraldes <tabraldes@mozilla.com>
Tue, 15 Apr 2014 11:09:27 -0700
changeset 227296 98e7ff38943abeeb987f09289cbab4ce53cf43ba
parent 99202 4e24278d2273dac7a5f8a681e078e207d09da12a
child 190357 438751141e7c3e7c6a8c4eb419eb99b1f7464cf2
permissions -rw-r--r--
bug 981569. Don't ever remove our custom "is the window active" property. When switching from custom non-client margins to default non-client margins, send a `WM_NCACTIVATE` message so that `DefWindowProc` knows the correct active/inactive state of the window. r=blassey a=bkerensa

/* -*- 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 nsTransactionList_h__
#define nsTransactionList_h__

#include "nsAutoPtr.h"
#include "nsISupportsImpl.h"
#include "nsITransactionList.h"
#include "nsIWeakReferenceUtils.h"

class nsITransaction;
class nsITransactionManager;
class nsTransactionItem;
class nsTransactionStack;

/** implementation of a transaction list object.
 *
 */
class nsTransactionList : public nsITransactionList
{
private:

  nsWeakPtr                   mTxnMgr;
  nsTransactionStack         *mTxnStack;
  nsRefPtr<nsTransactionItem> mTxnItem;

public:

  nsTransactionList(nsITransactionManager *aTxnMgr, nsTransactionStack *aTxnStack);
  nsTransactionList(nsITransactionManager *aTxnMgr, nsTransactionItem *aTxnItem);

  virtual ~nsTransactionList();

  /* Macro for AddRef(), Release(), and QueryInterface() */
  NS_DECL_ISUPPORTS

  /* nsITransactionManager method implementations. */
  NS_DECL_NSITRANSACTIONLIST

  /* nsTransactionList specific methods. */
};

#endif // nsTransactionList_h__