2010-11-16 15:33:56 -08:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07: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-16 15:33:56 -08:00
|
|
|
#include "nsIDeviceContextSpec.h"
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
|
2013-05-30 11:26:02 -07:00
|
|
|
class nsDeviceContextSpecAndroid MOZ_FINAL : public nsIDeviceContextSpec
|
2010-11-16 15:33:56 -08:00
|
|
|
{
|
2014-08-26 12:07:59 -07:00
|
|
|
private:
|
|
|
|
~nsDeviceContextSpecAndroid() {}
|
|
|
|
|
2010-11-16 15:33:56 -08:00
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
2013-05-30 11:26:02 -07:00
|
|
|
|
2010-11-16 15:33:56 -08:00
|
|
|
NS_IMETHOD GetSurfaceForPrinter(gfxASurface** surface);
|
|
|
|
|
|
|
|
NS_IMETHOD Init(nsIWidget* aWidget,
|
|
|
|
nsIPrintSettings* aPS,
|
2011-09-28 23:19:26 -07:00
|
|
|
bool aIsPrintPreview);
|
2013-07-24 04:48:37 -07:00
|
|
|
NS_IMETHOD BeginDocument(const nsAString& aTitle,
|
2014-01-04 07:02:17 -08:00
|
|
|
char16_t* aPrintToFileName,
|
2012-08-22 08:56:38 -07:00
|
|
|
int32_t aStartPage,
|
|
|
|
int32_t aEndPage);
|
2010-11-16 15:33:56 -08:00
|
|
|
NS_IMETHOD EndDocument();
|
|
|
|
NS_IMETHOD BeginPage() { return NS_OK; }
|
|
|
|
NS_IMETHOD EndPage() { return NS_OK; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
nsCOMPtr<nsIPrintSettings> mPrintSettings;
|
|
|
|
nsCOMPtr<nsIFile> mTempFile;
|
|
|
|
};
|