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

Side by Side Diff: fpdfsdk/cpdfsdk_baannothandler.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 | « no previous file | fpdfsdk/cpdfsdk_widgethandler.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_baannothandler.h" 7 #include "fpdfsdk/include/cpdfsdk_baannothandler.h"
8 8
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 CFX_RenderDevice* pDevice, 64 CFX_RenderDevice* pDevice,
65 CFX_Matrix* pUser2Device) { 65 CFX_Matrix* pUser2Device) {
66 #ifdef PDF_ENABLE_XFA 66 #ifdef PDF_ENABLE_XFA
67 if (pAnnot->IsXFAField()) 67 if (pAnnot->IsXFAField())
68 return; 68 return;
69 #endif // PDF_ENABLE_XFA 69 #endif // PDF_ENABLE_XFA
70 static_cast<CPDFSDK_BAAnnot*>(pAnnot)->DrawAppearance( 70 static_cast<CPDFSDK_BAAnnot*>(pAnnot)->DrawAppearance(
71 pDevice, pUser2Device, CPDF_Annot::Normal, nullptr); 71 pDevice, pUser2Device, CPDF_Annot::Normal, nullptr);
72 } 72 }
73 73
74 void CPDFSDK_BAAnnotHandler::OnDrawSleep(CPDFSDK_PageView* pPageView,
75 CPDFSDK_Annot* pAnnot,
76 CFX_RenderDevice* pDevice,
77 CFX_Matrix* pUser2Device,
78 const CFX_FloatRect& rcWindow,
79 uint32_t dwFlags) {}
80
81 void CPDFSDK_BAAnnotHandler::OnDelete(CPDFSDK_Annot* pAnnot) {} 74 void CPDFSDK_BAAnnotHandler::OnDelete(CPDFSDK_Annot* pAnnot) {}
82 75
83 void CPDFSDK_BAAnnotHandler::OnRelease(CPDFSDK_Annot* pAnnot) {} 76 void CPDFSDK_BAAnnotHandler::OnRelease(CPDFSDK_Annot* pAnnot) {}
84 77
85 void CPDFSDK_BAAnnotHandler::OnMouseEnter(CPDFSDK_PageView* pPageView, 78 void CPDFSDK_BAAnnotHandler::OnMouseEnter(CPDFSDK_PageView* pPageView,
86 CPDFSDK_Annot* pAnnot, 79 CPDFSDK_Annot* pAnnot,
87 uint32_t nFlag) { 80 uint32_t nFlag) {
88 CPDFSDK_BAAnnot* pBAAnnot = static_cast<CPDFSDK_BAAnnot*>(pAnnot); 81 CPDFSDK_BAAnnot* pBAAnnot = static_cast<CPDFSDK_BAAnnot*>(pAnnot);
89 pBAAnnot->SetOpenState(true); 82 pBAAnnot->SetOpenState(true);
90 UpdateAnnotRects(pPageView, pBAAnnot); 83 UpdateAnnotRects(pPageView, pBAAnnot);
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 198
206 FX_BOOL CPDFSDK_BAAnnotHandler::HitTest(CPDFSDK_PageView* pPageView, 199 FX_BOOL CPDFSDK_BAAnnotHandler::HitTest(CPDFSDK_PageView* pPageView,
207 CPDFSDK_Annot* pAnnot, 200 CPDFSDK_Annot* pAnnot,
208 const CFX_FloatPoint& point) { 201 const CFX_FloatPoint& point) {
209 ASSERT(pPageView); 202 ASSERT(pPageView);
210 ASSERT(pAnnot); 203 ASSERT(pAnnot);
211 204
212 CFX_FloatRect rect = GetViewBBox(pPageView, pAnnot); 205 CFX_FloatRect rect = GetViewBBox(pPageView, pAnnot);
213 return rect.Contains(point.x, point.y); 206 return rect.Contains(point.x, point.y);
214 } 207 }
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/cpdfsdk_widgethandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698