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

Side by Side Diff: xfa/fwl/core/cfwl_combobox.h

Issue 2491103002: IFWL method and param cleanup (Closed)
Patch Set: Review feedback 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 | « no previous file | xfa/fwl/core/cfwl_combobox.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_FWL_CORE_CFWL_COMBOBOX_H_ 7 #ifndef XFA_FWL_CORE_CFWL_COMBOBOX_H_
8 #define XFA_FWL_CORE_CFWL_COMBOBOX_H_ 8 #define XFA_FWL_CORE_CFWL_COMBOBOX_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 19 matching lines...) Expand all
30 FWL_Error SetCurSel(int32_t iSel); 30 FWL_Error SetCurSel(int32_t iSel);
31 void SetEditText(const CFX_WideString& wsText); 31 void SetEditText(const CFX_WideString& wsText);
32 int32_t GetEditTextLength() const; 32 int32_t GetEditTextLength() const;
33 FWL_Error GetEditText(CFX_WideString& wsText, 33 FWL_Error GetEditText(CFX_WideString& wsText,
34 int32_t nStart = 0, 34 int32_t nStart = 0,
35 int32_t nCount = -1) const; 35 int32_t nCount = -1) const;
36 FWL_Error SetEditSelRange(int32_t nStart, int32_t nCount = -1); 36 FWL_Error SetEditSelRange(int32_t nStart, int32_t nCount = -1);
37 int32_t GetEditSelRange(int32_t nIndex, int32_t& nStart); 37 int32_t GetEditSelRange(int32_t nIndex, int32_t& nStart);
38 int32_t GetEditLimit(); 38 int32_t GetEditLimit();
39 FWL_Error SetEditLimit(int32_t nLimit); 39 FWL_Error SetEditLimit(int32_t nLimit);
40 FWL_Error EditDoClipboard(int32_t iCmd);
41 bool EditRedo(const IFDE_TxtEdtDoRecord* pRecord); 40 bool EditRedo(const IFDE_TxtEdtDoRecord* pRecord);
42 bool EditUndo(const IFDE_TxtEdtDoRecord* pRecord); 41 bool EditUndo(const IFDE_TxtEdtDoRecord* pRecord);
43 FWL_Error SetMaxListHeight(FX_FLOAT fMaxHeight); 42 FWL_Error SetMaxListHeight(FX_FLOAT fMaxHeight);
44 FWL_Error SetItemData(int32_t iIndex, void* pData); 43 FWL_Error SetItemData(int32_t iIndex, void* pData);
45 void* GetItemData(int32_t iIndex); 44 void* GetItemData(int32_t iIndex);
46 void SetListTheme(IFWL_ThemeProvider* pTheme); 45 void SetListTheme(IFWL_ThemeProvider* pTheme);
47 bool AfterFocusShowDropList(); 46 bool AfterFocusShowDropList();
48 FWL_Error OpenDropDownList(bool bActivate); 47 FWL_Error OpenDropDownList(bool bActivate);
49 48
50 bool EditCanUndo(); 49 bool EditCanUndo();
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // IFWL_ComboBoxDP 109 // IFWL_ComboBoxDP
111 FX_FLOAT GetListHeight(IFWL_Widget* pWidget) override; 110 FX_FLOAT GetListHeight(IFWL_Widget* pWidget) override;
112 111
113 private: 112 private:
114 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; 113 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray;
115 FX_FLOAT m_fMaxListHeight; 114 FX_FLOAT m_fMaxListHeight;
116 FX_FLOAT m_fItemHeight; 115 FX_FLOAT m_fItemHeight;
117 }; 116 };
118 117
119 #endif // XFA_FWL_CORE_CFWL_COMBOBOX_H_ 118 #endif // XFA_FWL_CORE_CFWL_COMBOBOX_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/fwl/core/cfwl_combobox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698