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

Side by Side Diff: public/fpdfview.h

Issue 1130843003: Make (and verify) public/ files compile under C. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Blank line. Created 5 years, 7 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
« no previous file with comments | « public/fpdf_transformpage.h ('k') | samples/pdfium_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 consitency with other public files. 8 // despite lack of consitency with other public files.
9 9
10 #ifndef _FPDFVIEW_H_ 10 #ifndef _FPDFVIEW_H_
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 DLLEXPORT FPDF_DWORD STDCALL FPDF_CountNamedDests(FPDF_DOCUMENT document); 616 DLLEXPORT FPDF_DWORD STDCALL FPDF_CountNamedDests(FPDF_DOCUMENT document);
617 617
618 // Function: FPDF_GetNamedDestByName 618 // Function: FPDF_GetNamedDestByName
619 // get a special dest handle by the index. 619 // get a special dest handle by the index.
620 // Parameters: 620 // Parameters:
621 // document - Handle to the loaded document. 621 // document - Handle to the loaded document.
622 // name - The name of a special named dest . 622 // name - The name of a special named dest .
623 // Return value: 623 // Return value:
624 // The handle of the dest. 624 // The handle of the dest.
625 // 625 //
626 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_ BYTESTRING name); 626 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document, FPDF _BYTESTRING name);
627 627
628 // Function: FPDF_GetNamedDest 628 // Function: FPDF_GetNamedDest
629 // Get the specified named destinations of the PDF document by index. 629 // Get the specified named destinations of the PDF document by index.
630 // Parameters: 630 // Parameters:
631 // document - Handle to a document 631 // document - Handle to a document
632 // index - The index of named destination. 632 // index - The index of named destination.
633 // buffer - The buffer to obtain destination name, used as wchar_t*. 633 // buffer - The buffer to obtain destination name, used as wchar_t*.
634 // buflen [in/out] - Size of the buffer in bytes on i nput, length of the result in bytes on output or -1 if the buffer is too small. 634 // buflen [in/out] - Size of the buffer in bytes on i nput, length of the result in bytes on output or -1 if the buffer is too small.
635 // Return value: 635 // Return value:
636 // The destination handle of a named destination, or NULL i f no named destination corresponding to |index|. 636 // The destination handle of a named destination, or NULL i f no named destination corresponding to |index|.
637 // Comments: 637 // Comments:
638 // Call this function twice to get the name of the named de stination: 638 // Call this function twice to get the name of the named de stination:
639 // 1) First time pass in |buffer| as NULL and get buflen. 639 // 1) First time pass in |buffer| as NULL and get buflen.
640 // 2) Second time pass in allocated |buffer| and buflen to retrieve |buffer|, which should be used as wchar_t*. 640 // 2) Second time pass in allocated |buffer| and buflen to retrieve |buffer|, which should be used as wchar_t*.
641 // If buflen is not sufficiently large, it will be set t o -1 upon return. 641 // If buflen is not sufficiently large, it will be set t o -1 upon return.
642 // 642 //
643 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, int index, void* buffer, long& buflen); 643 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, int index, void* buffer, long* buflen);
644 644
645 645
646 #ifdef __cplusplus 646 #ifdef __cplusplus
647 }; 647 };
648 #endif 648 #endif
649 649
650 #endif // _FPDFVIEW_H_ 650 #endif // _FPDFVIEW_H_
OLDNEW
« no previous file with comments | « public/fpdf_transformpage.h ('k') | samples/pdfium_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698