widget/android/nsDeviceContextAndroid.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/widget/android/nsDeviceContextAndroid.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     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 +#include "nsIDeviceContextSpec.h"
     1.9 +#include "nsCOMPtr.h"
    1.10 +
    1.11 +class nsDeviceContextSpecAndroid MOZ_FINAL : public nsIDeviceContextSpec
    1.12 +{
    1.13 +public:
    1.14 +    NS_DECL_ISUPPORTS
    1.15 +
    1.16 +    NS_IMETHOD GetSurfaceForPrinter(gfxASurface** surface);
    1.17 +
    1.18 +    NS_IMETHOD Init(nsIWidget* aWidget,
    1.19 +                    nsIPrintSettings* aPS,
    1.20 +                    bool aIsPrintPreview);
    1.21 +    NS_IMETHOD BeginDocument(const nsAString& aTitle,
    1.22 +                             char16_t* aPrintToFileName,
    1.23 +                             int32_t aStartPage,
    1.24 +                             int32_t aEndPage);
    1.25 +    NS_IMETHOD EndDocument();
    1.26 +    NS_IMETHOD BeginPage() { return NS_OK; }
    1.27 +    NS_IMETHOD EndPage() { return NS_OK; }
    1.28 +
    1.29 +    NS_IMETHOD GetPath (const char** aPath);
    1.30 +private:
    1.31 +    nsCOMPtr<nsIPrintSettings> mPrintSettings;
    1.32 +    nsCOMPtr<nsIFile> mTempFile;
    1.33 +};

mercurial