/src/mozilla-central/toolkit/components/printingui/ipc/PrintSettingsDialogChild.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
2 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | | |
5 | | #include "PrintSettingsDialogChild.h" |
6 | | |
7 | | using mozilla::Unused; |
8 | | |
9 | | namespace mozilla { |
10 | | namespace embedding { |
11 | | |
12 | | PrintSettingsDialogChild::PrintSettingsDialogChild() |
13 | | : mReturned(false) |
14 | 0 | { |
15 | 0 | MOZ_COUNT_CTOR(PrintSettingsDialogChild); |
16 | 0 | } |
17 | | |
18 | | PrintSettingsDialogChild::~PrintSettingsDialogChild() |
19 | 0 | { |
20 | 0 | MOZ_COUNT_DTOR(PrintSettingsDialogChild); |
21 | 0 | } |
22 | | |
23 | | mozilla::ipc::IPCResult |
24 | | PrintSettingsDialogChild::Recv__delete__(const PrintDataOrNSResult& aData) |
25 | 0 | { |
26 | 0 | if (aData.type() == PrintDataOrNSResult::Tnsresult) { |
27 | 0 | mResult = aData.get_nsresult(); |
28 | 0 | MOZ_ASSERT(NS_FAILED(mResult), "expected a failure result"); |
29 | 0 | } else { |
30 | 0 | mResult = NS_OK; |
31 | 0 | mData = aData.get_PrintData(); |
32 | 0 | } |
33 | 0 | mReturned = true; |
34 | 0 | return IPC_OK(); |
35 | 0 | } |
36 | | |
37 | | } // namespace embedding |
38 | | } // namespace mozilla |