OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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/fsdk_mgr.h" | 7 #include "fpdfsdk/include/fsdk_mgr.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
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_array.h" | 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
14 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 14 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
15 #include "fpdfsdk/formfiller/cffl_formfiller.h" | 15 #include "fpdfsdk/formfiller/cffl_formfiller.h" |
16 #include "fpdfsdk/include/fsdk_define.h" | 16 #include "fpdfsdk/include/fsdk_define.h" |
17 #include "fpdfsdk/javascript/ijs_runtime.h" | 17 #include "fpdfsdk/javascript/ijs_runtime.h" |
18 #include "public/fpdf_ext.h" | 18 #include "public/fpdf_ext.h" |
19 #include "third_party/base/stl_util.h" | 19 #include "third_party/base/stl_util.h" |
20 | 20 |
21 #ifdef PDF_ENABLE_XFA | 21 #ifdef PDF_ENABLE_XFA |
22 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_app.h" | 22 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_app.h" |
23 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" | 23 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" |
24 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h" | 24 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h" |
25 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h" | 25 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h" |
| 26 #include "xfa/fxfa/include/xfa_rendercontext.h" |
26 #include "xfa/fxgraphics/include/cfx_graphics.h" | 27 #include "xfa/fxgraphics/include/cfx_graphics.h" |
27 #include "xfa/include/fxfa/xfa_rendercontext.h" | |
28 #endif // PDF_ENABLE_XFA | 28 #endif // PDF_ENABLE_XFA |
29 | 29 |
30 #if _FX_OS_ == _FX_ANDROID_ | 30 #if _FX_OS_ == _FX_ANDROID_ |
31 #include "time.h" | 31 #include "time.h" |
32 #else | 32 #else |
33 #include <ctime> | 33 #include <ctime> |
34 #endif | 34 #endif |
35 | 35 |
36 namespace { | 36 namespace { |
37 | 37 |
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1199 CPDFSDK_Annot* pFocusAnnot = m_pSDKDoc->GetFocusAnnot(); | 1199 CPDFSDK_Annot* pFocusAnnot = m_pSDKDoc->GetFocusAnnot(); |
1200 if (!pFocusAnnot) | 1200 if (!pFocusAnnot) |
1201 return nullptr; | 1201 return nullptr; |
1202 | 1202 |
1203 for (CPDFSDK_Annot* pAnnot : m_fxAnnotArray) { | 1203 for (CPDFSDK_Annot* pAnnot : m_fxAnnotArray) { |
1204 if (pAnnot == pFocusAnnot) | 1204 if (pAnnot == pFocusAnnot) |
1205 return pAnnot; | 1205 return pAnnot; |
1206 } | 1206 } |
1207 return nullptr; | 1207 return nullptr; |
1208 } | 1208 } |
OLD | NEW |