diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /editor/libeditor/nsIAbsorbingTransaction.h | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'editor/libeditor/nsIAbsorbingTransaction.h')
-rw-r--r-- | editor/libeditor/nsIAbsorbingTransaction.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/editor/libeditor/nsIAbsorbingTransaction.h b/editor/libeditor/nsIAbsorbingTransaction.h new file mode 100644 index 000000000..e22caed4a --- /dev/null +++ b/editor/libeditor/nsIAbsorbingTransaction.h @@ -0,0 +1,57 @@ +/* -*- 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 nsIAbsorbingTransaction_h__ +#define nsIAbsorbingTransaction_h__ + +#include "nsISupports.h" + +/* +Transaction interface to outside world +*/ + +#define NS_IABSORBINGTRANSACTION_IID \ +{ /* a6cf9116-15b3-11d2-932e-00805f8add32 */ \ + 0xa6cf9116, \ + 0x15b3, \ + 0x11d2, \ + {0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32} } + +class nsIAtom; + +namespace mozilla { +class EditorBase; +class SelectionState; +} // namespace mozilla + +/** + * A transaction interface mixin - for transactions that can support. + * the placeholder absorbtion idiom. + */ +class nsIAbsorbingTransaction : public nsISupports{ +public: + + NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABSORBINGTRANSACTION_IID) + + NS_IMETHOD Init(nsIAtom* aName, mozilla::SelectionState* aSelState, + mozilla::EditorBase* aEditorBase) = 0; + + NS_IMETHOD EndPlaceHolderBatch()=0; + + NS_IMETHOD GetTxnName(nsIAtom **aName)=0; + + NS_IMETHOD StartSelectionEquals(mozilla::SelectionState* aSelState, + bool* aResult) = 0; + + NS_IMETHOD ForwardEndBatchTo(nsIAbsorbingTransaction *aForwardingAddress)=0; + + NS_IMETHOD Commit()=0; +}; + +NS_DEFINE_STATIC_IID_ACCESSOR(nsIAbsorbingTransaction, + NS_IABSORBINGTRANSACTION_IID) + +#endif // nsIAbsorbingTransaction_h__ + |