1 // Copyright 2014 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef XFA_FXFA_CXFA_FFIMAGE_H_ 8 #define XFA_FXFA_CXFA_FFIMAGE_H_ 9 10 #include "v8/include/cppgc/prefinalizer.h" 11 #include "xfa/fxfa/cxfa_ffwidget.h" 12 13 class CXFA_FFImage final : public CXFA_FFWidget { 14 CPPGC_USING_PRE_FINALIZER(CXFA_FFImage, PreFinalize); 15 16 public: 17 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED; 18 ~CXFA_FFImage() override; 19 20 void PreFinalize(); 21 22 // CXFA_FFWidget: 23 void RenderWidget(CFGAS_GEGraphics* pGS, 24 const CFX_Matrix& matrix, 25 HighlightOption highlight) override; 26 bool IsLoaded() override; 27 bool LoadWidget() override; 28 29 private: 30 explicit CXFA_FFImage(CXFA_Node* pNode); 31 }; 32 33 #endif // XFA_FXFA_CXFA_FFIMAGE_H_ 34