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

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

Issue 2509283003: Unify the three CFWL_EventType::SelectChange classes. (Closed)
Patch Set: 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_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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // IFWL_WidgetDelegate 70 // IFWL_WidgetDelegate
71 void OnProcessMessage(CFWL_Message* pMessage) override; 71 void OnProcessMessage(CFWL_Message* pMessage) override;
72 void OnProcessEvent(CFWL_Event* pEvent) override; 72 void OnProcessEvent(CFWL_Event* pEvent) override;
73 void OnDrawWidget(CFX_Graphics* pGraphics, 73 void OnDrawWidget(CFX_Graphics* pGraphics,
74 const CFX_Matrix* pMatrix = nullptr) override; 74 const CFX_Matrix* pMatrix = nullptr) override;
75 75
76 virtual void OpenDropDownList(); 76 virtual void OpenDropDownList();
77 77
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,
81 bool bLButtonUp); 80 bool bLButtonUp);
82 void OnPreOpen(IFWL_Widget* pWidget); 81 void OnPreOpen(IFWL_Widget* pWidget);
83 void OnPostOpen(IFWL_Widget* pWidget); 82 void OnPostOpen(IFWL_Widget* pWidget);
84 void SetItemState(int32_t nIndex, bool bSelected); 83 void SetItemState(int32_t nIndex, bool bSelected);
85 void InsertItem(const CFX_WideStringC& wsLabel, int32_t nIndex = -1); 84 void InsertItem(const CFX_WideStringC& wsLabel, int32_t nIndex = -1);
86 void DeleteItem(int32_t nIndex); 85 void DeleteItem(int32_t nIndex);
87 86
88 protected: 87 protected:
89 // CXFA_FFField 88 // CXFA_FFField
90 bool PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy) override; 89 bool PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy) override;
91 bool CommitData() override; 90 bool CommitData() override;
92 bool UpdateFWLData() override; 91 bool UpdateFWLData() override;
93 bool IsDataChanged() override; 92 bool IsDataChanged() override;
94 93
95 uint32_t GetAlignment(); 94 uint32_t GetAlignment();
96 void FWLEventSelChange(CXFA_EventParam* pParam); 95 void FWLEventSelChange(CXFA_EventParam* pParam);
97 96
98 CFX_WideString m_wsNewValue; 97 CFX_WideString m_wsNewValue;
99 IFWL_WidgetDelegate* m_pOldDelegate; 98 IFWL_WidgetDelegate* m_pOldDelegate;
100 }; 99 };
101 100
102 #endif // XFA_FXFA_APP_XFA_FFCHOICELIST_H_ 101 #endif // XFA_FXFA_APP_XFA_FFCHOICELIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698