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

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

Issue 1943413002: Convert FWL_ERR into an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@bcdattribute
Patch Set: Created 4 years, 7 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_ffcheckbutton.cpp ('k') | xfa/fxfa/app/xfa_ffchoicelist.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_FFCHOICELIST_H_ 7 #ifndef XFA_FXFA_APP_XFA_FFCHOICELIST_H_
8 #define XFA_FXFA_APP_XFA_FFCHOICELIST_H_ 8 #define XFA_FXFA_APP_XFA_FFCHOICELIST_H_
9 9
10 #include "xfa/fxfa/app/xfa_fffield.h" 10 #include "xfa/fxfa/app/xfa_fffield.h"
(...skipping 10 matching lines...) Expand all
21 virtual FX_BOOL CommitData(); 21 virtual FX_BOOL CommitData();
22 virtual FX_BOOL UpdateFWLData(); 22 virtual FX_BOOL UpdateFWLData();
23 virtual FX_BOOL IsDataChanged(); 23 virtual FX_BOOL IsDataChanged();
24 uint32_t GetAlignment(); 24 uint32_t GetAlignment();
25 25
26 public: 26 public:
27 void OnSelectChanged(IFWL_Widget* pWidget, const CFX_Int32Array& arrSels); 27 void OnSelectChanged(IFWL_Widget* pWidget, const CFX_Int32Array& arrSels);
28 void SetItemState(int32_t nIndex, FX_BOOL bSelected); 28 void SetItemState(int32_t nIndex, FX_BOOL bSelected);
29 void InsertItem(const CFX_WideStringC& wsLabel, int32_t nIndex = -1); 29 void InsertItem(const CFX_WideStringC& wsLabel, int32_t nIndex = -1);
30 void DeleteItem(int32_t nIndex); 30 void DeleteItem(int32_t nIndex);
31 virtual int32_t OnProcessMessage(CFWL_Message* pMessage); 31 virtual void OnProcessMessage(CFWL_Message* pMessage);
32 virtual FWL_ERR OnProcessEvent(CFWL_Event* pEvent); 32 virtual void OnProcessEvent(CFWL_Event* pEvent);
33 virtual FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, 33 virtual void OnDrawWidget(CFX_Graphics* pGraphics,
34 const CFX_Matrix* pMatrix = NULL); 34 const CFX_Matrix* pMatrix = NULL);
35 35
36 protected: 36 protected:
37 IFWL_WidgetDelegate* m_pOldDelegate; 37 IFWL_WidgetDelegate* m_pOldDelegate;
38 }; 38 };
39 class CXFA_FFComboBox : public CXFA_FFField { 39 class CXFA_FFComboBox : public CXFA_FFField {
40 public: 40 public:
41 CXFA_FFComboBox(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); 41 CXFA_FFComboBox(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
42 virtual ~CXFA_FFComboBox(); 42 virtual ~CXFA_FFComboBox();
43 virtual FX_BOOL GetBBox(CFX_RectF& rtBox, 43 virtual FX_BOOL GetBBox(CFX_RectF& rtBox,
44 uint32_t dwStatus, 44 uint32_t dwStatus,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 public: 77 public:
78 void OnTextChanged(IFWL_Widget* pWidget, const CFX_WideString& wsChanged); 78 void OnTextChanged(IFWL_Widget* pWidget, const CFX_WideString& wsChanged);
79 void OnSelectChanged(IFWL_Widget* pWidget, 79 void OnSelectChanged(IFWL_Widget* pWidget,
80 const CFX_Int32Array& arrSels, 80 const CFX_Int32Array& arrSels,
81 FX_BOOL bLButtonUp); 81 FX_BOOL bLButtonUp);
82 void OnPreOpen(IFWL_Widget* pWidget); 82 void OnPreOpen(IFWL_Widget* pWidget);
83 void OnPostOpen(IFWL_Widget* pWidget); 83 void OnPostOpen(IFWL_Widget* pWidget);
84 void SetItemState(int32_t nIndex, FX_BOOL bSelected); 84 void SetItemState(int32_t nIndex, FX_BOOL bSelected);
85 void InsertItem(const CFX_WideStringC& wsLabel, int32_t nIndex = -1); 85 void InsertItem(const CFX_WideStringC& wsLabel, int32_t nIndex = -1);
86 void DeleteItem(int32_t nIndex); 86 void DeleteItem(int32_t nIndex);
87 virtual int32_t OnProcessMessage(CFWL_Message* pMessage); 87 virtual void OnProcessMessage(CFWL_Message* pMessage);
88 virtual FWL_ERR OnProcessEvent(CFWL_Event* pEvent); 88 virtual void OnProcessEvent(CFWL_Event* pEvent);
89 virtual FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, 89 virtual void OnDrawWidget(CFX_Graphics* pGraphics,
90 const CFX_Matrix* pMatrix = NULL); 90 const CFX_Matrix* pMatrix = NULL);
91 91
92 protected: 92 protected:
93 IFWL_WidgetDelegate* m_pOldDelegate; 93 IFWL_WidgetDelegate* m_pOldDelegate;
94 }; 94 };
95 95
96 #endif // XFA_FXFA_APP_XFA_FFCHOICELIST_H_ 96 #endif // XFA_FXFA_APP_XFA_FFCHOICELIST_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffcheckbutton.cpp ('k') | xfa/fxfa/app/xfa_ffchoicelist.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698