From dd11f8615fc20e638fbb6f6281c4564ed8927af3 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 19 Oct 2015 17:30:24 -0700 Subject: Merge to XFA: Remove unused CFFL_Notify. TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1411963002 . (cherry picked from commit 8b8dfd7934d669b2c74a0502f82387e5df0f573b) Review URL: https://codereview.chromium.org/1415513004 . --- fpdfsdk/include/formfiller/FFL_Notify.h | 75 --------------------------------- 1 file changed, 75 deletions(-) delete mode 100644 fpdfsdk/include/formfiller/FFL_Notify.h (limited to 'fpdfsdk/include') diff --git a/fpdfsdk/include/formfiller/FFL_Notify.h b/fpdfsdk/include/formfiller/FFL_Notify.h deleted file mode 100644 index b051df86cf..0000000000 --- a/fpdfsdk/include/formfiller/FFL_Notify.h +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright 2014 PDFium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com - -#ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_NOTIFY_H_ -#define FPDFSDK_INCLUDE_FORMFILLER_FFL_NOTIFY_H_ - -#include "../../../core/include/fpdfdoc/fpdf_doc.h" -#include "../../../core/include/fxcrt/fx_string.h" - -class CFFL_FormFiller; -class CPDF_FormField; - -class CFFL_Notify { - public: - CFFL_Notify(CFFL_FormFiller* pFormFiller); - virtual ~CFFL_Notify(); - - public: - FX_BOOL OnSetFocus(FX_BOOL& bExit); - FX_BOOL OnMouseEnter(FX_BOOL& bExit); - FX_BOOL OnMouseDown(FX_BOOL& bExit); - FX_BOOL OnMouseUp(FX_BOOL& bExit); - FX_BOOL OnMouseExit(FX_BOOL& bExit); - FX_BOOL OnKillFocus(FX_BOOL& bExit); - - FX_BOOL OnCalculate(); - FX_BOOL OnFormat(int iCommitKey); - FX_BOOL OnValidate(CPDF_FormField* pFormField, - CFX_WideString& strValue, - CFX_WideString& strChange, - const CFX_WideString& strChangeEx, - FX_BOOL bKeyDown, - FX_BOOL bModifier, - FX_BOOL bShift, - FX_BOOL& bRC); - FX_BOOL OnKeyStroke(CPDF_FormField* pFormField, - int nCommitKey, - CFX_WideString& strValue, - CFX_WideString& strChange, - const CFX_WideString& strChangeEx, - FX_BOOL bKeyDown, - FX_BOOL bModifier, - FX_BOOL bShift, - FX_BOOL bWillCommit, - FX_BOOL bFieldFull, - int& nSelStart, - int& nSelEnd, - FX_BOOL& bRC); - - void BeforeNotify(); - void AfterNotify(); - FX_BOOL IsNotifying() const { return m_nNotifyFlag > 0; } - - private: - FX_BOOL DoAAction(CPDF_AAction::AActionType eAAT, FX_BOOL& bExit); - FX_BOOL FindAAction(CPDF_AAction::AActionType eAAT, CPDF_Action& action); - FX_BOOL FindAAction(CPDF_AAction aaction, - CPDF_AAction::AActionType eAAT, - CPDF_Action& action); - FX_BOOL ExecuteActionTree(CPDF_AAction::AActionType eAAT, - CPDF_Action& action, - FX_BOOL& bExit); - FX_BOOL ExecuteAction(CPDF_AAction::AActionType eAAT, - CPDF_Action& action, - FX_BOOL& bExit); - - CFFL_FormFiller* m_pFormFiller; - FX_BOOL m_bDoActioning; - int32_t m_nNotifyFlag; -}; - -#endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_NOTIFY_H_ -- cgit v1.2.3