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

Side by Side Diff: xfa/include/fwl/basewidget/fwl_combobox.h

Issue 1453473002: FWL refcounts never incremented (part 2). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Rebased Created 5 years 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 _FWL_COMBOBOX_H 7 #ifndef _FWL_COMBOBOX_H
8 #define _FWL_COMBOBOX_H 8 #define _FWL_COMBOBOX_H
9 class CFWL_WidgetImpProperties; 9 class CFWL_WidgetImpProperties;
10 class IFWL_Widget; 10 class IFWL_Widget;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 CFX_Matrix m_matrix; 90 CFX_Matrix m_matrix;
91 int32_t m_index; 91 int32_t m_index;
92 CFX_RectF m_rtItem; 92 CFX_RectF m_rtItem;
93 END_FWL_EVENT_DEF 93 END_FWL_EVENT_DEF
94 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { 94 class IFWL_ComboBoxDP : public IFWL_ListBoxDP {
95 public: 95 public:
96 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; 96 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0;
97 }; 97 };
98 class IFWL_ComboBox : public IFWL_Widget { 98 class IFWL_ComboBox : public IFWL_Widget {
99 public: 99 public:
100 IFWL_ComboBox(); 100 static IFWL_ComboBox* Create(const CFWL_WidgetImpProperties& properties);
101 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, 101
102 IFWL_Widget* pOuter);
103 int32_t GetCurSel(); 102 int32_t GetCurSel();
104 FWL_ERR SetCurSel(int32_t iSel); 103 FWL_ERR SetCurSel(int32_t iSel);
105 FWL_ERR SetEditText(const CFX_WideString& wsText); 104 FWL_ERR SetEditText(const CFX_WideString& wsText);
106 int32_t GetEditTextLength() const; 105 int32_t GetEditTextLength() const;
107 FWL_ERR GetEditText(CFX_WideString& wsText, 106 FWL_ERR GetEditText(CFX_WideString& wsText,
108 int32_t nStart = 0, 107 int32_t nStart = 0,
109 int32_t nCount = -1) const; 108 int32_t nCount = -1) const;
110 FWL_ERR SetEditSelRange(int32_t nStart, int32_t nCount = -1); 109 FWL_ERR SetEditSelRange(int32_t nStart, int32_t nCount = -1);
111 int32_t GetEditSelRange(int32_t nIndex, int32_t& nStart); 110 int32_t GetEditSelRange(int32_t nIndex, int32_t& nStart);
112 int32_t GetEditLimit(); 111 int32_t GetEditLimit();
(...skipping 13 matching lines...) Expand all
126 FX_BOOL EditCanSelectAll(); 125 FX_BOOL EditCanSelectAll();
127 FX_BOOL EditCopy(CFX_WideString& wsCopy); 126 FX_BOOL EditCopy(CFX_WideString& wsCopy);
128 FX_BOOL EditCut(CFX_WideString& wsCut); 127 FX_BOOL EditCut(CFX_WideString& wsCut);
129 FX_BOOL EditPaste(const CFX_WideString& wsPaste); 128 FX_BOOL EditPaste(const CFX_WideString& wsPaste);
130 FX_BOOL EditSelectAll(); 129 FX_BOOL EditSelectAll();
131 FX_BOOL EditDelete(); 130 FX_BOOL EditDelete();
132 FX_BOOL EditDeSelect(); 131 FX_BOOL EditDeSelect();
133 FWL_ERR GetBBox(CFX_RectF& rect); 132 FWL_ERR GetBBox(CFX_RectF& rect);
134 FWL_ERR EditModifyStylesEx(FX_DWORD dwStylesExAdded, 133 FWL_ERR EditModifyStylesEx(FX_DWORD dwStylesExAdded,
135 FX_DWORD dwStylesExRemoved); 134 FX_DWORD dwStylesExRemoved);
135
136 protected:
137 IFWL_ComboBox();
136 }; 138 };
137 #endif 139 #endif
OLDNEW
« no previous file with comments | « xfa/include/fwl/basewidget/fwl_checkbox.h ('k') | xfa/include/fwl/basewidget/fwl_datetimepicker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698