mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 18:55:30 +00:00
Bug 1399787 - Part 2.c. Rename DrawPageToFile to SavePageToFile. r=jwatt
This is to make the naming more consistent with SavePageToBuffer. MozReview-Commit-ID: 5miYvv9yFFR --HG-- extra : rebase_source : 07d1f72b33f962622a843355da6d3067a286483a
This commit is contained in:
parent
2f777dcbae
commit
be1ec835a8
@ -183,7 +183,7 @@ PDFViaEMFPrintHelper::DrawPage(HDC aPrinterDC, unsigned int aPageIndex,
|
||||
}
|
||||
|
||||
bool
|
||||
PDFViaEMFPrintHelper::DrawPageToFile(const wchar_t* aFilePath,
|
||||
PDFViaEMFPrintHelper::SavePageToFile(const wchar_t* aFilePath,
|
||||
unsigned int aPageIndex,
|
||||
int aPageWidth, int aPageHeight)
|
||||
{
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
int aPageWidth, int aPageHeight);
|
||||
|
||||
/** Convert a specified PDF page to EMF and save it to file. */
|
||||
bool DrawPageToFile(const wchar_t* aFilePath, unsigned int aPageIndex,
|
||||
bool SavePageToFile(const wchar_t* aFilePath, unsigned int aPageIndex,
|
||||
int aPageWidth, int aPageHeight);
|
||||
|
||||
/** Create a share memory and serialize the EMF content into it. */
|
||||
|
@ -152,7 +152,7 @@ TEST(TestEMFConversion, CompareEMFWithReference)
|
||||
ASSERT_TRUE(NS_SUCCEEDED(GetFilePathViaSpecialDirectory(NS_OS_TEMP_DIR,
|
||||
"gtest.emf",
|
||||
emfPath)));
|
||||
ASSERT_TRUE(PDFHelper->DrawPageToFile(emfPath.get(), 0,
|
||||
ASSERT_TRUE(PDFHelper->SavePageToFile(emfPath.get(), 0,
|
||||
pageWidth, pageHeight));
|
||||
PDFHelper->CloseDocument();
|
||||
#ifdef _WIN64
|
||||
@ -166,7 +166,7 @@ TEST(TestEMFConversion, CompareEMFWithReference)
|
||||
"gtestRef.emf",
|
||||
emfPathRef)));
|
||||
|
||||
ASSERT_TRUE(ExtHelper->DrawPageToFile(emfPathRef.get(), 0,
|
||||
ASSERT_TRUE(ExtHelper->SavePageToFile(emfPathRef.get(), 0,
|
||||
pageWidth, pageHeight));
|
||||
ExtHelper->CloseDocument();
|
||||
|
||||
@ -194,8 +194,8 @@ TEST(TestEMFConversion, TestInsufficientWidthAndHeight)
|
||||
"gtest.emf",
|
||||
emfPath)));
|
||||
|
||||
ASSERT_FALSE(PDFHelper->DrawPageToFile(emfPath.get(), 0, 0, 0));
|
||||
ASSERT_FALSE(PDFHelper->PageToFile(emfPath.get(), 0, 100, -1));
|
||||
ASSERT_FALSE(PDFHelper->SavePageToFile(emfPath.get(), 0, 0, 0));
|
||||
ASSERT_FALSE(PDFHelper->SavePageToFile(emfPath.get(), 0, 100, -1));
|
||||
|
||||
PDFHelper->CloseDocument();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user