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

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

Issue 2488953003: Cleanup IFWL_Widget visibility and virtual parameters (Closed)
Patch Set: fixes 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/ifwl_formproxy.cpp ('k') | xfa/fwl/core/ifwl_listbox.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_LISTBOX_H_ 7 #ifndef XFA_FWL_CORE_IFWL_LISTBOX_H_
8 #define XFA_FWL_CORE_IFWL_LISTBOX_H_ 8 #define XFA_FWL_CORE_IFWL_LISTBOX_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 class IFWL_ListBox : public IFWL_Widget { 101 class IFWL_ListBox : public IFWL_Widget {
102 public: 102 public:
103 IFWL_ListBox(const IFWL_App* app, 103 IFWL_ListBox(const IFWL_App* app,
104 std::unique_ptr<CFWL_WidgetProperties> properties, 104 std::unique_ptr<CFWL_WidgetProperties> properties,
105 IFWL_Widget* pOuter); 105 IFWL_Widget* pOuter);
106 ~IFWL_ListBox() override; 106 ~IFWL_ListBox() override;
107 107
108 // IFWL_Widget 108 // IFWL_Widget
109 FWL_Type GetClassID() const override; 109 FWL_Type GetClassID() const override;
110 FWL_Error GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; 110 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override;
111 FWL_Error Update() override; 111 void Update() override;
112 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; 112 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override;
113 FWL_Error DrawWidget(CFX_Graphics* pGraphics, 113 void DrawWidget(CFX_Graphics* pGraphics,
114 const CFX_Matrix* pMatrix = nullptr) override; 114 const CFX_Matrix* pMatrix = nullptr) override;
115 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; 115 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override;
116 void OnProcessMessage(CFWL_Message* pMessage) override; 116 void OnProcessMessage(CFWL_Message* pMessage) override;
117 void OnProcessEvent(CFWL_Event* pEvent) override; 117 void OnProcessEvent(CFWL_Event* pEvent) override;
118 void OnDrawWidget(CFX_Graphics* pGraphics, 118 void OnDrawWidget(CFX_Graphics* pGraphics,
119 const CFX_Matrix* pMatrix) override; 119 const CFX_Matrix* pMatrix) override;
120 120
121 int32_t CountSelItems(); 121 int32_t CountSelItems();
122 CFWL_ListItem* GetSelItem(int32_t nIndexSel); 122 CFWL_ListItem* GetSelItem(int32_t nIndexSel);
123 int32_t GetSelIndex(int32_t nIndex); 123 int32_t GetSelIndex(int32_t nIndex);
124 FWL_Error SetSelItem(CFWL_ListItem* hItem, bool bSelect = true); 124 FWL_Error SetSelItem(CFWL_ListItem* hItem, bool bSelect = true);
125 FWL_Error GetItemText(CFWL_ListItem* hItem, CFX_WideString& wsText); 125 FWL_Error GetItemText(CFWL_ListItem* hItem, CFX_WideString& wsText);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 void OnLButtonDown(CFWL_MsgMouse* pMsg); 186 void OnLButtonDown(CFWL_MsgMouse* pMsg);
187 void OnLButtonUp(CFWL_MsgMouse* pMsg); 187 void OnLButtonUp(CFWL_MsgMouse* pMsg);
188 void OnMouseWheel(CFWL_MsgMouseWheel* pMsg); 188 void OnMouseWheel(CFWL_MsgMouseWheel* pMsg);
189 void OnKeyDown(CFWL_MsgKey* pMsg); 189 void OnKeyDown(CFWL_MsgKey* pMsg);
190 void OnVK(CFWL_ListItem* hItem, bool bShift, bool bCtrl); 190 void OnVK(CFWL_ListItem* hItem, bool bShift, bool bCtrl);
191 bool OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); 191 bool OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos);
192 void DispatchSelChangedEv(); 192 void DispatchSelChangedEv();
193 }; 193 };
194 194
195 #endif // XFA_FWL_CORE_IFWL_LISTBOX_H_ 195 #endif // XFA_FWL_CORE_IFWL_LISTBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_formproxy.cpp ('k') | xfa/fwl/core/ifwl_listbox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698