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

Side by Side Diff: fpdfsdk/src/fsdk_mgr.cpp

Issue 1407583004: Changes to master to more closely match XFA. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 2 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
« fpdfsdk/src/fpdf_transformpage.cpp ('K') | « fpdfsdk/src/fpdfview.cpp ('k') | no next file » | 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 #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
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
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 }
OLDNEW
« fpdfsdk/src/fpdf_transformpage.cpp ('K') | « fpdfsdk/src/fpdfview.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698