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

Side by Side Diff: fpdfsdk/include/pdfwindow/PWL_Wnd.h

Issue 810883005: Fix -Wnon-virtual-dtor compiler warnings. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Restore private destructors. Created 5 years, 11 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/include/pdfwindow/PWL_Note.h ('k') | fpdfsdk/src/fpdf_sysfontinfo.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 _PWL_WND_H_ 7 #ifndef _PWL_WND_H_
8 #define _PWL_WND_H_ 8 #define _PWL_WND_H_
9 9
10 class IPWL_Provider; 10 class IPWL_Provider;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 #define PWL_DEFAULT_WHITECOLOR CPWL_Color(COLORTYPE_GRA Y,1) 161 #define PWL_DEFAULT_WHITECOLOR CPWL_Color(COLORTYPE_GRA Y,1)
162 #define PWL_DEFAULT_HEAVYGRAYCOLOR CPWL_Color(COLORTYPE_GRA Y,0.50) 162 #define PWL_DEFAULT_HEAVYGRAYCOLOR CPWL_Color(COLORTYPE_GRA Y,0.50)
163 #define PWL_DEFAULT_LIGHTGRAYCOLOR CPWL_Color(COLORTYPE_GRA Y,0.75) 163 #define PWL_DEFAULT_LIGHTGRAYCOLOR CPWL_Color(COLORTYPE_GRA Y,0.75)
164 #define PWL_TRIANGLE_HALFLEN 2.0f 164 #define PWL_TRIANGLE_HALFLEN 2.0f
165 #define PWL_CBBUTTON_TRIANGLE_HALFLEN 3.0f 165 #define PWL_CBBUTTON_TRIANGLE_HALFLEN 3.0f
166 #define PWL_INVALIDATE_INFLATE 2 166 #define PWL_INVALIDATE_INFLATE 2
167 167
168 class IPWL_SpellCheck 168 class IPWL_SpellCheck
169 { 169 {
170 public: 170 public:
171 virtual ~IPWL_SpellCheck() { }
171 virtual FX_BOOL CheckWor d(FX_LPCSTR sWord) = 0; 172 virtual FX_BOOL CheckWor d(FX_LPCSTR sWord) = 0;
172 virtual void SuggestW ords(FX_LPCSTR sWord, CFX_ByteStringArray & sSuggest) = 0; 173 virtual void SuggestW ords(FX_LPCSTR sWord, CFX_ByteStringArray & sSuggest) = 0;
173 }; 174 };
174 175
175 class IPWL_Provider 176 class IPWL_Provider
176 { 177 {
177 public: 178 public:
179 virtual ~IPWL_Provider() { }
180
178 //get a matrix which map user space to CWnd client space 181 //get a matrix which map user space to CWnd client space
179 virtual CPDF_Matrix GetWindo wMatrix(void* pAttachedData) = 0; 182 virtual CPDF_Matrix GetWindo wMatrix(void* pAttachedData) = 0;
180 183
181 /* 184 /*
182 0 L"&Undo\tCtrl+Z" 185 0 L"&Undo\tCtrl+Z"
183 1 L"&Redo\tCtrl+Shift+Z" 186 1 L"&Redo\tCtrl+Shift+Z"
184 2 L"Cu&t\tCtrl+X" 187 2 L"Cu&t\tCtrl+X"
185 3 L"&Copy\tCtrl+C" 188 3 L"&Copy\tCtrl+C"
186 4 L"&Paste\tCtrl+V" 189 4 L"&Paste\tCtrl+V"
187 5 L"&Delete" 190 5 L"&Delete"
188 6 L"&Select All\tCtrl+A" 191 6 L"&Select All\tCtrl+A"
189 */ 192 */
190 virtual CFX_WideString LoadPopupMenuStr ing(FX_INT32 nIndex) = 0; 193 virtual CFX_WideString LoadPopupMenuStr ing(FX_INT32 nIndex) = 0;
191 }; 194 };
192 195
193 class IPWL_FocusHandler 196 class IPWL_FocusHandler
194 { 197 {
195 public: 198 public:
199 virtual ~IPWL_FocusHandler() { }
196 virtual void OnSetFoc us(CPWL_Wnd* pWnd) = 0; 200 virtual void OnSetFoc us(CPWL_Wnd* pWnd) = 0;
197 virtual void OnKillFo cus(CPWL_Wnd* pWnd) = 0; 201 virtual void OnKillFo cus(CPWL_Wnd* pWnd) = 0;
198 }; 202 };
199 203
200 struct PWL_CREATEPARAM 204 struct PWL_CREATEPARAM
201 { 205 {
202 public: 206 public:
203 PWL_CREATEPARAM() : rcRectWnd(0,0,0,0), 207 PWL_CREATEPARAM() : rcRectWnd(0,0,0,0),
204 pSystemHandler(NULL), 208 pSystemHandler(NULL),
205 pFontMap(NULL), 209 pFontMap(NULL),
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 // #define VK_RETURN 0x0D 488 // #define VK_RETURN 0x0D
485 // #define VK_ESCAPE 0x1B 489 // #define VK_ESCAPE 0x1B
486 // #define VK_SPACE 0x20 490 // #define VK_SPACE 0x20
487 // #endif 491 // #endif
488 // 492 //
489 // #define VK_NONE 0 493 // #define VK_NONE 0
490 494
491 #endif // !defined(AFX_PWL_WND_H__D32812AD_A875_4E08_9D3C_0A57020987C6__INCLUDED _) 495 #endif // !defined(AFX_PWL_WND_H__D32812AD_A875_4E08_9D3C_0A57020987C6__INCLUDED _)
492 496
493 497
OLDNEW
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_Note.h ('k') | fpdfsdk/src/fpdf_sysfontinfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698