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

Side by Side Diff: fpdfsdk/formfiller/cffl_formfiller.h

Issue 2266943002: Destroy window before cleaning up combobox (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Destroy window before cleaning up combobox 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
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_FORMFILLER_CFFL_FORMFILLER_H_ 7 #ifndef FPDFSDK_FORMFILLER_CFFL_FORMFILLER_H_
8 #define FPDFSDK_FORMFILLER_CFFL_FORMFILLER_H_ 8 #define FPDFSDK_FORMFILLER_CFFL_FORMFILLER_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 virtual void InvalidateRect(double left, 147 virtual void InvalidateRect(double left,
148 double top, 148 double top,
149 double right, 149 double right,
150 double bottom); 150 double bottom);
151 CPDFDoc_Environment* GetApp() { return m_pApp; } 151 CPDFDoc_Environment* GetApp() { return m_pApp; }
152 CPDFSDK_Annot* GetSDKAnnot() { return m_pAnnot; } 152 CPDFSDK_Annot* GetSDKAnnot() { return m_pAnnot; }
153 153
154 protected: 154 protected:
155 using CFFL_PageView2PDFWindow = std::map<CPDFSDK_PageView*, CPWL_Wnd*>; 155 using CFFL_PageView2PDFWindow = std::map<CPDFSDK_PageView*, CPWL_Wnd*>;
156 156
157 void DestroyWindows();
158
157 CPDFDoc_Environment* m_pApp; 159 CPDFDoc_Environment* m_pApp;
158 CPDFSDK_Widget* m_pWidget; 160 CPDFSDK_Widget* m_pWidget;
159 CPDFSDK_Annot* m_pAnnot; 161 CPDFSDK_Annot* m_pAnnot;
160 162
161 FX_BOOL m_bValid; 163 FX_BOOL m_bValid;
162 CFFL_PageView2PDFWindow m_Maps; 164 CFFL_PageView2PDFWindow m_Maps;
163 CFX_FloatPoint m_ptOldPos; 165 CFX_FloatPoint m_ptOldPos;
164 }; 166 };
165 167
166 class CFFL_Button : public CFFL_FormFiller { 168 class CFFL_Button : public CFFL_FormFiller {
(...skipping 27 matching lines...) Expand all
194 CFX_RenderDevice* pDevice, 196 CFX_RenderDevice* pDevice,
195 CFX_Matrix* pUser2Device, 197 CFX_Matrix* pUser2Device,
196 uint32_t dwFlags) override; 198 uint32_t dwFlags) override;
197 199
198 protected: 200 protected:
199 FX_BOOL m_bMouseIn; 201 FX_BOOL m_bMouseIn;
200 FX_BOOL m_bMouseDown; 202 FX_BOOL m_bMouseDown;
201 }; 203 };
202 204
203 #endif // FPDFSDK_FORMFILLER_CFFL_FORMFILLER_H_ 205 #endif // FPDFSDK_FORMFILLER_CFFL_FORMFILLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698