OLD | NEW |
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 #include "../../public/fpdf_ext.h" | 7 #include "../../public/fpdf_ext.h" |
8 #include "../../third_party/base/nonstd_unique_ptr.h" | 8 #include "../../third_party/base/nonstd_unique_ptr.h" |
9 #include "../include/fsdk_define.h" | 9 #include "../include/fsdk_define.h" |
10 #include "../include/fsdk_mgr.h" | 10 #include "../include/fsdk_mgr.h" |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 | 216 |
217 CPDFDoc_Environment::~CPDFDoc_Environment() { | 217 CPDFDoc_Environment::~CPDFDoc_Environment() { |
218 delete m_pIFormFiller; | 218 delete m_pIFormFiller; |
219 m_pIFormFiller = NULL; | 219 m_pIFormFiller = NULL; |
220 | 220 |
221 delete m_pSysHandler; | 221 delete m_pSysHandler; |
222 m_pSysHandler = NULL; | 222 m_pSysHandler = NULL; |
223 | 223 |
224 delete m_pAnnotHandlerMgr; | 224 delete m_pAnnotHandlerMgr; |
225 m_pAnnotHandlerMgr = NULL; | 225 m_pAnnotHandlerMgr = NULL; |
| 226 |
226 delete m_pActionHandler; | 227 delete m_pActionHandler; |
227 m_pActionHandler = NULL; | 228 m_pActionHandler = NULL; |
228 } | 229 } |
229 | 230 |
230 int CPDFDoc_Environment::JS_appAlert(const FX_WCHAR* Msg, | 231 int CPDFDoc_Environment::JS_appAlert(const FX_WCHAR* Msg, |
231 const FX_WCHAR* Title, | 232 const FX_WCHAR* Title, |
232 FX_UINT Type, | 233 FX_UINT Type, |
233 FX_UINT Icon) { | 234 FX_UINT Icon) { |
234 if (m_pInfo && m_pInfo->m_pJsPlatform && m_pInfo->m_pJsPlatform->app_alert) { | 235 if (m_pInfo && m_pInfo->m_pJsPlatform && m_pInfo->m_pJsPlatform->app_alert) { |
235 CFX_ByteString bsMsg = CFX_WideString(Msg).UTF16LE_Encode(); | 236 CFX_ByteString bsMsg = CFX_WideString(Msg).UTF16LE_Encode(); |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
987 if (!pFocusAnnot) | 988 if (!pFocusAnnot) |
988 return NULL; | 989 return NULL; |
989 | 990 |
990 for (int i = 0; i < m_fxAnnotArray.GetSize(); i++) { | 991 for (int i = 0; i < m_fxAnnotArray.GetSize(); i++) { |
991 CPDFSDK_Annot* pAnnot = (CPDFSDK_Annot*)m_fxAnnotArray.GetAt(i); | 992 CPDFSDK_Annot* pAnnot = (CPDFSDK_Annot*)m_fxAnnotArray.GetAt(i); |
992 if (pAnnot == pFocusAnnot) | 993 if (pAnnot == pFocusAnnot) |
993 return pAnnot; | 994 return pAnnot; |
994 } | 995 } |
995 return NULL; | 996 return NULL; |
996 } | 997 } |
OLD | NEW |