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

Side by Side Diff: fpdfsdk/cpdfsdk_xfawidgethandler.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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/cpdfsdk_xfawidgethandler.h" 7 #include "fpdfsdk/cpdfsdk_xfawidgethandler.h"
8 8
9 #include "core/fpdfdoc/cpdf_interform.h" 9 #include "core/fpdfdoc/cpdf_interform.h"
10 #include "fpdfsdk/cpdfsdk_annot.h" 10 #include "fpdfsdk/cpdfsdk_annot.h"
11 #include "fpdfsdk/cpdfsdk_document.h" 11 #include "fpdfsdk/cpdfsdk_document.h"
12 #include "fpdfsdk/cpdfsdk_environment.h" 12 #include "fpdfsdk/cpdfsdk_formfillenvironment.h"
13 #include "fpdfsdk/cpdfsdk_interform.h" 13 #include "fpdfsdk/cpdfsdk_interform.h"
14 #include "fpdfsdk/cpdfsdk_pageview.h" 14 #include "fpdfsdk/cpdfsdk_pageview.h"
15 #include "fpdfsdk/cpdfsdk_xfawidget.h" 15 #include "fpdfsdk/cpdfsdk_xfawidget.h"
16 #include "fpdfsdk/fpdfxfa/cpdfxfa_document.h" 16 #include "fpdfsdk/fpdfxfa/cpdfxfa_document.h"
17 #include "xfa/fwl/core/fwl_widgethit.h" 17 #include "xfa/fwl/core/fwl_widgethit.h"
18 #include "xfa/fxfa/fxfa_basic.h" 18 #include "xfa/fxfa/fxfa_basic.h"
19 #include "xfa/fxfa/xfa_ffdocview.h" 19 #include "xfa/fxfa/xfa_ffdocview.h"
20 #include "xfa/fxfa/xfa_ffpageview.h" 20 #include "xfa/fxfa/xfa_ffpageview.h"
21 #include "xfa/fxfa/xfa_ffwidget.h" 21 #include "xfa/fxfa/xfa_ffwidget.h"
22 #include "xfa/fxfa/xfa_ffwidgethandler.h" 22 #include "xfa/fxfa/xfa_ffwidgethandler.h"
23 #include "xfa/fxgraphics/cfx_graphics.h" 23 #include "xfa/fxgraphics/cfx_graphics.h"
24 24
25 CPDFSDK_XFAWidgetHandler::CPDFSDK_XFAWidgetHandler(CPDFSDK_Environment* pEnv) 25 CPDFSDK_XFAWidgetHandler::CPDFSDK_XFAWidgetHandler(
26 CPDFSDK_FormFillEnvironment* pEnv)
26 : m_pEnv(pEnv) {} 27 : m_pEnv(pEnv) {}
27 28
28 CPDFSDK_XFAWidgetHandler::~CPDFSDK_XFAWidgetHandler() {} 29 CPDFSDK_XFAWidgetHandler::~CPDFSDK_XFAWidgetHandler() {}
29 30
30 FX_BOOL CPDFSDK_XFAWidgetHandler::CanAnswer(CPDFSDK_Annot* pAnnot) { 31 FX_BOOL CPDFSDK_XFAWidgetHandler::CanAnswer(CPDFSDK_Annot* pAnnot) {
31 return !!pAnnot->GetXFAWidget(); 32 return !!pAnnot->GetXFAWidget();
32 } 33 }
33 34
34 CPDFSDK_Annot* CPDFSDK_XFAWidgetHandler::NewAnnot(CPDF_Annot* pAnnot, 35 CPDFSDK_Annot* CPDFSDK_XFAWidgetHandler::NewAnnot(CPDF_Annot* pAnnot,
35 CPDFSDK_PageView* pPage) { 36 CPDFSDK_PageView* pPage) {
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 dwFWLFlag |= FWL_KEYFLAG_MButton; 379 dwFWLFlag |= FWL_KEYFLAG_MButton;
379 if (dwFlag & FWL_EVENTFLAG_RightButtonDown) 380 if (dwFlag & FWL_EVENTFLAG_RightButtonDown)
380 dwFWLFlag |= FWL_KEYFLAG_RButton; 381 dwFWLFlag |= FWL_KEYFLAG_RButton;
381 if (dwFlag & FWL_EVENTFLAG_ShiftKey) 382 if (dwFlag & FWL_EVENTFLAG_ShiftKey)
382 dwFWLFlag |= FWL_KEYFLAG_Shift; 383 dwFWLFlag |= FWL_KEYFLAG_Shift;
383 if (dwFlag & FWL_EVENTFLAG_AltKey) 384 if (dwFlag & FWL_EVENTFLAG_AltKey)
384 dwFWLFlag |= FWL_KEYFLAG_Alt; 385 dwFWLFlag |= FWL_KEYFLAG_Alt;
385 386
386 return dwFWLFlag; 387 return dwFWLFlag;
387 } 388 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698