| 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 <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "../../public/fpdf_ext.h" | 9 #include "../../public/fpdf_ext.h" |
| 10 #include "../../third_party/base/nonstd_unique_ptr.h" | |
| 11 #include "../include/formfiller/FFL_FormFiller.h" | 10 #include "../include/formfiller/FFL_FormFiller.h" |
| 12 #include "../include/fsdk_define.h" | 11 #include "../include/fsdk_define.h" |
| 13 #include "../include/fsdk_mgr.h" | 12 #include "../include/fsdk_mgr.h" |
| 14 #include "../include/javascript/IJavaScript.h" | 13 #include "../include/javascript/IJavaScript.h" |
| 14 #include "third_party/base/nonstd_unique_ptr.h" |
| 15 | 15 |
| 16 #include "../include/fpdfxfa/fpdfxfa_app.h" | 16 #include "../include/fpdfxfa/fpdfxfa_app.h" |
| 17 #include "../include/fpdfxfa/fpdfxfa_doc.h" | 17 #include "../include/fpdfxfa/fpdfxfa_doc.h" |
| 18 #include "../include/fpdfxfa/fpdfxfa_page.h" | 18 #include "../include/fpdfxfa/fpdfxfa_page.h" |
| 19 #include "../include/fpdfxfa/fpdfxfa_util.h" | 19 #include "../include/fpdfxfa/fpdfxfa_util.h" |
| 20 | 20 |
| 21 #if _FX_OS_ == _FX_ANDROID_ | 21 #if _FX_OS_ == _FX_ANDROID_ |
| 22 #include "time.h" | 22 #include "time.h" |
| 23 #else | 23 #else |
| 24 #include <ctime> | 24 #include <ctime> |
| (...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1100 CPDFSDK_Annot* pFocusAnnot = m_pSDKDoc->GetFocusAnnot(); | 1100 CPDFSDK_Annot* pFocusAnnot = m_pSDKDoc->GetFocusAnnot(); |
| 1101 if (!pFocusAnnot) | 1101 if (!pFocusAnnot) |
| 1102 return nullptr; | 1102 return nullptr; |
| 1103 | 1103 |
| 1104 for (CPDFSDK_Annot* pAnnot : m_fxAnnotArray) { | 1104 for (CPDFSDK_Annot* pAnnot : m_fxAnnotArray) { |
| 1105 if (pAnnot == pFocusAnnot) | 1105 if (pAnnot == pFocusAnnot) |
| 1106 return pAnnot; | 1106 return pAnnot; |
| 1107 } | 1107 } |
| 1108 return nullptr; | 1108 return nullptr; |
| 1109 } | 1109 } |
| OLD | NEW |