1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/embedding/components/printingui/src/mac/nsPrintProgress.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,42 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; 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 + 1.9 +#ifndef __nsPrintProgress_h 1.10 +#define __nsPrintProgress_h 1.11 + 1.12 +#include "nsIPrintProgress.h" 1.13 + 1.14 +#include "nsCOMArray.h" 1.15 +#include "nsCOMPtr.h" 1.16 +#include "nsIDOMWindow.h" 1.17 +#include "nsIPrintStatusFeedback.h" 1.18 +#include "nsIObserver.h" 1.19 +#include "nsString.h" 1.20 + 1.21 +class nsPrintProgress : public nsIPrintProgress, public nsIPrintStatusFeedback 1.22 +{ 1.23 +public: 1.24 + NS_DECL_THREADSAFE_ISUPPORTS 1.25 + NS_DECL_NSIPRINTPROGRESS 1.26 + NS_DECL_NSIWEBPROGRESSLISTENER 1.27 + NS_DECL_NSIPRINTSTATUSFEEDBACK 1.28 + 1.29 + nsPrintProgress(); 1.30 + virtual ~nsPrintProgress(); 1.31 + 1.32 +private: 1.33 + nsresult ReleaseListeners(); 1.34 + 1.35 + bool m_closeProgress; 1.36 + bool m_processCanceled; 1.37 + nsString m_pendingStatus; 1.38 + int32_t m_pendingStateFlags; 1.39 + nsresult m_pendingStateValue; 1.40 + nsCOMPtr<nsIDOMWindow> m_dialog; 1.41 + nsCOMArray<nsIWebProgressListener> m_listenerList; 1.42 + nsCOMPtr<nsIObserver> m_observer; 1.43 +}; 1.44 + 1.45 +#endif