// Copyright 2018 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef PUBLIC_CPP_FPDF_SCOPERS_H_ #define PUBLIC_CPP_FPDF_SCOPERS_H_ #include #include #include "public/cpp/fpdf_deleters.h" // Versions of FPDF types that clean up the object at scope exit. using ScopedFPDFAnnotation = std::unique_ptr::type, FPDFAnnotationDeleter>; using ScopedFPDFAvail = std::unique_ptr::type, FPDFAvailDeleter>; using ScopedFPDFBitmap = std::unique_ptr::type, FPDFBitmapDeleter>; using ScopedFPDFClipPath = std::unique_ptr::type, FPDFClipPathDeleter>; using ScopedFPDFDocument = std::unique_ptr::type, FPDFDocumentDeleter>; using ScopedFPDFFont = std::unique_ptr::type, FPDFFontDeleter>; using ScopedFPDFFormHandle = std::unique_ptr::type, FPDFFormHandleDeleter>; using ScopedFPDFJavaScriptAction = std::unique_ptr::type, FPDFJavaScriptActionDeleter>; using ScopedFPDFPage = std::unique_ptr::type, FPDFPageDeleter>; using ScopedFPDFPageLink = std::unique_ptr::type, FPDFPageLinkDeleter>; using ScopedFPDFPageObject = std::unique_ptr::type, FPDFPageObjectDeleter>; using ScopedFPDFStructTree = std::unique_ptr::type, FPDFStructTreeDeleter>; using ScopedFPDFTextFind = std::unique_ptr::type, FPDFTextFindDeleter>; using ScopedFPDFTextPage = std::unique_ptr::type, FPDFTextPageDeleter>; #endif // PUBLIC_CPP_FPDF_SCOPERS_H_