| 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/cpdfsdk_widgethandler.h" |    7 #include "fpdfsdk/cpdfsdk_widgethandler.h" | 
|    8  |    8  | 
|    9 #include <memory> |    9 #include <memory> | 
|   10 #include <vector> |   10 #include <vector> | 
|   11  |   11  | 
|   12 #include "core/fpdfapi/fpdf_page/cpdf_page.h" |  | 
|   13 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" |   12 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" | 
 |   13 #include "core/fpdfapi/page/cpdf_page.h" | 
|   14 #include "core/fpdfdoc/cpdf_interform.h" |   14 #include "core/fpdfdoc/cpdf_interform.h" | 
|   15 #include "fpdfsdk/cpdfsdk_annot.h" |   15 #include "fpdfsdk/cpdfsdk_annot.h" | 
|   16 #include "fpdfsdk/cpdfsdk_document.h" |   16 #include "fpdfsdk/cpdfsdk_document.h" | 
|   17 #include "fpdfsdk/cpdfsdk_environment.h" |   17 #include "fpdfsdk/cpdfsdk_environment.h" | 
|   18 #include "fpdfsdk/cpdfsdk_interform.h" |   18 #include "fpdfsdk/cpdfsdk_interform.h" | 
|   19 #include "fpdfsdk/cpdfsdk_pageview.h" |   19 #include "fpdfsdk/cpdfsdk_pageview.h" | 
|   20 #include "fpdfsdk/cpdfsdk_widget.h" |   20 #include "fpdfsdk/cpdfsdk_widget.h" | 
|   21 #include "fpdfsdk/formfiller/cffl_formfiller.h" |   21 #include "fpdfsdk/formfiller/cffl_formfiller.h" | 
|   22  |   22  | 
|   23 #ifdef PDF_ENABLE_XFA |   23 #ifdef PDF_ENABLE_XFA | 
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  296  |  296  | 
|  297 FX_BOOL CPDFSDK_WidgetHandler::HitTest(CPDFSDK_PageView* pPageView, |  297 FX_BOOL CPDFSDK_WidgetHandler::HitTest(CPDFSDK_PageView* pPageView, | 
|  298                                        CPDFSDK_Annot* pAnnot, |  298                                        CPDFSDK_Annot* pAnnot, | 
|  299                                        const CFX_FloatPoint& point) { |  299                                        const CFX_FloatPoint& point) { | 
|  300   ASSERT(pPageView); |  300   ASSERT(pPageView); | 
|  301   ASSERT(pAnnot); |  301   ASSERT(pAnnot); | 
|  302  |  302  | 
|  303   CFX_FloatRect rect = GetViewBBox(pPageView, pAnnot); |  303   CFX_FloatRect rect = GetViewBBox(pPageView, pAnnot); | 
|  304   return rect.Contains(point.x, point.y); |  304   return rect.Contains(point.x, point.y); | 
|  305 } |  305 } | 
| OLD | NEW |