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

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

Issue 441763002: Remove unused |m_pEvi| field. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 4 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/fsdk_actionhandler.h ('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 "../include/fsdk_define.h" 7 #include "../include/fsdk_define.h"
8 #include "../include/fsdk_mgr.h" 8 #include "../include/fsdk_mgr.h"
9 #include "../include/fsdk_actionhandler.h" 9 #include "../include/fsdk_actionhandler.h"
10 #include "../include/javascript/IJavaScript.h" 10 #include "../include/javascript/IJavaScript.h"
11 11
12 /* -------------------------- CBA_ActionHandler -------------------------- */ 12 /* -------------------------- CBA_ActionHandler -------------------------- */
13 13
14 CPDFSDK_ActionHandler::CPDFSDK_ActionHandler(CPDFDoc_Environment* pEvi) : 14 CPDFSDK_ActionHandler::CPDFSDK_ActionHandler(CPDFDoc_Environment* pEvi) :
15 m_pEvi(pEvi),
16 m_pFormActionHandler(NULL), 15 m_pFormActionHandler(NULL),
17 m_pMediaActionHandler(NULL) 16 m_pMediaActionHandler(NULL)
18 { 17 {
19 m_pFormActionHandler = new CPDFSDK_FormActionHandler; 18 m_pFormActionHandler = new CPDFSDK_FormActionHandler;
20 } 19 }
21 20
22 CPDFSDK_ActionHandler::~CPDFSDK_ActionHandler() 21 CPDFSDK_ActionHandler::~CPDFSDK_ActionHandler()
23 { 22 {
24 if(m_pFormActionHandler) 23 if(m_pFormActionHandler)
25 { 24 {
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 { 261 {
263 CPDF_Action subaction = action.GetSubAction(i); 262 CPDF_Action subaction = action.GetSubAction(i);
264 if (!ExecuteDocumentPageAction(subaction, type, pDocument,/* pDo cView,*/ list)) return FALSE; 263 if (!ExecuteDocumentPageAction(subaction, type, pDocument,/* pDo cView,*/ list)) return FALSE;
265 } 264 }
266 265
267 return TRUE; 266 return TRUE;
268 } 267 }
269 268
270 FX_BOOL CPDFSDK_ActionHandler::IsValidField(CPDFSDK_Document* pDocument, CPDF_Di ctionary* pFieldDict) 269 FX_BOOL CPDFSDK_ActionHandler::IsValidField(CPDFSDK_Document* pDocument, CPDF_Di ctionary* pFieldDict)
271 { 270 {
272 ASSERT(m_pEvi != NULL);
273 ASSERT(pDocument != NULL); 271 ASSERT(pDocument != NULL);
274 ASSERT(pFieldDict != NULL); 272 ASSERT(pFieldDict != NULL);
275 273
276 if (1/*m_pApp->IsValidDocument(pDocument)*/) 274 if (1/*m_pApp->IsValidDocument(pDocument)*/)
Nico 2014/08/04 20:54:21 O_o
palmer 2014/08/04 21:10:51 Say, Bo, what was intended here? This is the only
Bo Xu 2014/08/04 21:18:38 I do not have the dev for this file here but I gue
277 { 275 {
278 CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm(); 276 CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm();
279 ASSERT(pInterForm != NULL); 277 ASSERT(pInterForm != NULL);
280 278
281 CPDF_InterForm* pPDFInterForm = pInterForm->GetInterForm(); 279 CPDF_InterForm* pPDFInterForm = pInterForm->GetInterForm();
282 ASSERT(pPDFInterForm != NULL); 280 ASSERT(pPDFInterForm != NULL);
283 281
284 return pPDFInterForm->GetFieldByDict(pFieldDict) != NULL; 282 return pPDFInterForm->GetFieldByDict(pFieldDict) != NULL;
285 } 283 }
286 284
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 FX_BOOL CPDFSDK_MediaActionHandler::DoAction_Sound(const CPDF_Action& action, CP DFSDK_Document* pDocument) 839 FX_BOOL CPDFSDK_MediaActionHandler::DoAction_Sound(const CPDF_Action& action, CP DFSDK_Document* pDocument)
842 { 840 {
843 return FALSE; 841 return FALSE;
844 } 842 }
845 843
846 FX_BOOL CPDFSDK_MediaActionHandler::DoAction_Movie(const CPDF_Action& action, CP DFSDK_Document* pDocument) 844 FX_BOOL CPDFSDK_MediaActionHandler::DoAction_Movie(const CPDF_Action& action, CP DFSDK_Document* pDocument)
847 { 845 {
848 return FALSE; 846 return FALSE;
849 } 847 }
850 848
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_actionhandler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698