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

Side by Side Diff: fpdfsdk/pdfwindow/PWL_ListBox.h

Issue 2341693003: Cleanup CFX_SystemHandler. (Closed)
Patch Set: Review feedback Created 4 years, 3 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 | « fpdfsdk/pdfwindow/PWL_Edit.h ('k') | fpdfsdk/pdfwindow/PWL_Wnd.h » ('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 FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_ 7 #ifndef FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_
8 #define FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_ 8 #define FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_
9 9
10 #include "fpdfsdk/fxedit/include/fx_edit.h" 10 #include "fpdfsdk/fxedit/include/fx_edit.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 int32_t GetTopVisibleIndex() const; 92 int32_t GetTopVisibleIndex() const;
93 int32_t FindNext(int32_t nIndex, FX_WCHAR nChar) const; 93 int32_t FindNext(int32_t nIndex, FX_WCHAR nChar) const;
94 CFX_FloatRect GetContentRect() const; 94 CFX_FloatRect GetContentRect() const;
95 FX_FLOAT GetFirstHeight() const; 95 FX_FLOAT GetFirstHeight() const;
96 CFX_FloatRect GetListRect() const; 96 CFX_FloatRect GetListRect() const;
97 97
98 void SetFillerNotify(IPWL_Filler_Notify* pNotify) { 98 void SetFillerNotify(IPWL_Filler_Notify* pNotify) {
99 m_pFillerNotify = pNotify; 99 m_pFillerNotify = pNotify;
100 } 100 }
101 101
102 void AttachFFLData(CFFL_FormFiller* pData) { m_pFormFiller = pData; }
103
102 protected: 104 protected:
103 std::unique_ptr<CFX_ListCtrl> m_pList; 105 std::unique_ptr<CFX_ListCtrl> m_pList;
104 std::unique_ptr<CPWL_List_Notify> m_pListNotify; 106 std::unique_ptr<CPWL_List_Notify> m_pListNotify;
105 FX_BOOL m_bMouseDown; 107 FX_BOOL m_bMouseDown;
106 FX_BOOL m_bHoverSel; 108 FX_BOOL m_bHoverSel;
107 IPWL_Filler_Notify* m_pFillerNotify; 109 IPWL_Filler_Notify* m_pFillerNotify;
108 110
109 public:
110 void AttachFFLData(void* pData) { m_pFormFiller = pData; }
111
112 private: 111 private:
113 void* m_pFormFiller; 112 CFFL_FormFiller* m_pFormFiller; // Not owned.
114 }; 113 };
115 114
116 #endif // FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_ 115 #endif // FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_
OLDNEW
« no previous file with comments | « fpdfsdk/pdfwindow/PWL_Edit.h ('k') | fpdfsdk/pdfwindow/PWL_Wnd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698