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

Side by Side Diff: fpdfsdk/cpdfsdk_widgethandler.cpp

Issue 2323203002: Define behaviors of FPDF_RenderPageBitmap_Retail and FPDF_FFLDraw. (Closed)
Patch Set: roll DEPS Created 4 years, 3 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_baannothandler.cpp ('k') | fpdfsdk/cpdfsdk_xfawidgethandler.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/include/cpdfsdk_widgethandler.h" 7 #include "fpdfsdk/include/cpdfsdk_widgethandler.h"
8 8
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 CPDFSDK_InterForm* pInterForm = pWidget->GetInterForm(); 85 CPDFSDK_InterForm* pInterForm = pWidget->GetInterForm();
86 CPDF_FormControl* pControl = pWidget->GetFormControl(); 86 CPDF_FormControl* pControl = pWidget->GetFormControl();
87 pInterForm->RemoveMap(pControl); 87 pInterForm->RemoveMap(pControl);
88 } 88 }
89 89
90 void CPDFSDK_WidgetHandler::DeleteAnnot(CPDFSDK_Annot* pAnnot) {} 90 void CPDFSDK_WidgetHandler::DeleteAnnot(CPDFSDK_Annot* pAnnot) {}
91 91
92 void CPDFSDK_WidgetHandler::OnDraw(CPDFSDK_PageView* pPageView, 92 void CPDFSDK_WidgetHandler::OnDraw(CPDFSDK_PageView* pPageView,
93 CPDFSDK_Annot* pAnnot, 93 CPDFSDK_Annot* pAnnot,
94 CFX_RenderDevice* pDevice, 94 CFX_RenderDevice* pDevice,
95 CFX_Matrix* pUser2Device) { 95 CFX_Matrix* pUser2Device,
96 bool bDrawAnnots) {
96 if (pAnnot->IsSignatureWidget()) { 97 if (pAnnot->IsSignatureWidget()) {
97 static_cast<CPDFSDK_BAAnnot*>(pAnnot)->DrawAppearance( 98 static_cast<CPDFSDK_BAAnnot*>(pAnnot)->DrawAppearance(
98 pDevice, pUser2Device, CPDF_Annot::Normal, nullptr); 99 pDevice, pUser2Device, CPDF_Annot::Normal, nullptr);
99 } else { 100 } else {
100 if (m_pFormFiller) 101 if (m_pFormFiller)
101 m_pFormFiller->OnDraw(pPageView, pAnnot, pDevice, pUser2Device); 102 m_pFormFiller->OnDraw(pPageView, pAnnot, pDevice, pUser2Device);
102 } 103 }
103 } 104 }
104 105
105 void CPDFSDK_WidgetHandler::OnDelete(CPDFSDK_Annot* pAnnot) {} 106 void CPDFSDK_WidgetHandler::OnDelete(CPDFSDK_Annot* pAnnot) {}
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 291
291 FX_BOOL CPDFSDK_WidgetHandler::HitTest(CPDFSDK_PageView* pPageView, 292 FX_BOOL CPDFSDK_WidgetHandler::HitTest(CPDFSDK_PageView* pPageView,
292 CPDFSDK_Annot* pAnnot, 293 CPDFSDK_Annot* pAnnot,
293 const CFX_FloatPoint& point) { 294 const CFX_FloatPoint& point) {
294 ASSERT(pPageView); 295 ASSERT(pPageView);
295 ASSERT(pAnnot); 296 ASSERT(pAnnot);
296 297
297 CFX_FloatRect rect = GetViewBBox(pPageView, pAnnot); 298 CFX_FloatRect rect = GetViewBBox(pPageView, pAnnot);
298 return rect.Contains(point.x, point.y); 299 return rect.Contains(point.x, point.y);
299 } 300 }
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_baannothandler.cpp ('k') | fpdfsdk/cpdfsdk_xfawidgethandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698