summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/cfwl_picturebox.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-11-15 12:33:06 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-15 12:33:06 -0800
commit38eaf4b11383e24a00192132b683cc07e38622a6 (patch)
tree169f9d48784035519ddee9191aa412cc817a4531 /xfa/fwl/core/cfwl_picturebox.h
parent05b9a317d66c29f740e4b0e89ea87143a11d61fc (diff)
downloadpdfium-38eaf4b11383e24a00192132b683cc07e38622a6.tar.xz
Cleanup cfwl_* files.
This Cl cleans up the visibility, method usage and return values in the remaining CFWL files. Review-Url: https://codereview.chromium.org/2498163002
Diffstat (limited to 'xfa/fwl/core/cfwl_picturebox.h')
-rw-r--r--xfa/fwl/core/cfwl_picturebox.h36
1 files changed, 1 insertions, 35 deletions
diff --git a/xfa/fwl/core/cfwl_picturebox.h b/xfa/fwl/core/cfwl_picturebox.h
index 861372149e..12a8b632ff 100644
--- a/xfa/fwl/core/cfwl_picturebox.h
+++ b/xfa/fwl/core/cfwl_picturebox.h
@@ -8,51 +8,17 @@
#define XFA_FWL_CORE_CFWL_PICTUREBOX_H_
#include "xfa/fwl/core/cfwl_widget.h"
-#include "xfa/fwl/core/fwl_error.h"
#include "xfa/fwl/core/ifwl_picturebox.h"
class CFWL_PictureBox : public CFWL_Widget, public IFWL_PictureBoxDP {
public:
- CFWL_PictureBox(const IFWL_App*);
+ explicit CFWL_PictureBox(const IFWL_App* pApp);
~CFWL_PictureBox() override;
void Initialize();
// IFWL_DataProvider
void GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) override;
-
- // IFWL_PictureBoxDP
- CFX_DIBitmap* GetPicture(IFWL_Widget* pWidget) override;
- CFX_DIBitmap* GetErrorPicture(IFWL_Widget* pWidget) override;
- CFX_DIBitmap* GetInitialPicture(IFWL_Widget* pWidget) override;
- int32_t GetOpacity(IFWL_Widget* pWidget) override;
- int32_t GetFlipMode(IFWL_Widget* pWidget) override;
- void GetMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) override;
-
- CFX_DIBitmap* GetPicture();
- FWL_Error SetPicture(CFX_DIBitmap* pBitmap);
- FX_FLOAT GetRotation();
- FWL_Error SetRotation(FX_FLOAT fRotation);
- int32_t GetFlipMode();
- FWL_Error SetFlipMode(int32_t iFlipMode);
- int32_t GetOpacity();
- FWL_Error SetOpacity(int32_t iOpacity);
- FWL_Error GetScale(FX_FLOAT& fScaleX, FX_FLOAT& fScaleY);
- FWL_Error SetScale(FX_FLOAT fScaleX, FX_FLOAT fScaleY);
- FWL_Error GetOffset(FX_FLOAT& fx, FX_FLOAT& fy);
- FWL_Error SetOffset(FX_FLOAT fx, FX_FLOAT fy);
-
-
- private:
- CFX_DIBitmap* m_pBitmap;
- int32_t m_iOpacity;
- int32_t m_iFlipMode;
- FX_FLOAT m_fRotation;
- FX_FLOAT m_fScaleX;
- FX_FLOAT m_fScaleY;
- FX_FLOAT m_fOffSetX;
- FX_FLOAT m_fOffSetY;
- CFX_WideString m_wsData;
};
#endif // XFA_FWL_CORE_CFWL_PICTUREBOX_H_