| 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> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 rects.push_back(pPopupAnnot->GetRect()); | 30 rects.push_back(pPopupAnnot->GetRect()); |
| 31 pPageView->UpdateRects(rects); | 31 pPageView->UpdateRects(rects); |
| 32 } | 32 } |
| 33 | 33 |
| 34 } // namespace | 34 } // namespace |
| 35 | 35 |
| 36 CPDFSDK_BAAnnotHandler::CPDFSDK_BAAnnotHandler() {} | 36 CPDFSDK_BAAnnotHandler::CPDFSDK_BAAnnotHandler() {} |
| 37 | 37 |
| 38 CPDFSDK_BAAnnotHandler::~CPDFSDK_BAAnnotHandler() {} | 38 CPDFSDK_BAAnnotHandler::~CPDFSDK_BAAnnotHandler() {} |
| 39 | 39 |
| 40 CFX_ByteString CPDFSDK_BAAnnotHandler::GetType() { | |
| 41 return CFX_ByteString(""); | |
| 42 } | |
| 43 | |
| 44 FX_BOOL CPDFSDK_BAAnnotHandler::CanAnswer(CPDFSDK_Annot* pAnnot) { | 40 FX_BOOL CPDFSDK_BAAnnotHandler::CanAnswer(CPDFSDK_Annot* pAnnot) { |
| 45 return FALSE; | 41 return FALSE; |
| 46 } | 42 } |
| 47 | 43 |
| 48 CPDFSDK_Annot* CPDFSDK_BAAnnotHandler::NewAnnot(CPDF_Annot* pAnnot, | 44 CPDFSDK_Annot* CPDFSDK_BAAnnotHandler::NewAnnot(CPDF_Annot* pAnnot, |
| 49 CPDFSDK_PageView* pPage) { | 45 CPDFSDK_PageView* pPage) { |
| 50 return new CPDFSDK_BAAnnot(pAnnot, pPage); | 46 return new CPDFSDK_BAAnnot(pAnnot, pPage); |
| 51 } | 47 } |
| 52 | 48 |
| 53 #ifdef PDF_ENABLE_XFA | 49 #ifdef PDF_ENABLE_XFA |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 206 |
| 211 FX_BOOL CPDFSDK_BAAnnotHandler::HitTest(CPDFSDK_PageView* pPageView, | 207 FX_BOOL CPDFSDK_BAAnnotHandler::HitTest(CPDFSDK_PageView* pPageView, |
| 212 CPDFSDK_Annot* pAnnot, | 208 CPDFSDK_Annot* pAnnot, |
| 213 const CFX_FloatPoint& point) { | 209 const CFX_FloatPoint& point) { |
| 214 ASSERT(pPageView); | 210 ASSERT(pPageView); |
| 215 ASSERT(pAnnot); | 211 ASSERT(pAnnot); |
| 216 | 212 |
| 217 CFX_FloatRect rect = GetViewBBox(pPageView, pAnnot); | 213 CFX_FloatRect rect = GetViewBBox(pPageView, pAnnot); |
| 218 return rect.Contains(point.x, point.y); | 214 return rect.Contains(point.x, point.y); |
| 219 } | 215 } |
| OLD | NEW |