PrintProgressDialogChild.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. #ifndef mozilla_embedding_PrintProgressDialogChild_h
  5. #define mozilla_embedding_PrintProgressDialogChild_h
  6. #include "mozilla/embedding/PPrintProgressDialogChild.h"
  7. #include "nsIPrintProgressParams.h"
  8. #include "nsIWebProgressListener.h"
  9. class nsIObserver;
  10. namespace mozilla {
  11. namespace embedding {
  12. class PrintProgressDialogChild final : public PPrintProgressDialogChild,
  13. public nsIWebProgressListener,
  14. public nsIPrintProgressParams
  15. {
  16. NS_DECL_ISUPPORTS
  17. NS_DECL_NSIWEBPROGRESSLISTENER
  18. NS_DECL_NSIPRINTPROGRESSPARAMS
  19. public:
  20. MOZ_IMPLICIT PrintProgressDialogChild(nsIObserver* aOpenObserver);
  21. virtual bool RecvDialogOpened() override;
  22. private:
  23. virtual ~PrintProgressDialogChild();
  24. nsCOMPtr<nsIObserver> mOpenObserver;
  25. nsString mDocTitle;
  26. nsString mDocURL;
  27. };
  28. } // namespace embedding
  29. } // namespace mozilla
  30. #endif