Chromium Code Reviews| Index: pdf/pdfium/pdfium_engine.h |
| diff --git a/pdf/pdfium/pdfium_engine.h b/pdf/pdfium/pdfium_engine.h |
| index cb3d0f4030e8f0aa2cd497dfe4bb10f4559f4d57..7220079dca84b36b58288650a491c0214c7b613e 100644 |
| --- a/pdf/pdfium/pdfium_engine.h |
| +++ b/pdf/pdfium/pdfium_engine.h |
| @@ -25,6 +25,14 @@ |
| #include "third_party/pdfium/fpdfsdk/include/fpdfformfill.h" |
| #include "third_party/pdfium/fpdfsdk/include/fpdfview.h" |
| +#ifdef _TEST_XFA_ |
| +#if defined(WIN32) |
| +#define XFA_TESTFILE(filename) "E:/"#filename |
|
Lei Zhang
2014/11/05 22:45:09
Do we need this as part of the CL?
Bo Xu
2014/11/05 22:51:46
This is used in pdfium_engine.cc. But I am not qui
Lei Zhang
2014/11/05 22:58:04
Let's just move this into the .cc file. It doesn't
Bo Xu
2014/11/06 01:26:20
Done.
|
| +#else |
| +#define XFA_TESTFILE(filename) "/home/"#filename |
| +#endif |
| +#endif |
| + |
| namespace pp { |
| class KeyboardInputEvent; |
| class MouseInputEvent; |
| @@ -472,7 +480,27 @@ class PDFiumEngine : public PDFEngine, |
| FPDF_WIDESTRING url); |
| static void Form_GotoPage(IPDF_JSPLATFORM* param, int page_number); |
| static int Form_Browse(IPDF_JSPLATFORM* param, void* file_path, int length); |
| - |
| +#ifdef _TEST_XFA_ |
| + static void Form_EmailTo(FPDF_FORMFILLINFO* pThis, FPDF_FILEHANDLER* fileHandler, |
| + FPDF_WIDESTRING to, FPDF_WIDESTRING subject, FPDF_WIDESTRING cc, FPDF_WIDESTRING bcc, FPDF_WIDESTRING message); |
|
Lei Zhang
2014/11/05 22:45:09
Please try to stick with the Google C++ style guid
Bo Xu
2014/11/06 01:26:20
Done.
|
| + static void Form_DisplayCaret(FPDF_FORMFILLINFO* pThis, FPDF_PAGE page, FPDF_BOOL bVisible, double left, double top, double right, double bottom); |
| + //static int Form_GetCurDocumentIndex(FPDF_FORMFILLINFO* pThis); |
|
Tom Sepez
2014/11/05 22:44:47
nit: completely remove the // commented out code.
Lei Zhang
2014/11/05 22:45:09
Can we add the commented out bits in a later CL, o
Bo Xu
2014/11/06 01:26:20
Done.
Bo Xu
2014/11/06 01:26:20
We can add them in a later CL when needed. The cal
|
| + //static int Form_GetDocumentCount(FPDF_FORMFILLINFO* pThis); |
| + static void Form_SetCurrentPage(FPDF_FORMFILLINFO* pThis, FPDF_DOCUMENT document, int iCurPage); |
| + static int Form_GetCurrentPageIndex(FPDF_FORMFILLINFO* pThis, FPDF_DOCUMENT document); |
| + static void Form_GetPageViewRect(FPDF_FORMFILLINFO* pThis, FPDF_PAGE page, double* left, double* top, double* right, double* bottom); |
| + static int Form_GetPlatform(FPDF_FORMFILLINFO* pThis, void* platform, int length); |
| + static FPDF_BOOL Form_PopupMenu(FPDF_FORMFILLINFO* pThis, FPDF_PAGE page, FPDF_WIDGET hWidget, int menuFlag, float x, float y); |
| + static FPDF_BOOL Form_PostRequestURL(FPDF_FORMFILLINFO* pThis, FPDF_WIDESTRING wsURL, FPDF_WIDESTRING wsData, FPDF_WIDESTRING wsContentType, FPDF_WIDESTRING wsEncode, FPDF_WIDESTRING wsHeader, FPDF_BSTR* respone); |
| + static FPDF_BOOL Form_PutRequestURL(FPDF_FORMFILLINFO* pThis, FPDF_WIDESTRING wsURL, FPDF_WIDESTRING wsData, FPDF_WIDESTRING wsEncode); |
| + //static FPDF_BOOL Form_ShowFileDialog(FPDF_FORMFILLINFO* pThis, FPDF_WIDESTRING wsTitle, FPDF_WIDESTRING wsFilter, FPDF_BOOL isOpen, FPDF_STRINGHANDLE pathArr); |
| + static void Form_UploadTo(FPDF_FORMFILLINFO* pThis, FPDF_FILEHANDLER* fileHandler, int fileFlag, FPDF_WIDESTRING uploadTo); |
| + static FPDF_LPFILEHANDLER Form_DownloadFromURL(FPDF_FORMFILLINFO* pThis, FPDF_WIDESTRING URL); |
| + //static FPDF_BOOL MyForm_GetFilePath(FPDF_FORMFILLINFO* pThis, FPDF_FILEHANDLER* pFileHandler, void* filePath, int length); |
| + static FPDF_FILEHANDLER* Form_OpenFile(FPDF_FORMFILLINFO* pThis, int fileFlag, FPDF_WIDESTRING wsURL, const char* mode); |
| + static void Form_GotoURL(FPDF_FORMFILLINFO* pThis, FPDF_DOCUMENT document, FPDF_WIDESTRING wsURL); |
| + static int Form_GetLanguage(FPDF_FORMFILLINFO* pThis, void* language, int length); |
| +#endif // _TEST_XFA_ |
| // IFSDK_PAUSE callbacks |
| static FPDF_BOOL Pause_NeedToPauseNow(IFSDK_PAUSE* param); |