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

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

Issue 2649563003: Replace CFX_ByteArray with CFX_ArrayTemplate<uint8_t> (Closed)
Patch Set: re-upload Created 3 years, 11 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/cxfa_textlayout.h ('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"
11 #include "xfa/fxfa/xfa_ffpageview.h" 11 #include "xfa/fxfa/xfa_ffpageview.h"
12 12
13 class CXFA_FFListBox : public CXFA_FFField { 13 class CXFA_FFListBox : public CXFA_FFField {
14 public: 14 public:
15 CXFA_FFListBox(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); 15 CXFA_FFListBox(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
16 ~CXFA_FFListBox() override; 16 ~CXFA_FFListBox() override;
17 17
18 // CXFA_FFField 18 // CXFA_FFField
19 bool LoadWidget() override; 19 bool LoadWidget() override;
20 bool OnKillFocus(CXFA_FFWidget* pNewWidget) override; 20 bool OnKillFocus(CXFA_FFWidget* pNewWidget) override;
21 void OnProcessMessage(CFWL_Message* pMessage) override; 21 void OnProcessMessage(CFWL_Message* pMessage) override;
22 void OnProcessEvent(CFWL_Event* pEvent) override; 22 void OnProcessEvent(CFWL_Event* pEvent) override;
23 void OnDrawWidget(CFX_Graphics* pGraphics, 23 void OnDrawWidget(CFX_Graphics* pGraphics,
24 const CFX_Matrix* pMatrix = nullptr) override; 24 const CFX_Matrix* pMatrix = nullptr) override;
25 25
26 void OnSelectChanged(CFWL_Widget* pWidget, const CFX_Int32Array& arrSels); 26 void OnSelectChanged(CFWL_Widget* pWidget,
27 const CFX_ArrayTemplate<int32_t>& arrSels);
27 void SetItemState(int32_t nIndex, bool bSelected); 28 void SetItemState(int32_t nIndex, bool bSelected);
28 void InsertItem(const CFX_WideStringC& wsLabel, int32_t nIndex = -1); 29 void InsertItem(const CFX_WideStringC& wsLabel, int32_t nIndex = -1);
29 void DeleteItem(int32_t nIndex); 30 void DeleteItem(int32_t nIndex);
30 31
31 protected: 32 protected:
32 bool CommitData() override; 33 bool CommitData() override;
33 bool UpdateFWLData() override; 34 bool UpdateFWLData() override;
34 bool IsDataChanged() override; 35 bool IsDataChanged() override;
35 36
36 uint32_t GetAlignment(); 37 uint32_t GetAlignment();
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 bool IsDataChanged() override; 92 bool IsDataChanged() override;
92 93
93 uint32_t GetAlignment(); 94 uint32_t GetAlignment();
94 void FWLEventSelChange(CXFA_EventParam* pParam); 95 void FWLEventSelChange(CXFA_EventParam* pParam);
95 96
96 CFX_WideString m_wsNewValue; 97 CFX_WideString m_wsNewValue;
97 IFWL_WidgetDelegate* m_pOldDelegate; 98 IFWL_WidgetDelegate* m_pOldDelegate;
98 }; 99 };
99 100
100 #endif // XFA_FXFA_APP_XFA_FFCHOICELIST_H_ 101 #endif // XFA_FXFA_APP_XFA_FFCHOICELIST_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/cxfa_textlayout.h ('k') | xfa/fxfa/app/xfa_ffchoicelist.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698