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

Side by Side Diff: fpdfsdk/cpdfsdk_xfawidgethandler.cpp

Issue 2304613004: Remove unused IPDFSDK_AnnotHandler::OnDrawSleep. (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_widgethandler.cpp ('k') | fpdfsdk/include/cpdfsdk_baannothandler.h » ('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_xfawidgethandler.h" 7 #include "fpdfsdk/include/cpdfsdk_xfawidgethandler.h"
8 8
9 #include "core/fpdfdoc/include/cpdf_interform.h" 9 #include "core/fpdfdoc/include/cpdf_interform.h"
10 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" 10 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 FX_BOOL bIsHighlight = FALSE; 62 FX_BOOL bIsHighlight = FALSE;
63 if (pSDKDoc->GetFocusAnnot() != pAnnot) 63 if (pSDKDoc->GetFocusAnnot() != pAnnot)
64 bIsHighlight = TRUE; 64 bIsHighlight = TRUE;
65 65
66 pWidgetHandler->RenderWidget(pAnnot->GetXFAWidget(), &gs, &mt, bIsHighlight); 66 pWidgetHandler->RenderWidget(pAnnot->GetXFAWidget(), &gs, &mt, bIsHighlight);
67 67
68 // to do highlight and shadow 68 // to do highlight and shadow
69 } 69 }
70 70
71 void CPDFSDK_XFAWidgetHandler::OnDrawSleep(CPDFSDK_PageView* pPageView,
72 CPDFSDK_Annot* pAnnot,
73 CFX_RenderDevice* pDevice,
74 CFX_Matrix* pUser2Device,
75 const CFX_FloatRect& rcWindow,
76 uint32_t dwFlags) {}
77
78 void CPDFSDK_XFAWidgetHandler::OnCreate(CPDFSDK_Annot* pAnnot) {} 71 void CPDFSDK_XFAWidgetHandler::OnCreate(CPDFSDK_Annot* pAnnot) {}
79 72
80 void CPDFSDK_XFAWidgetHandler::OnLoad(CPDFSDK_Annot* pAnnot) {} 73 void CPDFSDK_XFAWidgetHandler::OnLoad(CPDFSDK_Annot* pAnnot) {}
81 74
82 void CPDFSDK_XFAWidgetHandler::OnDelete(CPDFSDK_Annot* pAnnot) {} 75 void CPDFSDK_XFAWidgetHandler::OnDelete(CPDFSDK_Annot* pAnnot) {}
83 76
84 void CPDFSDK_XFAWidgetHandler::OnRelease(CPDFSDK_Annot* pAnnot) {} 77 void CPDFSDK_XFAWidgetHandler::OnRelease(CPDFSDK_Annot* pAnnot) {}
85 78
86 void CPDFSDK_XFAWidgetHandler::ReleaseAnnot(CPDFSDK_Annot* pAnnot) { 79 void CPDFSDK_XFAWidgetHandler::ReleaseAnnot(CPDFSDK_Annot* pAnnot) {
87 CPDFSDK_XFAWidget* pWidget = reinterpret_cast<CPDFSDK_XFAWidget*>(pAnnot); 80 CPDFSDK_XFAWidget* pWidget = reinterpret_cast<CPDFSDK_XFAWidget*>(pAnnot);
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 dwFWLFlag |= FWL_KEYFLAG_MButton; 365 dwFWLFlag |= FWL_KEYFLAG_MButton;
373 if (dwFlag & FWL_EVENTFLAG_RightButtonDown) 366 if (dwFlag & FWL_EVENTFLAG_RightButtonDown)
374 dwFWLFlag |= FWL_KEYFLAG_RButton; 367 dwFWLFlag |= FWL_KEYFLAG_RButton;
375 if (dwFlag & FWL_EVENTFLAG_ShiftKey) 368 if (dwFlag & FWL_EVENTFLAG_ShiftKey)
376 dwFWLFlag |= FWL_KEYFLAG_Shift; 369 dwFWLFlag |= FWL_KEYFLAG_Shift;
377 if (dwFlag & FWL_EVENTFLAG_AltKey) 370 if (dwFlag & FWL_EVENTFLAG_AltKey)
378 dwFWLFlag |= FWL_KEYFLAG_Alt; 371 dwFWLFlag |= FWL_KEYFLAG_Alt;
379 372
380 return dwFWLFlag; 373 return dwFWLFlag;
381 } 374 }
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_widgethandler.cpp ('k') | fpdfsdk/include/cpdfsdk_baannothandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698