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

Side by Side Diff: fpdfsdk/formfiller/cffl_iformfiller.cpp

Issue 2027273002: Fix all the code which has duplicate variable declarations (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 6 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 | « core/fxge/ge/fx_ge_device.cpp ('k') | fpdfsdk/fpdf_flatten.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 #include "fpdfsdk/formfiller/cffl_iformfiller.h" 7 #include "fpdfsdk/formfiller/cffl_iformfiller.h"
8 8
9 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" 9 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h"
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 fa.bShift = m_pApp->FFI_IsSHIFTKeyDown(nFlag); 433 fa.bShift = m_pApp->FFI_IsSHIFTKeyDown(nFlag);
434 434
435 CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, TRUE); 435 CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, TRUE);
436 if (!pFormFiller) 436 if (!pFormFiller)
437 return FALSE; 437 return FALSE;
438 pFormFiller->GetActionData(pPageView, CPDF_AAction::GetFocus, fa); 438 pFormFiller->GetActionData(pPageView, CPDF_AAction::GetFocus, fa);
439 pWidget->OnAAction(CPDF_AAction::GetFocus, fa, pPageView); 439 pWidget->OnAAction(CPDF_AAction::GetFocus, fa, pPageView);
440 m_bNotifying = FALSE; 440 m_bNotifying = FALSE;
441 441
442 if (pWidget->IsAppModified()) { 442 if (pWidget->IsAppModified()) {
443 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, FALSE)) { 443 if (CFFL_FormFiller* pFiller = GetFormFiller(pWidget, FALSE)) {
444 pFormFiller->ResetPDFWindow(pPageView, 444 pFiller->ResetPDFWindow(pPageView,
445 nValueAge == pWidget->GetValueAge()); 445 nValueAge == pWidget->GetValueAge());
446 } 446 }
447 } 447 }
448 } 448 }
449 } 449 }
450 450
451 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, TRUE)) 451 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, TRUE))
452 pFormFiller->SetFocusForAnnot(pAnnot, nFlag); 452 pFormFiller->SetFocusForAnnot(pAnnot, nFlag);
453 453
454 return TRUE; 454 return TRUE;
455 } 455 }
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 bExit = TRUE; 1008 bExit = TRUE;
1009 m_bNotifying = FALSE; 1009 m_bNotifying = FALSE;
1010 return; 1010 return;
1011 } 1011 }
1012 } 1012 }
1013 1013
1014 m_bNotifying = FALSE; 1014 m_bNotifying = FALSE;
1015 } 1015 }
1016 } 1016 }
1017 } 1017 }
OLDNEW
« no previous file with comments | « core/fxge/ge/fx_ge_device.cpp ('k') | fpdfsdk/fpdf_flatten.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698