summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_fftextedit.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-09-20 16:21:31 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-21 13:29:50 +0000
commitb8777a2c5f38ea4d6fc74ea01a114d3e056c0fdb (patch)
tree83acc47e45d932146a70941b7484e78c426b3b27 /xfa/fxfa/cxfa_fftextedit.h
parent36eed87d19e741be9909500c45dd12e50ff6a1ab (diff)
downloadpdfium-b8777a2c5f38ea4d6fc74ea01a114d3e056c0fdb.tar.xz
Add embeddertest for CFWL_Edit
This CL adds two mouse selection tests for CFWL_Edit. In order to do so the needed selection code was added to the XFA widget handler and plumbed down to the CFWL_Edit field as needed. Bug: pdfium:840 Change-Id: Ia3b5f5d191494a4579c01524df8fb35b24cc0085 Reviewed-on: https://pdfium-review.googlesource.com/14530 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_fftextedit.h')
-rw-r--r--xfa/fxfa/cxfa_fftextedit.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/xfa/fxfa/cxfa_fftextedit.h b/xfa/fxfa/cxfa_fftextedit.h
index 9735b9e7d8..dd3801b4df 100644
--- a/xfa/fxfa/cxfa_fftextedit.h
+++ b/xfa/fxfa/cxfa_fftextedit.h
@@ -42,6 +42,22 @@ class CXFA_FFTextEdit : public CXFA_FFField {
void OnTextFull(CFWL_Widget* pWidget);
bool CheckWord(const ByteStringView& sWord);
+ // CXFA_FFWidget
+ bool CanUndo() override;
+ bool CanRedo() override;
+ bool Undo() override;
+ bool Redo() override;
+ bool CanCopy() override;
+ bool CanCut() override;
+ bool CanPaste() override;
+ bool CanSelectAll() override;
+ bool Copy(WideString& wsCopy) override;
+ bool Cut(WideString& wsCut) override;
+ bool Paste(const WideString& wsPaste) override;
+ void SelectAll() override;
+ void Delete() override;
+ void DeSelect() override;
+
protected:
uint32_t GetAlignment();