2010-11-17 02:33:56 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2010-11-17 02:33:56 +03:00
|
|
|
#include "nsIDeviceContextSpec.h"
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
class nsDeviceContextSpecAndroid final : public nsIDeviceContextSpec
|
2010-11-17 02:33:56 +03:00
|
|
|
{
|
2014-08-26 23:07:59 +04:00
|
|
|
private:
|
|
|
|
~nsDeviceContextSpecAndroid() {}
|
|
|
|
|
2010-11-17 02:33:56 +03:00
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
2013-05-30 22:26:02 +04:00
|
|
|
|
2010-11-17 02:33:56 +03:00
|
|
|
NS_IMETHOD GetSurfaceForPrinter(gfxASurface** surface);
|
|
|
|
|
|
|
|
NS_IMETHOD Init(nsIWidget* aWidget,
|
|
|
|
nsIPrintSettings* aPS,
|
2011-09-29 10:19:26 +04:00
|
|
|
bool aIsPrintPreview);
|
2013-07-24 15:48:37 +04:00
|
|
|
NS_IMETHOD BeginDocument(const nsAString& aTitle,
|
2014-01-04 19:02:17 +04:00
|
|
|
char16_t* aPrintToFileName,
|
2012-08-22 19:56:38 +04:00
|
|
|
int32_t aStartPage,
|
|
|
|
int32_t aEndPage);
|
2010-11-17 02:33:56 +03:00
|
|
|
NS_IMETHOD EndDocument();
|
|
|
|
NS_IMETHOD BeginPage() { return NS_OK; }
|
|
|
|
NS_IMETHOD EndPage() { return NS_OK; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
nsCOMPtr<nsIPrintSettings> mPrintSettings;
|
|
|
|
nsCOMPtr<nsIFile> mTempFile;
|
|
|
|
};
|