Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(395)

Side by Side Diff: public/fpdfview.h

Issue 1776313002: Add bitmaps and skp output to Skia port (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments and fix gn Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 // NOTE: External docs refer to this file as "fpdfview.h", so do not rename 7 // NOTE: External docs refer to this file as "fpdfview.h", so do not rename
8 // despite lack of consistency with other public files. 8 // despite lack of consistency with other public files.
9 9
10 #ifndef PUBLIC_FPDFVIEW_H_ 10 #ifndef PUBLIC_FPDFVIEW_H_
(...skipping 19 matching lines...) Expand all
30 typedef void* FPDF_DOCUMENT; 30 typedef void* FPDF_DOCUMENT;
31 typedef void* FPDF_FONT; 31 typedef void* FPDF_FONT;
32 typedef void* FPDF_HMODULE; 32 typedef void* FPDF_HMODULE;
33 typedef void* FPDF_LINK; 33 typedef void* FPDF_LINK;
34 typedef void* FPDF_MODULEMGR; 34 typedef void* FPDF_MODULEMGR;
35 typedef void* FPDF_PAGE; 35 typedef void* FPDF_PAGE;
36 typedef void* FPDF_PAGELINK; 36 typedef void* FPDF_PAGELINK;
37 typedef void* FPDF_PAGEOBJECT; // Page object(text, path, etc) 37 typedef void* FPDF_PAGEOBJECT; // Page object(text, path, etc)
38 typedef void* FPDF_PAGERANGE; 38 typedef void* FPDF_PAGERANGE;
39 typedef void* FPDF_PATH; 39 typedef void* FPDF_PATH;
40 typedef void* FPDF_RECORDER;
40 typedef void* FPDF_SCHHANDLE; 41 typedef void* FPDF_SCHHANDLE;
41 typedef void* FPDF_TEXTPAGE; 42 typedef void* FPDF_TEXTPAGE;
42 43
43 #ifdef PDF_ENABLE_XFA 44 #ifdef PDF_ENABLE_XFA
44 typedef void* FPDF_STRINGHANDLE; 45 typedef void* FPDF_STRINGHANDLE;
45 typedef void* FPDF_WIDGET; 46 typedef void* FPDF_WIDGET;
46 #endif // PDF_ENABLE_XFA 47 #endif // PDF_ENABLE_XFA
47 48
48 // Basic data types 49 // Basic data types
49 typedef int FPDF_BOOL; 50 typedef int FPDF_BOOL;
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 // None. 576 // None.
576 DLLEXPORT void STDCALL FPDF_RenderPageBitmap(FPDF_BITMAP bitmap, 577 DLLEXPORT void STDCALL FPDF_RenderPageBitmap(FPDF_BITMAP bitmap,
577 FPDF_PAGE page, 578 FPDF_PAGE page,
578 int start_x, 579 int start_x,
579 int start_y, 580 int start_y,
580 int size_x, 581 int size_x,
581 int size_y, 582 int size_y,
582 int rotate, 583 int rotate,
583 int flags); 584 int flags);
584 585
586 #ifdef _SKIA_SUPPORT_
587 DLLEXPORT FPDF_RECORDER STDCALL FPDF_RenderPageSkp(FPDF_PAGE page,
588 int size_x,
589 int size_y);
590 #endif
591
585 // Function: FPDF_ClosePage 592 // Function: FPDF_ClosePage
586 // Close a loaded PDF page. 593 // Close a loaded PDF page.
587 // Parameters: 594 // Parameters:
588 // page - Handle to the loaded page. 595 // page - Handle to the loaded page.
589 // Return value: 596 // Return value:
590 // None. 597 // None.
591 DLLEXPORT void STDCALL FPDF_ClosePage(FPDF_PAGE page); 598 DLLEXPORT void STDCALL FPDF_ClosePage(FPDF_PAGE page);
592 599
593 // Function: FPDF_CloseDocument 600 // Function: FPDF_CloseDocument
594 // Close a loaded PDF document. 601 // Close a loaded PDF document.
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 // Function: FPDF_BStr_Clear 945 // Function: FPDF_BStr_Clear
939 // Helper function to clear a byte string. 946 // Helper function to clear a byte string.
940 DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str); 947 DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str);
941 #endif // PDF_ENABLE_XFA 948 #endif // PDF_ENABLE_XFA
942 949
943 #ifdef __cplusplus 950 #ifdef __cplusplus
944 } 951 }
945 #endif 952 #endif
946 953
947 #endif // PUBLIC_FPDFVIEW_H_ 954 #endif // PUBLIC_FPDFVIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698