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

Side by Side Diff: fpdfsdk/cpdfsdk_xfawidgethandler.cpp

Issue 2399213002: Remove remaining CPDFSDK_Document references (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
« no previous file with comments | « fpdfsdk/cpdfsdk_widgethandler.cpp ('k') | fpdfsdk/formfiller/cffl_formfiller.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 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"
(...skipping 21 matching lines...) Expand all
32 return !!pAnnot->GetXFAWidget(); 32 return !!pAnnot->GetXFAWidget();
33 } 33 }
34 34
35 CPDFSDK_Annot* CPDFSDK_XFAWidgetHandler::NewAnnot(CPDF_Annot* pAnnot, 35 CPDFSDK_Annot* CPDFSDK_XFAWidgetHandler::NewAnnot(CPDF_Annot* pAnnot,
36 CPDFSDK_PageView* pPage) { 36 CPDFSDK_PageView* pPage) {
37 return nullptr; 37 return nullptr;
38 } 38 }
39 39
40 CPDFSDK_Annot* CPDFSDK_XFAWidgetHandler::NewAnnot(CXFA_FFWidget* pAnnot, 40 CPDFSDK_Annot* CPDFSDK_XFAWidgetHandler::NewAnnot(CXFA_FFWidget* pAnnot,
41 CPDFSDK_PageView* pPage) { 41 CPDFSDK_PageView* pPage) {
42 CPDFSDK_Document* pSDKDoc = m_pEnv->GetSDKDocument(); 42 CPDFSDK_InterForm* pInterForm = m_pEnv->GetSDKDocument()->GetInterForm();
43 CPDFSDK_InterForm* pInterForm = pSDKDoc->GetInterForm();
44 CPDFSDK_XFAWidget* pWidget = new CPDFSDK_XFAWidget(pAnnot, pPage, pInterForm); 43 CPDFSDK_XFAWidget* pWidget = new CPDFSDK_XFAWidget(pAnnot, pPage, pInterForm);
45 pInterForm->AddXFAMap(pAnnot, pWidget); 44 pInterForm->AddXFAMap(pAnnot, pWidget);
46 return pWidget; 45 return pWidget;
47 } 46 }
48 47
49 void CPDFSDK_XFAWidgetHandler::OnDraw(CPDFSDK_PageView* pPageView, 48 void CPDFSDK_XFAWidgetHandler::OnDraw(CPDFSDK_PageView* pPageView,
50 CPDFSDK_Annot* pAnnot, 49 CPDFSDK_Annot* pAnnot,
51 CFX_RenderDevice* pDevice, 50 CFX_RenderDevice* pDevice,
52 CFX_Matrix* pUser2Device, 51 CFX_Matrix* pUser2Device,
53 bool bDrawAnnots) { 52 bool bDrawAnnots) {
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 dwFWLFlag |= FWL_KEYFLAG_MButton; 376 dwFWLFlag |= FWL_KEYFLAG_MButton;
378 if (dwFlag & FWL_EVENTFLAG_RightButtonDown) 377 if (dwFlag & FWL_EVENTFLAG_RightButtonDown)
379 dwFWLFlag |= FWL_KEYFLAG_RButton; 378 dwFWLFlag |= FWL_KEYFLAG_RButton;
380 if (dwFlag & FWL_EVENTFLAG_ShiftKey) 379 if (dwFlag & FWL_EVENTFLAG_ShiftKey)
381 dwFWLFlag |= FWL_KEYFLAG_Shift; 380 dwFWLFlag |= FWL_KEYFLAG_Shift;
382 if (dwFlag & FWL_EVENTFLAG_AltKey) 381 if (dwFlag & FWL_EVENTFLAG_AltKey)
383 dwFWLFlag |= FWL_KEYFLAG_Alt; 382 dwFWLFlag |= FWL_KEYFLAG_Alt;
384 383
385 return dwFWLFlag; 384 return dwFWLFlag;
386 } 385 }
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_widgethandler.cpp ('k') | fpdfsdk/formfiller/cffl_formfiller.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698