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

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

Issue 2488963005: Continue IFWL widget cleanup. (Closed)
Patch Set: Rebase to master 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
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"
(...skipping 14 matching lines...) Expand all
25 int32_t GetFlipMode(); 25 int32_t GetFlipMode();
26 FWL_Error SetFlipMode(int32_t iFlipMode); 26 FWL_Error SetFlipMode(int32_t iFlipMode);
27 int32_t GetOpacity(); 27 int32_t GetOpacity();
28 FWL_Error SetOpacity(int32_t iOpacity); 28 FWL_Error SetOpacity(int32_t iOpacity);
29 FWL_Error GetScale(FX_FLOAT& fScaleX, FX_FLOAT& fScaleY); 29 FWL_Error GetScale(FX_FLOAT& fScaleX, FX_FLOAT& fScaleY);
30 FWL_Error SetScale(FX_FLOAT fScaleX, FX_FLOAT fScaleY); 30 FWL_Error SetScale(FX_FLOAT fScaleX, FX_FLOAT fScaleY);
31 FWL_Error GetOffset(FX_FLOAT& fx, FX_FLOAT& fy); 31 FWL_Error GetOffset(FX_FLOAT& fx, FX_FLOAT& fy);
32 FWL_Error SetOffset(FX_FLOAT fx, FX_FLOAT fy); 32 FWL_Error SetOffset(FX_FLOAT fx, FX_FLOAT fy);
33 33
34 // IFWL_DataProvider 34 // IFWL_DataProvider
35 FWL_Error GetCaption(IFWL_Widget* pWidget, 35 void GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) override;
36 CFX_WideString& wsCaption) override;
37 36
38 // IFWL_PictureBoxDP 37 // IFWL_PictureBoxDP
39 CFX_DIBitmap* GetPicture(IFWL_Widget* pWidget) override; 38 CFX_DIBitmap* GetPicture(IFWL_Widget* pWidget) override;
40 CFX_DIBitmap* GetErrorPicture(IFWL_Widget* pWidget) override; 39 CFX_DIBitmap* GetErrorPicture(IFWL_Widget* pWidget) override;
41 CFX_DIBitmap* GetInitialPicture(IFWL_Widget* pWidget) override; 40 CFX_DIBitmap* GetInitialPicture(IFWL_Widget* pWidget) override;
42 int32_t GetOpacity(IFWL_Widget* pWidget) override; 41 int32_t GetOpacity(IFWL_Widget* pWidget) override;
43 int32_t GetFlipMode(IFWL_Widget* pWidget) override; 42 int32_t GetFlipMode(IFWL_Widget* pWidget) override;
44 FWL_Error GetMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) override; 43 FWL_Error GetMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) override;
45 44
46 private: 45 private:
47 CFX_DIBitmap* m_pBitmap; 46 CFX_DIBitmap* m_pBitmap;
48 int32_t m_iOpacity; 47 int32_t m_iOpacity;
49 int32_t m_iFlipMode; 48 int32_t m_iFlipMode;
50 FX_FLOAT m_fRotation; 49 FX_FLOAT m_fRotation;
51 FX_FLOAT m_fScaleX; 50 FX_FLOAT m_fScaleX;
52 FX_FLOAT m_fScaleY; 51 FX_FLOAT m_fScaleY;
53 FX_FLOAT m_fOffSetX; 52 FX_FLOAT m_fOffSetX;
54 FX_FLOAT m_fOffSetY; 53 FX_FLOAT m_fOffSetY;
55 CFX_WideString m_wsData; 54 CFX_WideString m_wsData;
56 }; 55 };
57 56
58 #endif // XFA_FWL_CORE_CFWL_PICTUREBOX_H_ 57 #endif // XFA_FWL_CORE_CFWL_PICTUREBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698