Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: fpdfsdk/cpdfsdk_widget.cpp

Issue 2397933003: Convert CPDFSDK_ActionHandler to CPDFSDK_FormFillEnvironment (Closed)
Patch Set: Rebase to master Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/cpdfsdk_interform.cpp ('k') | fpdfsdk/fpdfformfill.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_interform.cpp ('k') | fpdfsdk/fpdfformfill.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698