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

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

Issue 2391313002: Rename CPDFSDK_Environment to CPDFSDK_FormfillEnvironment (Closed)
Patch Set: Rebase to master Created 4 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
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_interactiveformfiller.h" 7 #include "fpdfsdk/formfiller/cffl_interactiveformfiller.h"
8 8
9 #include "core/fpdfapi/page/cpdf_page.h" 9 #include "core/fpdfapi/page/cpdf_page.h"
10 #include "core/fpdfapi/parser/cpdf_document.h" 10 #include "core/fpdfapi/parser/cpdf_document.h"
11 #include "core/fxge/cfx_graphstatedata.h" 11 #include "core/fxge/cfx_graphstatedata.h"
12 #include "core/fxge/cfx_pathdata.h" 12 #include "core/fxge/cfx_pathdata.h"
13 #include "core/fxge/cfx_renderdevice.h" 13 #include "core/fxge/cfx_renderdevice.h"
14 #include "fpdfsdk/cpdfsdk_document.h" 14 #include "fpdfsdk/cpdfsdk_document.h"
15 #include "fpdfsdk/cpdfsdk_environment.h" 15 #include "fpdfsdk/cpdfsdk_formfillenvironment.h"
16 #include "fpdfsdk/cpdfsdk_interform.h" 16 #include "fpdfsdk/cpdfsdk_interform.h"
17 #include "fpdfsdk/cpdfsdk_pageview.h" 17 #include "fpdfsdk/cpdfsdk_pageview.h"
18 #include "fpdfsdk/cpdfsdk_widget.h" 18 #include "fpdfsdk/cpdfsdk_widget.h"
19 #include "fpdfsdk/formfiller/cffl_checkbox.h" 19 #include "fpdfsdk/formfiller/cffl_checkbox.h"
20 #include "fpdfsdk/formfiller/cffl_combobox.h" 20 #include "fpdfsdk/formfiller/cffl_combobox.h"
21 #include "fpdfsdk/formfiller/cffl_formfiller.h" 21 #include "fpdfsdk/formfiller/cffl_formfiller.h"
22 #include "fpdfsdk/formfiller/cffl_listbox.h" 22 #include "fpdfsdk/formfiller/cffl_listbox.h"
23 #include "fpdfsdk/formfiller/cffl_pushbutton.h" 23 #include "fpdfsdk/formfiller/cffl_pushbutton.h"
24 #include "fpdfsdk/formfiller/cffl_radiobutton.h" 24 #include "fpdfsdk/formfiller/cffl_radiobutton.h"
25 #include "fpdfsdk/formfiller/cffl_textfield.h" 25 #include "fpdfsdk/formfiller/cffl_textfield.h"
26 #include "fpdfsdk/pdfwindow/PWL_Utils.h" 26 #include "fpdfsdk/pdfwindow/PWL_Utils.h"
27 27
28 #define FFL_MAXLISTBOXHEIGHT 140.0f 28 #define FFL_MAXLISTBOXHEIGHT 140.0f
29 29
30 CFFL_InteractiveFormFiller::CFFL_InteractiveFormFiller( 30 CFFL_InteractiveFormFiller::CFFL_InteractiveFormFiller(
31 CPDFSDK_Environment* pEnv) 31 CPDFSDK_FormFillEnvironment* pEnv)
32 : m_pEnv(pEnv), m_bNotifying(FALSE) {} 32 : m_pEnv(pEnv), m_bNotifying(FALSE) {}
33 33
34 CFFL_InteractiveFormFiller::~CFFL_InteractiveFormFiller() {} 34 CFFL_InteractiveFormFiller::~CFFL_InteractiveFormFiller() {}
35 35
36 FX_BOOL CFFL_InteractiveFormFiller::Annot_HitTest(CPDFSDK_PageView* pPageView, 36 FX_BOOL CFFL_InteractiveFormFiller::Annot_HitTest(CPDFSDK_PageView* pPageView,
37 CPDFSDK_Annot* pAnnot, 37 CPDFSDK_Annot* pAnnot,
38 CFX_FloatPoint point) { 38 CFX_FloatPoint point) {
39 CFX_FloatRect rc = pAnnot->GetRect(); 39 CFX_FloatRect rc = pAnnot->GetRect();
40 return rc.Contains(point.x, point.y); 40 return rc.Contains(point.x, point.y);
41 } 41 }
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 bExit = TRUE; 982 bExit = TRUE;
983 m_bNotifying = FALSE; 983 m_bNotifying = FALSE;
984 return; 984 return;
985 } 985 }
986 } 986 }
987 987
988 m_bNotifying = FALSE; 988 m_bNotifying = FALSE;
989 } 989 }
990 } 990 }
991 } 991 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698