Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 "nsPrintProgressParams.h"
23 #include "nsIWebProgressListener.h"
25 class nsIDOMWindow;
26 class nsIDialogParamBlock;
28 class nsPrintingPromptService: public nsIPrintingPromptService,
29 public nsIWebProgressListener
30 {
32 public:
34 nsPrintingPromptService();
35 virtual ~nsPrintingPromptService();
37 nsresult Init();
39 NS_DECL_NSIPRINTINGPROMPTSERVICE
40 NS_DECL_NSIWEBPROGRESSLISTENER
41 NS_DECL_ISUPPORTS
43 private:
44 nsresult DoDialog(nsIDOMWindow *aParent,
45 nsIDialogParamBlock *aParamBlock,
46 nsIWebBrowserPrint *aWebBrowserPrint,
47 nsIPrintSettings* aPS,
48 const char *aChromeURL);
50 nsCOMPtr<nsIWindowWatcher> mWatcher;
51 nsCOMPtr<nsIPrintProgress> mPrintProgress;
52 nsCOMPtr<nsIWebProgressListener> mWebProgressListener;
53 };
55 #endif