mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Added Clear(), PeekUndoStack(), and PeekRedoStack() methods to interface.
This commit is contained in:
parent
f0d7606b0b
commit
440860854b
@ -64,6 +64,11 @@ public:
|
||||
*/
|
||||
virtual nsresult Redo(void) = 0;
|
||||
|
||||
/**
|
||||
* Clears the undo and redo stacks.
|
||||
*/
|
||||
virtual nsresult Clear(void) = 0;
|
||||
|
||||
/**
|
||||
* Returns the number of items on the undo stack.
|
||||
* @param aNumItems will contain number of items.
|
||||
@ -76,6 +81,18 @@ public:
|
||||
*/
|
||||
virtual nsresult GetNumberOfRedoItems(PRInt32 *aNumItems) = 0;
|
||||
|
||||
/**
|
||||
* Returns a pointer to the transaction at the top of the undo stack.
|
||||
* @param aTransaction will contain pointer to the transaction.
|
||||
*/
|
||||
virtual nsresult PeekUndoStack(nsITransaction **aTransaction) = 0;
|
||||
|
||||
/**
|
||||
* Returns a pointer to the transaction at the top of the redo stack.
|
||||
* @param aTransaction will contain pointer to the transaction.
|
||||
*/
|
||||
virtual nsresult PeekRedoStack(nsITransaction **aTransaction) = 0;
|
||||
|
||||
/**
|
||||
* Writes a stream representation of the transaction manager and it's
|
||||
* execution stacks. Calls the Write() method of each transaction on the
|
||||
|
Loading…
Reference in New Issue
Block a user