зеркало из https://github.com/mozilla/gecko-dev.git
Added Clear(), PeekUndoStack(), and PeekRedoStack() methods to interface.
This commit is contained in:
Родитель
f0d7606b0b
Коммит
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче