1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/printing/nsIPrintProgress.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 +#include "nsIWebProgressListener.idl" 1.9 + 1.10 +interface nsIDOMWindow; 1.11 +interface nsIObserver; 1.12 +interface nsIPrompt; 1.13 + 1.14 +[scriptable, uuid(594fd36d-5b1b-412f-a74e-ab72099a5bb2)] 1.15 +interface nsIPrintProgress: nsIWebProgressListener { 1.16 + 1.17 + /* Open the progress dialog 1.18 + you can specify parameters through an xpcom object 1.19 + */ 1.20 + void openProgressDialog(in nsIDOMWindow parent, 1.21 + in string dialogURL, 1.22 + in nsISupports parameters, 1.23 + in nsIObserver openDialogObserver, 1.24 + out boolean notifyOnOpen); 1.25 + 1.26 + /* Close the progress dialog */ 1.27 + void closeProgressDialog(in boolean forceClose); 1.28 + 1.29 + /* Register a Web Progress Listener */ 1.30 + void registerListener(in nsIWebProgressListener listener); 1.31 + 1.32 + /* Unregister a Web Progress Listener */ 1.33 + void unregisterListener(in nsIWebProgressListener listener); 1.34 + 1.35 + /* This method is called after the dialog that shows the progress has been shown 1.36 + */ 1.37 + void doneIniting(); 1.38 + 1.39 + /* Retrieve the prompter, needed to display modal dialog on top of progress dialog */ 1.40 + nsIPrompt getPrompter(); 1.41 + 1.42 + /* Indicated if the user asked to cancel the current process */ 1.43 + attribute boolean processCanceledByUser; 1.44 +}; 1.45 + 1.46 +