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

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

Issue 2466273003: Change IFWL_Widget to store a single delegate. (Closed)
Patch Set: Fix Mac 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/fxfa/app/xfa_ffimageedit.cpp ('k') | xfa/fxfa/app/xfa_ffpushbutton.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_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"
(...skipping 11 matching lines...) Expand all
22 ~CXFA_FFPushButton() override; 22 ~CXFA_FFPushButton() override;
23 23
24 // CXFA_FFField 24 // CXFA_FFField
25 void RenderWidget(CFX_Graphics* pGS, 25 void RenderWidget(CFX_Graphics* pGS,
26 CFX_Matrix* pMatrix, 26 CFX_Matrix* pMatrix,
27 uint32_t dwStatus) override; 27 uint32_t dwStatus) override;
28 FX_BOOL LoadWidget() override; 28 FX_BOOL LoadWidget() override;
29 void UnloadWidget() override; 29 void UnloadWidget() override;
30 FX_BOOL PerformLayout() override; 30 FX_BOOL PerformLayout() override;
31 void UpdateWidgetProperty() override; 31 void UpdateWidgetProperty() override;
32 void OnProcessMessage(CFWL_Message* pMessage) override; 32
33 void OnProcessEvent(CFWL_Event* pEvent) override; 33 FX_FLOAT GetLineWidth();
34 void OnDrawWidget(CFX_Graphics* pGraphics,
35 const CFX_Matrix* pMatrix = nullptr) override;
36 34
37 protected: 35 protected:
38 void LoadHighlightCaption(); 36 void LoadHighlightCaption();
39 void LayoutHighlightCaption(); 37 void LayoutHighlightCaption();
40 void RenderHighlightCaption(CFX_Graphics* pGS, CFX_Matrix* pMatrix = nullptr); 38 void RenderHighlightCaption(CFX_Graphics* pGS, CFX_Matrix* pMatrix = nullptr);
41 FX_FLOAT GetLineWidth();
42 FX_ARGB GetLineColor(); 39 FX_ARGB GetLineColor();
43 FX_ARGB GetFillColor(); 40 FX_ARGB GetFillColor();
44 41
45 CXFA_TextLayout* m_pRolloverTextLayout; 42 CXFA_TextLayout* m_pRolloverTextLayout;
46 CXFA_TextLayout* m_pDownTextLayout; 43 CXFA_TextLayout* m_pDownTextLayout;
47 CXFA_TextProvider* m_pDownProvider; 44 CXFA_TextProvider* m_pDownProvider;
48 CXFA_TextProvider* m_pRollProvider; 45 CXFA_TextProvider* m_pRollProvider;
49 IFWL_WidgetDelegate* m_pOldDelegate;
50 }; 46 };
51 47
52 #endif // XFA_FXFA_APP_XFA_FFPUSHBUTTON_H_ 48 #endif // XFA_FXFA_APP_XFA_FFPUSHBUTTON_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffimageedit.cpp ('k') | xfa/fxfa/app/xfa_ffpushbutton.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698