pdfium/core/fpdfdoc/cpdf_aaction.h
Lei Zhang 217e37a834 Rename "pDict" instances to "dict"
Mass rename a common variable name to follow Google C++ style. Also
rename a few other variable names like "pDictionary" and "pApDict".

Bug: 42271580
Change-Id: I8a3d806db04d7f75a8edad6cbd5b4cab305d9416
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/132510
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2025-05-29 16:45:09 -07:00

57 lines
1.3 KiB
C++

// Copyright 2016 The PDFium Authors
// 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 CORE_FPDFDOC_CPDF_AACTION_H_
#define CORE_FPDFDOC_CPDF_AACTION_H_
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfdoc/cpdf_action.h"
#include "core/fxcrt/retain_ptr.h"
class CPDF_AAction {
public:
enum AActionType {
kCursorEnter = 0,
kCursorExit,
kButtonDown,
kButtonUp,
kGetFocus,
kLoseFocus,
kPageOpen,
kPageClose,
kPageVisible,
kPageInvisible,
kOpenPage,
kClosePage,
kKeyStroke,
kFormat,
kValidate,
kCalculate,
kCloseDocument,
kSaveDocument,
kDocumentSaved,
kPrintDocument,
kDocumentPrinted,
kDocumentOpen,
kNumberOfActions // Must be last.
};
explicit CPDF_AAction(RetainPtr<const CPDF_Dictionary> dict);
CPDF_AAction(const CPDF_AAction& that);
~CPDF_AAction();
bool ActionExist(AActionType eType) const;
CPDF_Action GetAction(AActionType eType) const;
bool HasDict() const { return !!dict_; }
static bool IsUserInput(AActionType type);
private:
RetainPtr<const CPDF_Dictionary> const dict_;
};
#endif // CORE_FPDFDOC_CPDF_AACTION_H_