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

Side by Side Diff: xfa/fxfa/app/xfa_ffpushbutton.h

Issue 2071683002: Make code compile with clang_use_chrome_plugin (part V) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: clean up Created 4 years, 6 months 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/fxfa/app/xfa_ffpath.h ('k') | xfa/fxfa/app/xfa_ffsignature.h » ('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_FXFA_APP_XFA_FFPUSHBUTTON_H_ 7 #ifndef XFA_FXFA_APP_XFA_FFPUSHBUTTON_H_
8 #define XFA_FXFA_APP_XFA_FFPUSHBUTTON_H_ 8 #define XFA_FXFA_APP_XFA_FFPUSHBUTTON_H_
9 9
10 #include "xfa/fxfa/app/xfa_fffield.h" 10 #include "xfa/fxfa/app/xfa_fffield.h"
11 11
12 #define XFA_FWL_PSBSTYLEEXT_HiliteNone (0L << 0) 12 #define XFA_FWL_PSBSTYLEEXT_HiliteNone (0L << 0)
13 #define XFA_FWL_PSBSTYLEEXT_HiliteInverted (1L << 0) 13 #define XFA_FWL_PSBSTYLEEXT_HiliteInverted (1L << 0)
14 #define XFA_FWL_PSBSTYLEEXT_HilitePush (2L << 0) 14 #define XFA_FWL_PSBSTYLEEXT_HilitePush (2L << 0)
15 #define XFA_FWL_PSBSTYLEEXT_HiliteOutLine (4L << 0) 15 #define XFA_FWL_PSBSTYLEEXT_HiliteOutLine (4L << 0)
16 16
17 class CXFA_TextProvider; 17 class CXFA_TextProvider;
18 18
19 class CXFA_FFPushButton : public CXFA_FFField { 19 class CXFA_FFPushButton : public CXFA_FFField {
20 public: 20 public:
21 CXFA_FFPushButton(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); 21 CXFA_FFPushButton(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
22 virtual ~CXFA_FFPushButton(); 22 ~CXFA_FFPushButton() override;
23 virtual void RenderWidget(CFX_Graphics* pGS, 23
24 CFX_Matrix* pMatrix = NULL, 24 // CXFA_FFField
25 uint32_t dwStatus = 0, 25 void RenderWidget(CFX_Graphics* pGS,
26 int32_t iRotate = 0); 26 CFX_Matrix* pMatrix = NULL,
27 virtual FX_BOOL LoadWidget(); 27 uint32_t dwStatus = 0,
28 virtual void UnloadWidget(); 28 int32_t iRotate = 0) override;
29 virtual FX_BOOL PerformLayout(); 29 FX_BOOL LoadWidget() override;
30 virtual void UpdateWidgetProperty(); 30 void UnloadWidget() override;
31 virtual void OnProcessMessage(CFWL_Message* pMessage); 31 FX_BOOL PerformLayout() override;
32 virtual void OnProcessEvent(CFWL_Event* pEvent); 32 void UpdateWidgetProperty() override;
33 virtual void OnDrawWidget(CFX_Graphics* pGraphics, 33 void OnProcessMessage(CFWL_Message* pMessage) override;
34 const CFX_Matrix* pMatrix = NULL); 34 void OnProcessEvent(CFWL_Event* pEvent) override;
35 void OnDrawWidget(CFX_Graphics* pGraphics,
36 const CFX_Matrix* pMatrix = NULL) override;
35 37
36 protected: 38 protected:
37 void LoadHighlightCaption(); 39 void LoadHighlightCaption();
38 void LayoutHighlightCaption(); 40 void LayoutHighlightCaption();
39 void RenderHighlightCaption(CFX_Graphics* pGS, CFX_Matrix* pMatrix = NULL); 41 void RenderHighlightCaption(CFX_Graphics* pGS, CFX_Matrix* pMatrix = NULL);
40 FX_FLOAT GetLineWidth(); 42 FX_FLOAT GetLineWidth();
41 FX_ARGB GetLineColor(); 43 FX_ARGB GetLineColor();
42 FX_ARGB GetFillColor(); 44 FX_ARGB GetFillColor();
45
43 CXFA_TextLayout* m_pRolloverTextLayout; 46 CXFA_TextLayout* m_pRolloverTextLayout;
44 CXFA_TextLayout* m_pDownTextLayout; 47 CXFA_TextLayout* m_pDownTextLayout;
45 CXFA_TextProvider* m_pDownProvider; 48 CXFA_TextProvider* m_pDownProvider;
46 CXFA_TextProvider* m_pRollProvider; 49 CXFA_TextProvider* m_pRollProvider;
47 IFWL_WidgetDelegate* m_pOldDelegate; 50 IFWL_WidgetDelegate* m_pOldDelegate;
48 }; 51 };
49 52
50 #endif // XFA_FXFA_APP_XFA_FFPUSHBUTTON_H_ 53 #endif // XFA_FXFA_APP_XFA_FFPUSHBUTTON_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffpath.h ('k') | xfa/fxfa/app/xfa_ffsignature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698