mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
Added BeginBatch(), EndBatch(), BeginTransaction() and EndTransaction()
methods.
This commit is contained in:
parent
efd75e5cfe
commit
225d4fcce1
@ -69,6 +69,20 @@ public:
|
||||
*/
|
||||
virtual nsresult Clear(void) = 0;
|
||||
|
||||
/**
|
||||
* Turns on the transaction manager's batch mode, forcing all transactions
|
||||
* executed by the transaction manager's Do() method to be aggregated
|
||||
* together until EndBatch() is called. This mode allows an application to
|
||||
* execute and group together several independent transactions so they
|
||||
* can be undone with a single call to Undo().
|
||||
*/
|
||||
virtual nsresult BeginBatch() = 0;
|
||||
|
||||
/**
|
||||
* Turns off the transaction manager's batch mode.
|
||||
*/
|
||||
virtual nsresult EndBatch() = 0;
|
||||
|
||||
/**
|
||||
* Returns the number of items on the undo stack.
|
||||
* @param aNumItems will contain number of items.
|
||||
|
Loading…
Reference in New Issue
Block a user