embedding/components/printingui/src/mac/nsPrintProgress.h

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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 __nsPrintProgress_h
     7 #define __nsPrintProgress_h
     9 #include "nsIPrintProgress.h"
    11 #include "nsCOMArray.h"
    12 #include "nsCOMPtr.h"
    13 #include "nsIDOMWindow.h"
    14 #include "nsIPrintStatusFeedback.h"
    15 #include "nsIObserver.h"
    16 #include "nsString.h"
    18 class nsPrintProgress : public nsIPrintProgress, public nsIPrintStatusFeedback
    19 {
    20 public: 
    21   NS_DECL_THREADSAFE_ISUPPORTS
    22   NS_DECL_NSIPRINTPROGRESS
    23   NS_DECL_NSIWEBPROGRESSLISTENER
    24   NS_DECL_NSIPRINTSTATUSFEEDBACK
    26 	nsPrintProgress();
    27 	virtual ~nsPrintProgress();
    29 private:
    30   nsresult ReleaseListeners();
    32   bool                              m_closeProgress;
    33   bool                              m_processCanceled;
    34   nsString                          m_pendingStatus;
    35   int32_t                           m_pendingStateFlags;
    36   nsresult                          m_pendingStateValue;
    37   nsCOMPtr<nsIDOMWindow>            m_dialog;
    38   nsCOMArray<nsIWebProgressListener>        m_listenerList;
    39   nsCOMPtr<nsIObserver>             m_observer;
    40 };
    42 #endif

mercurial