diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-29 21:34:56 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-29 21:34:56 +0000 |
commit | 8308b8c3dfad425942d4aba19a6b85049beff6f4 (patch) | |
tree | ada0bf0c19f846b1f45ac4eba165c6dcadaa5063 /xfa/fxfa/cxfa_ffdropdown.h | |
parent | c30eb662f8a8ea20564e887182e422fd5c4e2099 (diff) | |
download | pdfium-8308b8c3dfad425942d4aba19a6b85049beff6f4.tar.xz |
Add common base class between CXFA_FFComboBox and CXFA_FFListBox
This CL adds a CXFA_FFDropDown to serve as a base class for the
CXFA_FFComboBox and CXFA_FFListBox and adds a virtual InsertItem and
DeleteItem methods.
Change-Id: I325ffc579ed42a4755bae0c4d18667f8a9458950
Reviewed-on: https://pdfium-review.googlesource.com/24550
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffdropdown.h')
-rw-r--r-- | xfa/fxfa/cxfa_ffdropdown.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/xfa/fxfa/cxfa_ffdropdown.h b/xfa/fxfa/cxfa_ffdropdown.h new file mode 100644 index 0000000000..20ed76640b --- /dev/null +++ b/xfa/fxfa/cxfa_ffdropdown.h @@ -0,0 +1,23 @@ +// Copyright 2018 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 XFA_FXFA_CXFA_FFDROPDOWN_H_ +#define XFA_FXFA_CXFA_FFDROPDOWN_H_ + +#include "xfa/fxfa/cxfa_fffield.h" + +class CXFA_FFDropDown : public CXFA_FFField { + public: + ~CXFA_FFDropDown() override; + + virtual void InsertItem(const WideStringView& wsLabel, int32_t nIndex) = 0; + virtual void DeleteItem(int32_t nIndex) = 0; + + protected: + explicit CXFA_FFDropDown(CXFA_Node* pNode); +}; + +#endif // XFA_FXFA_CXFA_FFDROPDOWN_H_ |