michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: #include "nsIDeviceContextSpec.h" michael@0: #include "nsCOMPtr.h" michael@0: michael@0: class nsDeviceContextSpecAndroid MOZ_FINAL : public nsIDeviceContextSpec michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: michael@0: NS_IMETHOD GetSurfaceForPrinter(gfxASurface** surface); michael@0: michael@0: NS_IMETHOD Init(nsIWidget* aWidget, michael@0: nsIPrintSettings* aPS, michael@0: bool aIsPrintPreview); michael@0: NS_IMETHOD BeginDocument(const nsAString& aTitle, michael@0: char16_t* aPrintToFileName, michael@0: int32_t aStartPage, michael@0: int32_t aEndPage); michael@0: NS_IMETHOD EndDocument(); michael@0: NS_IMETHOD BeginPage() { return NS_OK; } michael@0: NS_IMETHOD EndPage() { return NS_OK; } michael@0: michael@0: NS_IMETHOD GetPath (const char** aPath); michael@0: private: michael@0: nsCOMPtr mPrintSettings; michael@0: nsCOMPtr mTempFile; michael@0: };