xref: /aosp_15_r20/external/pdfium/xfa/fxfa/cxfa_ffpasswordedit.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2017 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef XFA_FXFA_CXFA_FFPASSWORDEDIT_H_
8 #define XFA_FXFA_CXFA_FFPASSWORDEDIT_H_
9 
10 #include "fxjs/gc/heap.h"
11 #include "v8/include/cppgc/member.h"
12 #include "v8/include/cppgc/visitor.h"
13 #include "xfa/fxfa/cxfa_fftextedit.h"
14 
15 class CXFA_PasswordEdit;
16 
17 class CXFA_FFPasswordEdit final : public CXFA_FFTextEdit {
18  public:
19   CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED;
20   ~CXFA_FFPasswordEdit() override;
21 
22   void Trace(cppgc::Visitor* visitor) const override;
23 
24   // CXFA_FFTextEdit
25   bool LoadWidget() override;
26   void UpdateWidgetProperty() override;
27 
28  private:
29   CXFA_FFPasswordEdit(CXFA_Node* pNode, CXFA_PasswordEdit* password_node);
30 
31   cppgc::Member<CXFA_PasswordEdit> const password_node_;
32 };
33 
34 #endif  // XFA_FXFA_CXFA_FFPASSWORDEDIT_H_
35