| 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_widget.h" | 7 #include "fpdfsdk/cpdfsdk_widget.h" |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 1857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1868 if (nRet == XFA_EVENTERROR_Success) | 1868 if (nRet == XFA_EVENTERROR_Success) |
| 1869 return TRUE; | 1869 return TRUE; |
| 1870 } | 1870 } |
| 1871 } | 1871 } |
| 1872 } | 1872 } |
| 1873 #endif // PDF_ENABLE_XFA | 1873 #endif // PDF_ENABLE_XFA |
| 1874 | 1874 |
| 1875 CPDF_Action action = GetAAction(type); | 1875 CPDF_Action action = GetAAction(type); |
| 1876 if (action.GetDict() && action.GetType() != CPDF_Action::Unknown) { | 1876 if (action.GetDict() && action.GetType() != CPDF_Action::Unknown) { |
| 1877 CPDFSDK_ActionHandler* pActionHandler = pFormFillEnv->GetActionHander(); | 1877 CPDFSDK_ActionHandler* pActionHandler = pFormFillEnv->GetActionHander(); |
| 1878 return pActionHandler->DoAction_Field( | 1878 return pActionHandler->DoAction_Field(action, type, pFormFillEnv, |
| 1879 action, type, pFormFillEnv->GetSDKDocument(), GetFormField(), data); | 1879 GetFormField(), data); |
| 1880 } | 1880 } |
| 1881 return FALSE; | 1881 return FALSE; |
| 1882 } | 1882 } |
| 1883 | 1883 |
| 1884 CPDF_Action CPDFSDK_Widget::GetAAction(CPDF_AAction::AActionType eAAT) { | 1884 CPDF_Action CPDFSDK_Widget::GetAAction(CPDF_AAction::AActionType eAAT) { |
| 1885 switch (eAAT) { | 1885 switch (eAAT) { |
| 1886 case CPDF_AAction::CursorEnter: | 1886 case CPDF_AAction::CursorEnter: |
| 1887 case CPDF_AAction::CursorExit: | 1887 case CPDF_AAction::CursorExit: |
| 1888 case CPDF_AAction::ButtonDown: | 1888 case CPDF_AAction::ButtonDown: |
| 1889 case CPDF_AAction::ButtonUp: | 1889 case CPDF_AAction::ButtonUp: |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1931 return FALSE; | 1931 return FALSE; |
| 1932 | 1932 |
| 1933 if (!IsVisible()) | 1933 if (!IsVisible()) |
| 1934 return FALSE; | 1934 return FALSE; |
| 1935 | 1935 |
| 1936 if ((GetFieldFlags() & FIELDFLAG_READONLY) == FIELDFLAG_READONLY) | 1936 if ((GetFieldFlags() & FIELDFLAG_READONLY) == FIELDFLAG_READONLY) |
| 1937 return FALSE; | 1937 return FALSE; |
| 1938 | 1938 |
| 1939 return TRUE; | 1939 return TRUE; |
| 1940 } | 1940 } |
| OLD | NEW |