| OLD | NEW | 
|---|
| 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> | 
| 11 | 11 | 
| 12 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" | 12 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" | 
| 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 
| 14 #include "core/fpdfdoc/include/cpdf_interform.h" | 14 #include "core/fpdfdoc/include/cpdf_interform.h" | 
| 15 #include "fpdfsdk/formfiller/cffl_formfiller.h" | 15 #include "fpdfsdk/formfiller/cffl_formfiller.h" | 
| 16 #include "fpdfsdk/include/cpdfsdk_annot.h" | 16 #include "fpdfsdk/include/cpdfsdk_annot.h" | 
| 17 #include "fpdfsdk/include/cpdfsdk_baannot.h" | 17 #include "fpdfsdk/include/cpdfsdk_baannot.h" | 
| 18 #include "fpdfsdk/include/fsdk_mgr.h" | 18 #include "fpdfsdk/include/cpdfsdk_pageview.h" | 
| 19 | 19 | 
| 20 #ifdef PDF_ENABLE_XFA | 20 #ifdef PDF_ENABLE_XFA | 
| 21 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" | 21 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" | 
| 22 #endif  // PDF_ENABLE_XFA | 22 #endif  // PDF_ENABLE_XFA | 
| 23 | 23 | 
| 24 namespace { | 24 namespace { | 
| 25 | 25 | 
| 26 void UpdateAnnotRects(CPDFSDK_PageView* pPageView, CPDFSDK_BAAnnot* pBAAnnot) { | 26 void UpdateAnnotRects(CPDFSDK_PageView* pPageView, CPDFSDK_BAAnnot* pBAAnnot) { | 
| 27   std::vector<CFX_FloatRect> rects; | 27   std::vector<CFX_FloatRect> rects; | 
| 28   rects.push_back(pBAAnnot->GetRect()); | 28   rects.push_back(pBAAnnot->GetRect()); | 
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 201 | 201 | 
| 202 FX_BOOL CPDFSDK_BAAnnotHandler::HitTest(CPDFSDK_PageView* pPageView, | 202 FX_BOOL CPDFSDK_BAAnnotHandler::HitTest(CPDFSDK_PageView* pPageView, | 
| 203                                         CPDFSDK_Annot* pAnnot, | 203                                         CPDFSDK_Annot* pAnnot, | 
| 204                                         const CFX_FloatPoint& point) { | 204                                         const CFX_FloatPoint& point) { | 
| 205   ASSERT(pPageView); | 205   ASSERT(pPageView); | 
| 206   ASSERT(pAnnot); | 206   ASSERT(pAnnot); | 
| 207 | 207 | 
| 208   CFX_FloatRect rect = GetViewBBox(pPageView, pAnnot); | 208   CFX_FloatRect rect = GetViewBBox(pPageView, pAnnot); | 
| 209   return rect.Contains(point.x, point.y); | 209   return rect.Contains(point.x, point.y); | 
| 210 } | 210 } | 
| OLD | NEW | 
|---|