OLD | NEW |
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 #ifndef XFA_FWL_BASEWIDGET_IFWL_PICTUREBOX_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_PICTUREBOX_H_ |
8 #define XFA_FWL_BASEWIDGET_IFWL_PICTUREBOX_H_ | 8 #define XFA_FWL_BASEWIDGET_IFWL_PICTUREBOX_H_ |
9 | 9 |
10 #include "xfa/fwl/core/fwl_widgetimp.h" | 10 #include "xfa/fwl/core/fwl_widgetimp.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 class CFX_DIBitmap; | 33 class CFX_DIBitmap; |
34 | 34 |
35 class IFWL_PictureBoxDP : public IFWL_DataProvider { | 35 class IFWL_PictureBoxDP : public IFWL_DataProvider { |
36 public: | 36 public: |
37 virtual CFX_DIBitmap* GetPicture(IFWL_Widget* pWidget) = 0; | 37 virtual CFX_DIBitmap* GetPicture(IFWL_Widget* pWidget) = 0; |
38 virtual CFX_DIBitmap* GetErrorPicture(IFWL_Widget* pWidget) = 0; | 38 virtual CFX_DIBitmap* GetErrorPicture(IFWL_Widget* pWidget) = 0; |
39 virtual CFX_DIBitmap* GetInitialPicture(IFWL_Widget* pWidget) = 0; | 39 virtual CFX_DIBitmap* GetInitialPicture(IFWL_Widget* pWidget) = 0; |
40 virtual int32_t GetOpacity(IFWL_Widget* pWidget) = 0; | 40 virtual int32_t GetOpacity(IFWL_Widget* pWidget) = 0; |
41 virtual int32_t GetFlipMode(IFWL_Widget* pWidget) = 0; | 41 virtual int32_t GetFlipMode(IFWL_Widget* pWidget) = 0; |
42 virtual FWL_ERR GetMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) = 0; | 42 virtual FWL_Error GetMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) = 0; |
43 }; | 43 }; |
44 | 44 |
45 class IFWL_PictureBox : public IFWL_Widget { | 45 class IFWL_PictureBox : public IFWL_Widget { |
46 public: | 46 public: |
47 static IFWL_PictureBox* Create(const CFWL_WidgetImpProperties& properties, | 47 static IFWL_PictureBox* Create(const CFWL_WidgetImpProperties& properties, |
48 IFWL_Widget* pOuter); | 48 IFWL_Widget* pOuter); |
49 | 49 |
50 protected: | 50 protected: |
51 IFWL_PictureBox(); | 51 IFWL_PictureBox(); |
52 }; | 52 }; |
53 | 53 |
54 #endif // XFA_FWL_BASEWIDGET_IFWL_PICTUREBOX_H_ | 54 #endif // XFA_FWL_BASEWIDGET_IFWL_PICTUREBOX_H_ |
OLD | NEW |