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

Side by Side Diff: fpdfsdk/cpdfsdk_widgethandler.cpp

Issue 2305443005: Remove unused dwFlags parameter in CPDFSDK_AnnotHandlerMgr::OnDraw and its calls. (Closed)
Patch Set: 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 uint32_t dwFlags) {
97 if (pAnnot->IsSignatureWidget()) { 96 if (pAnnot->IsSignatureWidget()) {
98 static_cast<CPDFSDK_BAAnnot*>(pAnnot)->DrawAppearance( 97 static_cast<CPDFSDK_BAAnnot*>(pAnnot)->DrawAppearance(
99 pDevice, pUser2Device, CPDF_Annot::Normal, nullptr); 98 pDevice, pUser2Device, CPDF_Annot::Normal, nullptr);
100 } else { 99 } else {
101 if (m_pFormFiller) 100 if (m_pFormFiller)
102 m_pFormFiller->OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); 101 m_pFormFiller->OnDraw(pPageView, pAnnot, pDevice, pUser2Device);
103 } 102 }
104 } 103 }
105 104
106 void CPDFSDK_WidgetHandler::OnDrawSleep(CPDFSDK_PageView* pPageView, 105 void CPDFSDK_WidgetHandler::OnDrawSleep(CPDFSDK_PageView* pPageView,
107 CPDFSDK_Annot* pAnnot, 106 CPDFSDK_Annot* pAnnot,
108 CFX_RenderDevice* pDevice, 107 CFX_RenderDevice* pDevice,
109 CFX_Matrix* pUser2Device, 108 CFX_Matrix* pUser2Device,
110 const CFX_FloatRect& rcWindow, 109 const CFX_FloatRect& rcWindow,
111 uint32_t dwFlags) {} 110 uint32_t dwFlags) {}
112 111
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 297
299 FX_BOOL CPDFSDK_WidgetHandler::HitTest(CPDFSDK_PageView* pPageView, 298 FX_BOOL CPDFSDK_WidgetHandler::HitTest(CPDFSDK_PageView* pPageView,
300 CPDFSDK_Annot* pAnnot, 299 CPDFSDK_Annot* pAnnot,
301 const CFX_FloatPoint& point) { 300 const CFX_FloatPoint& point) {
302 ASSERT(pPageView); 301 ASSERT(pPageView);
303 ASSERT(pAnnot); 302 ASSERT(pAnnot);
304 303
305 CFX_FloatRect rect = GetViewBBox(pPageView, pAnnot); 304 CFX_FloatRect rect = GetViewBBox(pPageView, pAnnot);
306 return rect.Contains(point.x, point.y); 305 return rect.Contains(point.x, point.y);
307 } 306 }
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