5#include "fpdfsdk/pwl/cpwl_combo_box_embeddertest.h"
7#include "fpdfsdk/cpdfsdk_annotiterator.h"
8#include "fpdfsdk/cpdfsdk_formfillenvironment.h"
9#include "fpdfsdk/cpdfsdk_helpers.h"
10#include "fpdfsdk/cpdfsdk_widget.h"
11#include "fpdfsdk/formfiller/cffl_formfield.h"
12#include "fpdfsdk/formfiller/cffl_interactiveformfiller.h"
13#include "fpdfsdk/pwl/cpwl_combo_box.h"
14#include "fpdfsdk/pwl/cpwl_wnd.h"
15#include "public/fpdf_fwlevent.h"
16#include "testing/gtest/include/gtest/gtest.h"
33 m_pFormFillEnv = CPDFSDKFormFillEnvironmentFromFPDFFormHandle(
form_handle());
39 ASSERT_TRUE(m_pAnnotEditable);
43 ASSERT_TRUE(m_pAnnotNormal);
48 ASSERT_EQ(pAnnotReadOnly, pLastAnnot);
52 CPDFSDK_Widget* pAnnotCombobox) {
53 CFFL_InteractiveFormFiller* pInteractiveFormFiller =
56 ObservedPtr<CPDFSDK_Widget> pObserved(pAnnotCombobox);
61 ASSERT_TRUE(m_pFormField);
66 m_pComboBox =
static_cast<CPWL_ComboBox*>(pWindow);
71 for (
int i = 0; i < num_chars; ++i) {
CPDFSDK_Annot * GetFirstAnnot()
CPDFSDK_Annot * GetLastAnnot()
CPDFSDK_Annot * GetNextAnnot(CPDFSDK_Annot *pAnnot)
void TypeTextIntoTextField(int num_chars)
CFFL_FormField * GetCFFLFormField() const
CPDFSDK_Widget * GetCPDFSDKAnnotUserEditable() const
void CreateAndInitializeFormComboboxPDF()
FPDF_PAGE GetPage() const
void FormFillerAndWindowSetup(CPDFSDK_Widget *pAnnotCombobox)
void UnloadPage(FPDF_PAGE page)
FPDF_PAGE LoadPage(int page_number)
FPDF_FORMHANDLE form_handle() const
bool OpenDocument(const std::string &filename)