/src/mozilla-central/editor/libeditor/EditTransactionBase.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
3 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
5 | | |
6 | | #include "mozilla/EditTransactionBase.h" |
7 | | #include "nsError.h" |
8 | | #include "nsISupportsBase.h" |
9 | | |
10 | | namespace mozilla { |
11 | | |
12 | | NS_IMPL_CYCLE_COLLECTION_CLASS(EditTransactionBase) |
13 | | |
14 | | NS_IMPL_CYCLE_COLLECTION_UNLINK_0(EditTransactionBase) |
15 | 0 | NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(EditTransactionBase) |
16 | 0 | // We don't have anything to traverse, but some of our subclasses do. |
17 | 0 | NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END |
18 | | |
19 | 0 | NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(EditTransactionBase) |
20 | 0 | NS_INTERFACE_MAP_ENTRY(nsITransaction) |
21 | 0 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsITransaction) |
22 | 0 | NS_INTERFACE_MAP_END |
23 | | |
24 | | NS_IMPL_CYCLE_COLLECTING_ADDREF(EditTransactionBase) |
25 | | NS_IMPL_CYCLE_COLLECTING_RELEASE(EditTransactionBase) |
26 | | |
27 | | EditTransactionBase::~EditTransactionBase() |
28 | 0 | { |
29 | 0 | } |
30 | | |
31 | | NS_IMETHODIMP |
32 | | EditTransactionBase::RedoTransaction() |
33 | 0 | { |
34 | 0 | return DoTransaction(); |
35 | 0 | } |
36 | | |
37 | | NS_IMETHODIMP |
38 | | EditTransactionBase::GetIsTransient(bool* aIsTransient) |
39 | 0 | { |
40 | 0 | *aIsTransient = false; |
41 | 0 |
|
42 | 0 | return NS_OK; |
43 | 0 | } |
44 | | |
45 | | NS_IMETHODIMP |
46 | | EditTransactionBase::Merge(nsITransaction* aTransaction, bool* aDidMerge) |
47 | 0 | { |
48 | 0 | *aDidMerge = false; |
49 | 0 |
|
50 | 0 | return NS_OK; |
51 | 0 | } |
52 | | |
53 | | } // namespace mozilla |