Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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/. */
6 #ifndef __nsPrintingPromptService_h
7 #define __nsPrintingPromptService_h
9 // {E042570C-62DE-4bb6-A6E0-798E3C07B4DF}
10 #define NS_PRINTINGPROMPTSERVICE_CID \
11 {0xe042570c, 0x62de, 0x4bb6, { 0xa6, 0xe0, 0x79, 0x8e, 0x3c, 0x7, 0xb4, 0xdf}}
12 #define NS_PRINTINGPROMPTSERVICE_CONTRACTID \
13 "@mozilla.org/embedcomp/printingprompt-service;1"
15 #include "nsCOMPtr.h"
16 #include "nsIPrintingPromptService.h"
17 #include "nsPIPromptService.h"
18 #include "nsIWindowWatcher.h"
20 // Printing Progress Includes
21 #include "nsPrintProgress.h"
22 #include "nsIWebProgressListener.h"
25 class nsIDOMWindow;
26 class nsIDialogParamBlock;
28 class nsPrintingPromptService: public nsIPrintingPromptService,
29 public nsIWebProgressListener
30 {
31 public:
32 nsPrintingPromptService();
33 virtual ~nsPrintingPromptService();
35 nsresult Init();
37 NS_DECL_NSIPRINTINGPROMPTSERVICE
38 NS_DECL_NSIWEBPROGRESSLISTENER
39 NS_DECL_ISUPPORTS
41 private:
42 nsCOMPtr<nsIPrintProgress> mPrintProgress;
43 };
45 #endif