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

Side by Side Diff: xfa/fwl/core/cfwl_picturebox.h

Issue 2502653002: Cleanup remaining IFWL files for visiblity and usage. (Closed)
Patch Set: Review cleanup Created 4 years, 1 month 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 | « xfa/fwl/core/cfwl_checkbox.cpp ('k') | xfa/fwl/core/cfwl_picturebox.cpp » ('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 #ifndef XFA_FWL_CORE_CFWL_PICTUREBOX_H_ 7 #ifndef XFA_FWL_CORE_CFWL_PICTUREBOX_H_
8 #define XFA_FWL_CORE_CFWL_PICTUREBOX_H_ 8 #define XFA_FWL_CORE_CFWL_PICTUREBOX_H_
9 9
10 #include "xfa/fwl/core/cfwl_widget.h" 10 #include "xfa/fwl/core/cfwl_widget.h"
11 #include "xfa/fwl/core/fwl_error.h" 11 #include "xfa/fwl/core/fwl_error.h"
12 #include "xfa/fwl/core/ifwl_picturebox.h" 12 #include "xfa/fwl/core/ifwl_picturebox.h"
13 13
14 class CFWL_PictureBox : public CFWL_Widget, public IFWL_PictureBoxDP { 14 class CFWL_PictureBox : public CFWL_Widget, public IFWL_PictureBoxDP {
15 public: 15 public:
16 CFWL_PictureBox(const IFWL_App*); 16 CFWL_PictureBox(const IFWL_App*);
17 ~CFWL_PictureBox() override; 17 ~CFWL_PictureBox() override;
18 18
19 void Initialize(); 19 void Initialize();
20 20
21 // IFWL_DataProvider
22 void GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) override;
23
24 // IFWL_PictureBoxDP
25 CFX_DIBitmap* GetPicture(IFWL_Widget* pWidget) override;
26 CFX_DIBitmap* GetErrorPicture(IFWL_Widget* pWidget) override;
27 CFX_DIBitmap* GetInitialPicture(IFWL_Widget* pWidget) override;
28 int32_t GetOpacity(IFWL_Widget* pWidget) override;
29 int32_t GetFlipMode(IFWL_Widget* pWidget) override;
30 void GetMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) override;
31
21 CFX_DIBitmap* GetPicture(); 32 CFX_DIBitmap* GetPicture();
22 FWL_Error SetPicture(CFX_DIBitmap* pBitmap); 33 FWL_Error SetPicture(CFX_DIBitmap* pBitmap);
23 FX_FLOAT GetRotation(); 34 FX_FLOAT GetRotation();
24 FWL_Error SetRotation(FX_FLOAT fRotation); 35 FWL_Error SetRotation(FX_FLOAT fRotation);
25 int32_t GetFlipMode(); 36 int32_t GetFlipMode();
26 FWL_Error SetFlipMode(int32_t iFlipMode); 37 FWL_Error SetFlipMode(int32_t iFlipMode);
27 int32_t GetOpacity(); 38 int32_t GetOpacity();
28 FWL_Error SetOpacity(int32_t iOpacity); 39 FWL_Error SetOpacity(int32_t iOpacity);
29 FWL_Error GetScale(FX_FLOAT& fScaleX, FX_FLOAT& fScaleY); 40 FWL_Error GetScale(FX_FLOAT& fScaleX, FX_FLOAT& fScaleY);
30 FWL_Error SetScale(FX_FLOAT fScaleX, FX_FLOAT fScaleY); 41 FWL_Error SetScale(FX_FLOAT fScaleX, FX_FLOAT fScaleY);
31 FWL_Error GetOffset(FX_FLOAT& fx, FX_FLOAT& fy); 42 FWL_Error GetOffset(FX_FLOAT& fx, FX_FLOAT& fy);
32 FWL_Error SetOffset(FX_FLOAT fx, FX_FLOAT fy); 43 FWL_Error SetOffset(FX_FLOAT fx, FX_FLOAT fy);
33 44
34 // IFWL_DataProvider
35 void GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) override;
36
37 // IFWL_PictureBoxDP
38 CFX_DIBitmap* GetPicture(IFWL_Widget* pWidget) override;
39 CFX_DIBitmap* GetErrorPicture(IFWL_Widget* pWidget) override;
40 CFX_DIBitmap* GetInitialPicture(IFWL_Widget* pWidget) override;
41 int32_t GetOpacity(IFWL_Widget* pWidget) override;
42 int32_t GetFlipMode(IFWL_Widget* pWidget) override;
43 FWL_Error GetMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) override;
44 45
45 private: 46 private:
46 CFX_DIBitmap* m_pBitmap; 47 CFX_DIBitmap* m_pBitmap;
47 int32_t m_iOpacity; 48 int32_t m_iOpacity;
48 int32_t m_iFlipMode; 49 int32_t m_iFlipMode;
49 FX_FLOAT m_fRotation; 50 FX_FLOAT m_fRotation;
50 FX_FLOAT m_fScaleX; 51 FX_FLOAT m_fScaleX;
51 FX_FLOAT m_fScaleY; 52 FX_FLOAT m_fScaleY;
52 FX_FLOAT m_fOffSetX; 53 FX_FLOAT m_fOffSetX;
53 FX_FLOAT m_fOffSetY; 54 FX_FLOAT m_fOffSetY;
54 CFX_WideString m_wsData; 55 CFX_WideString m_wsData;
55 }; 56 };
56 57
57 #endif // XFA_FWL_CORE_CFWL_PICTUREBOX_H_ 58 #endif // XFA_FWL_CORE_CFWL_PICTUREBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_checkbox.cpp ('k') | xfa/fwl/core/cfwl_picturebox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698