• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2022 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 #ifndef FPDFSDK_PWL_CPWL_COMBO_BOX_EMBEDDERTEST_H_
6 #define FPDFSDK_PWL_CPWL_COMBO_BOX_EMBEDDERTEST_H_
7 
8 #include "testing/embedder_test.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10 
11 class CFFL_FormField;
12 class CPDFSDK_FormFillEnvironment;
13 class CPDFSDK_PageView;
14 class CPDFSDK_Widget;
15 class CPWL_ComboBox;
16 
17 class CPWLComboBoxEmbedderTest : public EmbedderTest {
18  protected:
19   void SetUp() override;
20 
21   ScopedEmbedderTestPage CreateAndInitializeFormComboboxPDF();
22   void FormFillerAndWindowSetup(CPDFSDK_Widget* pAnnotCombobox);
23   void TypeTextIntoTextField(int num_chars);
GetCPWLComboBox()24   CPWL_ComboBox* GetCPWLComboBox() const { return m_pComboBox; }
GetCFFLFormField()25   CFFL_FormField* GetCFFLFormField() const { return m_pFormField; }
GetCPDFSDKAnnotNormal()26   CPDFSDK_Widget* GetCPDFSDKAnnotNormal() const { return m_pAnnotNormal; }
GetCPDFSDKAnnotUserEditable()27   CPDFSDK_Widget* GetCPDFSDKAnnotUserEditable() const {
28     return m_pAnnotEditable;
29   }
GetCPDFSDKFormFillEnv()30   CPDFSDK_FormFillEnvironment* GetCPDFSDKFormFillEnv() const {
31     return m_pFormFillEnv;
32   }
GetPageView()33   CPDFSDK_PageView* GetPageView() const { return m_pPageView; }
34 
35  private:
36   CPWL_ComboBox* m_pComboBox = nullptr;
37   CFFL_FormField* m_pFormField = nullptr;
38   CPDFSDK_Widget* m_pAnnotNormal = nullptr;
39   CPDFSDK_Widget* m_pAnnotEditable = nullptr;
40   CPDFSDK_FormFillEnvironment* m_pFormFillEnv = nullptr;
41   CPDFSDK_PageView* m_pPageView = nullptr;
42 };
43 
44 #endif  // FPDFSDK_PWL_CPWL_COMBO_BOX_EMBEDDERTEST_H_
45