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

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

Issue 2510123002: Remove the CFWL_EventType::DrawItem (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
« no previous file with comments | « xfa/fwl/core/cfwl_event.h ('k') | xfa/fwl/core/ifwl_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_IFWL_COMBOBOX_H_ 7 #ifndef XFA_FWL_CORE_IFWL_COMBOBOX_H_
8 #define XFA_FWL_CORE_IFWL_COMBOBOX_H_ 8 #define XFA_FWL_CORE_IFWL_COMBOBOX_H_
9 9
10 #include "xfa/fwl/core/ifwl_comboboxproxy.h" 10 #include "xfa/fwl/core/ifwl_comboboxproxy.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 CFWL_EventType::EditChanged, 49 CFWL_EventType::EditChanged,
50 int32_t nChangeType; 50 int32_t nChangeType;
51 CFX_WideString wsInsert; 51 CFX_WideString wsInsert;
52 CFX_WideString wsDelete;) 52 CFX_WideString wsDelete;)
53 53
54 FWL_EVENT_DEF(CFWL_EvtCmbSelChanged, 54 FWL_EVENT_DEF(CFWL_EvtCmbSelChanged,
55 CFWL_EventType::SelectChanged, 55 CFWL_EventType::SelectChanged,
56 CFX_Int32Array iArraySels; 56 CFX_Int32Array iArraySels;
57 bool bLButtonUp;) 57 bool bLButtonUp;)
58 58
59 FWL_EVENT_DEF(CFWL_EvtCmbDrawItem,
60 CFWL_EventType::DrawItem,
61 CFX_Graphics* m_pGraphics;
62 CFX_Matrix m_matrix;
63 int32_t m_index;
64 CFX_RectF m_rtItem;)
65
66 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { 59 class IFWL_ComboBoxDP : public IFWL_ListBoxDP {
67 public: 60 public:
68 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; 61 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0;
69 }; 62 };
70 63
71 class IFWL_ComboBox : public IFWL_Widget { 64 class IFWL_ComboBox : public IFWL_Widget {
72 public: 65 public:
73 explicit IFWL_ComboBox(const IFWL_App* app, 66 explicit IFWL_ComboBox(const IFWL_App* app,
74 std::unique_ptr<CFWL_WidgetProperties> properties); 67 std::unique_ptr<CFWL_WidgetProperties> properties);
75 ~IFWL_ComboBox() override; 68 ~IFWL_ComboBox() override;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 IFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr? 177 IFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr?
185 bool m_bLButtonDown; 178 bool m_bLButtonDown;
186 bool m_bUpFormHandler; 179 bool m_bUpFormHandler;
187 int32_t m_iCurSel; 180 int32_t m_iCurSel;
188 int32_t m_iBtnState; 181 int32_t m_iBtnState;
189 FX_FLOAT m_fComboFormHandler; 182 FX_FLOAT m_fComboFormHandler;
190 FX_FLOAT m_fItemHeight; 183 FX_FLOAT m_fItemHeight;
191 }; 184 };
192 185
193 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_ 186 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_event.h ('k') | xfa/fwl/core/ifwl_combobox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698