gecko-dev/editor/txmgr
Masayuki Nakano 52cffc3290 Bug 1447924 - part 7: Implement AddTransactionListener() and RemoveTransactionListener() in EditorBase and TransactionManager r=m_kato
nsITransactionListener::AddListener() and
nsITransactionListener::RemoveListener() are of course virtual methods.
Additionally, they are safe to call without grabbing the TransactionManager's
instance with local variable.  Therefore, if EditorBase has methods to
add/remove transaction listener to/from its transaction manager, we don't
need EditorBase::GetTransactionManager() anymore.

So, this patch adds AddTransactionListener() and RemoveTransactionListener() to
EditorBase and TransactionManager, and remove
EditorBase::GetTransactionManager() (not nsIEditor's one).

MozReview-Commit-ID: FkPa1YgfagD

--HG--
extra : rebase_source : 8ef7796136804e3d7604c5ca5417fb3379606b93
2018-03-23 18:55:56 +09:00
..
tests Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
TransactionItem.cpp Bug 1447924 - part 3: Rename nsTransactionStack to mozilla::TransactionStack r=m_kato 2018-03-22 23:30:48 +09:00
TransactionItem.h Bug 1447924 - part 3: Rename nsTransactionStack to mozilla::TransactionStack r=m_kato 2018-03-22 23:30:48 +09:00
TransactionManager.cpp Bug 1447924 - part 7: Implement AddTransactionListener() and RemoveTransactionListener() in EditorBase and TransactionManager r=m_kato 2018-03-23 18:55:56 +09:00
TransactionManager.h Bug 1447924 - part 7: Implement AddTransactionListener() and RemoveTransactionListener() in EditorBase and TransactionManager r=m_kato 2018-03-23 18:55:56 +09:00
TransactionManagerFactory.cpp Bug 1447924 - part 1: Rename nsTransactionManager to mozilla::TransactionManager r=m_kato 2018-03-22 22:15:54 +09:00
TransactionStack.cpp Bug 1447924 - part 3: Rename nsTransactionStack to mozilla::TransactionStack r=m_kato 2018-03-22 23:30:48 +09:00
TransactionStack.h Bug 1447924 - part 3: Rename nsTransactionStack to mozilla::TransactionStack r=m_kato 2018-03-22 23:30:48 +09:00
moz.build Bug 1447924 - part 3: Rename nsTransactionStack to mozilla::TransactionStack r=m_kato 2018-03-22 23:30:48 +09:00
nsITransaction.idl
nsITransactionListener.idl
nsITransactionManager.idl Bug 1447924 - part 4: Optimize NumbeOfUndoItems(), NumbeOfRedoItems(), CanUndo() and CanRedo() of EditorBase r=m_kato 2018-03-23 00:08:38 +09:00
nsTransactionManagerCID.h Bug 1447924 - part 1: Rename nsTransactionManager to mozilla::TransactionManager r=m_kato 2018-03-22 22:15:54 +09:00