layout/printing/nsIPrintProgress.idl

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 /* -*- Mode: C++; tab-width: 4; 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 #include "nsIWebProgressListener.idl"
     7 interface nsIDOMWindow;
     8 interface nsIObserver;
     9 interface nsIPrompt;
    11 [scriptable, uuid(594fd36d-5b1b-412f-a74e-ab72099a5bb2)]
    12 interface nsIPrintProgress: nsIWebProgressListener {
    14   /* Open the progress dialog
    15      you can specify parameters through an xpcom object
    16   */
    17   void openProgressDialog(in nsIDOMWindow parent, 
    18                           in string dialogURL, 
    19                           in nsISupports parameters, 
    20                           in nsIObserver openDialogObserver,
    21                           out boolean notifyOnOpen);
    23   /* Close the progress dialog */
    24   void closeProgressDialog(in boolean forceClose);
    26   /* Register a Web Progress Listener */
    27   void registerListener(in nsIWebProgressListener listener);
    29   /* Unregister a Web Progress Listener */
    30   void unregisterListener(in nsIWebProgressListener listener);
    32   /* This method is called after the dialog that shows the progress has been shown 
    33   */
    34   void doneIniting();
    36   /* Retrieve the prompter, needed to display modal dialog on top of progress dialog */
    37   nsIPrompt getPrompter();
    39   /* Indicated if the user asked to cancel the current process */
    40   attribute boolean processCanceledByUser;
    41 };

mercurial